Module: sip-router Branch: master Commit: 1d90f4de94dfc887cc6129624fd5e6ad989abd37 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1d90f4de...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Thu May 15 12:46:14 2014 +0200
topoh: match on all ports if none is in the uri for checking self
- forcing default 5060 can fail for multi-listen case and tls
---
modules/topoh/th_msg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/topoh/th_msg.c b/modules/topoh/th_msg.c index 4d25750..d572f00 100644 --- a/modules/topoh/th_msg.c +++ b/modules/topoh/th_msg.c @@ -136,7 +136,7 @@ int th_get_uri_type(str *uri, int *mode, str *value) return -1; return 2; /* decode */ } else { - if(check_self(&puri.host, (puri.port_no)?puri.port_no:SIP_PORT, 0)==1) + if(check_self(&puri.host, (puri.port_no)?puri.port_no:0, 0)==1) { /* myself -- matched on all protos */ ret = th_get_param_value(&puri.params, &r2, value);