[OpenSIPS-Users] Escaping URL parameter values

CARTWRIGHT, CORY C cc3283 at att.com
Thu Jan 17 13:32:28 EST 2019


Thank you!

From: Users <users-bounces at lists.opensips.org> On Behalf Of Alain Bieuzent
Sent: Thursday, January 17, 2019 10:19
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] Escaping URL parameter values

Hi,


You can use s.escape.user,



https://opensips.org/pipermail/users/2015-September/032545.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__opensips.org_pipermail_users_2015-2DSeptember_032545.html&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=XckYNWIj-VsioCVdM4_W_g&m=kNlgcnjsF7Styl-xQbWwocFs_xCTaIjBtE7_QjCZA-Y&s=uZbvbVO3SGwY93vFYrloMFvJQpaxQ5Guv3tWRKY-SN8&e=>



Reagrds


De : Users <users-bounces at lists.opensips.org<mailto:users-bounces at lists.opensips.org>> au nom de "CARTWRIGHT, CORY C" <cc3283 at att.com<mailto:cc3283 at att.com>>
Répondre à : OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
Date : lundi 14 janvier 2019 à 19:09
À : "users at lists.opensips.org<mailto:users at lists.opensips.org>" <users at lists.opensips.org<mailto:users at lists.opensips.org>>
Objet : [OpenSIPS-Users] Escaping URL parameter values

Hello,

I have a need to escape URL parameters in the Contact header received from an application.

Here is an example:
Contact: <sip:55555555555 at proxy1;rn=+15555555550;ocn=1234;carrier="local clec";cat="WIRELESS";lata=123;npdi<sip:55555555555 at proxy1;rn=+15555555550;ocn=1234;carrier=%22local%20clec%22;cat=%22WIRELESS%22;lata=123;npdi>>

I believe according to the RFC I need to escape the “ and any spaces?  I would like to do that within opensips based on certain conditions.  I welcome any thoughts or suggestions.



Thanks,
C


_______________________________________________ Users mailing list Users at lists.opensips.org<mailto:Users at lists.opensips.org> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.opensips.org_cgi-2Dbin_mailman_listinfo_users&d=DwQFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=XckYNWIj-VsioCVdM4_W_g&m=kNlgcnjsF7Styl-xQbWwocFs_xCTaIjBtE7_QjCZA-Y&s=BvIqo7FCFCD4gfZWNBL0EaNCeWt3zWAAvYR3dvzzNqQ&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190117/be60ea26/attachment.html>


More information about the Users mailing list