[sr-dev] [kamailio/kamailio] Destination Port Inferred Incorrectly When Assigning $du (#700)

Daniel-Constantin Mierla notifications at github.com
Fri Jul 8 09:59:52 CEST 2016


It is only about the returned value of the variable $dp. The port is not set in the outbound proxy uri.

The logic is, if the $du has no port value, then return 5060 -- probably some old code relying on default value for port -- relevant piece of code inside the pv module:

```
	} else if(param->pvn.u.isname.name.n==2) /* port */ {
		if(uri.port.s==NULL)
			return pv_get_5060(msg, param, res);
		return pv_get_strintval(msg, param, res, &uri.port, (int)uri.port_no);
```

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/700#issuecomment-231299002
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160708/1a14d9d7/attachment-0001.html>


More information about the sr-dev mailing list