[reSIProcate] How to escape special characters in a Uri()

david Butcher davidlbutcher at gmail.com
Tue Aug 15 11:05:35 CDT 2006


reSIP has direct support for SIP messages embedded in Uris.
You do not need to hand code the escape sequences.

See Uri::embedded()

david

On 8/14/06, Kovar, William (Bill) <bkovar at avaya.com> wrote:
>
>
> All,
>
> I'm trying to find out the correct way to escape characters similar to the
> Refer-To example in RFC 3515. The example below (from section 2 of RFC 3515)
> uses the following escaped sequences:
>
> %40 -> @
> %3B ->  ;
> %3D -> =
>
> Refer-To:
> <sip:dave at denver.example.org?Replaces=12345%40192.168.118.3%3B
> to-tag%3D12345%3Bfrom-tag%3D5FFE-3994>
>
> I need to construct the following:
>
> Refer-To:
> <sip:user at domain.com?Call-Info=xxyyzz;sip:user2 at domain.com>
>
> How do I escape the ';' using resiprocate?? Is this sequence: "\\;" special
> to a Data type, i.e. will it know how to handle it?
>
> Please advise...
>
> Bill Kovar
> Avaya Inc.
> (732) 852-2609
> bkovar at avaya.com
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
>



More information about the resiprocate-devel mailing list