When manually assigning `$du`, the destination port pseudo-var `$dp` is set to 5060 unless explicitly overridden in the URI.
This should probably be inferred from the transport param, as it yields an incorrect value when transport=tls (which, unless explicitly overridden, should default to port 5061).
--- 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
If the $du is referring to a SRV record, chances are that 5060 is wrong too as the SRV may have any port.
--- 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-231293939
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