topoh: match on all ports if none is in the uri for checking self
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 15 May 2014 10:46:14 +0000 (12:46 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 15 May 2014 10:46:14 +0000 (12:46 +0200)
- forcing default 5060 can fail for multi-listen case and tls

modules/topoh/th_msg.c

index 4d25750..d572f00 100644 (file)
@@ -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);