everything: shotgun attempt to put PROTO_WS and PROTO_WSS across core and in modules...
[sip-router] / modules_k / presence / utils_func.h
index 8a76944..6a73702 100644 (file)
@@ -117,6 +117,11 @@ static inline int ps_fill_local_contact(struct sip_msg* msg, str *contact)
                proto= "sctp";
                plen = 4;
        }
+       else    
+       if(msg->rcv.proto== PROTO_WS || msg->rcv.proto== PROTO_WSS) {
+               proto= "ws";
+               plen = 2;
+       }
        else
        {
                LM_ERR("unsupported proto\n");