Module: sip-router
Branch: master
Commit: 2e1ade7c66217280455136fb85aeb3a8e8e6917d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2e1ade7…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Fri Apr 26 15:29:47 2013 +0100
modules/siptrace: Support for ws: and wss: (fake protocols as per tls:)
---
modules/siptrace/siptrace.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/siptrace/siptrace.c b/modules/siptrace/siptrace.c
index c333e76..094be8b 100644
--- a/modules/siptrace/siptrace.c
+++ b/modules/siptrace/siptrace.c
@@ -1700,6 +1700,8 @@ static int pipport2su (char *pipport, union sockaddr_union *tmp_su,
unsigned int
if(strncmp(pipport, "udp:",4) == 0) *proto = IPPROTO_UDP;
else if(strncmp(pipport, "tcp:",4) == 0) *proto = IPPROTO_TCP;
else if(strncmp(pipport, "tls:",4) == 0) *proto = IPPROTO_IDP; /* fake proto
type */
+ else if(strncmp(pipport, "ws:",3) == 0) *proto = IPPROTO_IDP; /* fake proto
type */
+ else if(strncmp(pipport, "wss:",4) == 0) *proto = IPPROTO_IDP; /* fake proto
type */
#ifdef USE_SCTP
else if(strncmp(pipport, "sctp:",5) == 0) cutlen = 5, *proto = IPPROTO_SCTP;
#endif