[SR-Users] Decode contact with user paramer

Gareth Rylance gareth at rylance.me.uk
Tue Dec 18 10:11:45 CET 2012


When using the siputils function  encode_contact() on a message that
contains a user parameter e.g.

<sip:XXXXX00015;phone-context=national at 10.YYY.1.92;user=phone>;tag=88930

it encodes fine e.g.

<sip:natted_ua*sip:XXXXX00015;phone-context=national**192.168.242.102*5080*udp at 10.YYY.70.100
>

but decode_contact() errors due to the ";" (there is an explicit check for
it in the code)

I am currently working round this using

$rU = $(rU{s.replace,;,:});

to remove the ; as the user part is not needed for my application.

Would it be safe to remove the check for ";" ?

Gareth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121218/a859586d/attachment.htm>


More information about the sr-users mailing list