[SR-Users] path uri problem

Iñaki Baz Castillo ibc at aliax.net
Wed Apr 10 10:57:25 CEST 2013


2013/4/10 Juha Heinanen <jh at tutpro.com>:
> here is an example:
>
> Path: <sip:192.98.102.10:5070;transport=tcp;lr;received=sip:192.98.102.11:35449%3Btransport%3Dtcp>.

Perfect.


> as you see, single quotes are gone, because they don't serve any purpose
> after escape.

Not exactly, I want to insist on this: Single quotes did not server
any purpose previously because using single quotes to delimit an URI
param value is 100% wrong. As said in a previous mail, a perfect SIP
parser would parse the initial wrong Path as follows (just info about
URI params):

      transport  :    tcp
      lr     :   (no value)
      received  :  'sip:192.98.102.10:58156  <-- note the initial ' !!!
      transport   :    tcp'   <-- note the final ' !!!!

So the single quote means nothing. There could be zero or N single
quotes within or around an URI param value.




--
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-users mailing list