[SR-Users] TCP Path received quotes

Juha Heinanen jh at tutpro.com
Sat Sep 15 10:18:01 CEST 2012


Spencer Thomason writes:

> 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?

without the quotes ;transport=tcp would become param of the path uri.

-- juha



More information about the sr-users mailing list