Module: sip-router
Branch: master
Commit: e1848d9c7fcaa04e785fe39365abd90b3c075f2f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e1848d9…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Wed Aug 8 10:08:33 2012 +0100
modules_k/nat_traversal: Added WebSocket transport support
---
modules_k/nat_traversal/nat_traversal.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules_k/nat_traversal/nat_traversal.c
b/modules_k/nat_traversal/nat_traversal.c
index 4c6f7b2..3368689 100644
--- a/modules_k/nat_traversal/nat_traversal.c
+++ b/modules_k/nat_traversal/nat_traversal.c
@@ -2017,6 +2017,10 @@ pv_get_source_uri(struct sip_msg *msg, pv_param_t *param,
pv_value_t *res)
case PROTO_SCTP:
strcat(uri, ";transport=sctp");
break;
+ case PROTO_WS:
+ case PROTO_WSS:
+ strcat(uri, ";transport=ws");
+ break;
}
res->rs.s = uri;