[SR-Users] TCP Path received quotes

Spencer Thomason spencer at 5ninesolutions.com
Sat Sep 15 10:14:03 CEST 2012


Hello,
I'm forwarding registrations to Freeswitch and adding a Path header using add_path_received() for endpoints behind NAT.  When TCP is used, this results in a header like this:
Path: <sip:a.a.a.a:5070;lr;received="sip:b.b.b.b:35430;transport=tcp">

Freeswitch doesn't like the transport protocol inside the quotations and refuses to route a call to the registered user.

Constructing the header manually without the quotes such as:
append_hf("Path: <sip:$Ri:$Rp;lr;received=sip:$si:$sp;transport=$pr>\r\n");
solves the problem.

Is there a reason for the quotes?

Best Regards,
Spencer


More information about the sr-users mailing list