Переглянути джерело

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
Daniel-Constantin Mierla 11 роки тому
батько
коміт
1d90f4de94
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      modules/topoh/th_msg.c

+ 1 - 1
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);