Module: sip-router
Branch: master
Commit: c7a9b1ed48631952f286d312721e8c45dde05ca1
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c7a9b1e…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Wed Aug 8 09:49:13 2012 +0100
modules_k/path: Added WebSocket transport support to Path module
---
modules_k/path/path.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules_k/path/path.c b/modules_k/path/path.c
index b8eb0c8..a8fb8aa 100644
--- a/modules_k/path/path.c
+++ b/modules_k/path/path.c
@@ -140,6 +140,10 @@ static int prepend_path(struct sip_msg* _m, str *user, int recv)
case PROTO_SCTP:
rcv_addr.len = snprintf(rcv_addr.s, 6 + IP_ADDR_MAX_STR_SIZE + 21,
"'sip:%s:%u;transport=sctp'", src_ip, _m->rcv.src_port);
break;
+ case PROTO_WS:
+ case PROTO_WSS:
+ rcv_addr.len = snprintf(rcv_addr.s, 6 + IP_ADDR_MAX_STR_SIZE + 19,
"'sip:%s:%u;transport=ws'", src_ip, _m->rcv.src_port);
+ break;
}
l = insert_new_lump_before(l, rcv_addr.s, rcv_addr.len, 0);