[SR-Users] How to get Destination port UDP

Daniel Tryba d.tryba at pocos.nl
Fri Nov 11 13:38:51 CET 2016


On Thu, Nov 10, 2016 at 04:41:36PM +0100, andrzej.ciupek-asterisk.edu.pl wrote:
> I have some UAC like Panasonic PBX, that send traffic to port 6060 that I am
> listening on,
> but that port isn't included to R-URI.
> I can see that only at tcpdump, or sip_trace from sip_capture module.
> Kamailio variables like $dp or $rp have default value of 5060.

What is the result if you use force_rport() (for that traffic)?

if($Rp=="6060")
{
	force_rport();
}



More information about the sr-users mailing list