[SR-Users] Decode contact with user paramer

Gareth Rylance gareth at rylance.me.uk
Thu Jan 3 14:28:02 CET 2013


Anyone?

If no one objects I will submit a patch with it removed.


On 18 December 2012 09:11, Gareth Rylance <gareth at rylance.me.uk> wrote:

> 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/20130103/48cff0d4/attachment.htm>


More information about the sr-users mailing list