Module: kamailio
Branch: 5.4
Commit: f4d5b1b86a821ed7e5168b15765bb40e83b3ec21
URL:
https://github.com/kamailio/kamailio/commit/f4d5b1b86a821ed7e5168b15765bb40…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-10-09T22:30:42+02:00
usrloc: send keepalive over ws and wss connections
(cherry picked from commit 5dda7f336121b6068fd306340cb90a7d7e76c708)
---
Modified: src/modules/usrloc/ul_keepalive.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f4d5b1b86a821ed7e5168b15765bb40…
Patch:
https://github.com/kamailio/kamailio/commit/f4d5b1b86a821ed7e5168b15765bb40…
---
diff --git a/src/modules/usrloc/ul_keepalive.c b/src/modules/usrloc/ul_keepalive.c
index a1070f3f74..a69a76d8b9 100644
--- a/src/modules/usrloc/ul_keepalive.c
+++ b/src/modules/usrloc/ul_keepalive.c
@@ -253,6 +253,11 @@ static int ul_ka_send(str *kamsg, dest_info_t *kadst)
}
#ifdef USE_TCP
+ else if(kadst->proto == PROTO_WS || kadst->proto == PROTO_WSS) {
+ /*ws-wss*/
+ kadst->id=0;
+ return wss_send(kadst, kamsg->s, kamsg->len);
+ }
else if(kadst->proto == PROTO_TCP) {
/*tcp*/
kadst->id=0;