[OpenSIPS-Users] Escaping URL parameter values

Răzvan Crainea razvan at opensips.org
Mon Jan 21 05:20:03 EST 2019


You can use the {s.escape.param} transformation to escape a value[1].

[1] http://www.opensips.org/Documentation/Script-Tran-2-4#toc13

Best regards,
Răzvan

On 1/14/19 8:07 PM, CARTWRIGHT, CORY C wrote:
> 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=+1__5555555550__;ocn=__1234__;__carrier="__local 
> cl__ec__";cat="WIRELESS";__lata=123;npdi_ 
> <sip:55555555555 at proxy1;rn=+15555555550;ocn=1234;carrier="local 
> clec";cat="WIRELESS";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
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 

-- 
Răzvan Crainea
OpenSIPS Core Developer
   http://www.opensips-solutions.com
Meet the OpenSIPS team at the next OpenSIPS Summit:
   https://www.opensips.org/events



More information about the Users mailing list