[OpenSIPS-Users] Adding Double-Quotes to a SIP header when using exec module opensips 2.1
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Dec 2 10:56:15 CET 2016
Hi Jonathan,
If I understand correctly, you want to send a SIP INFO message from the
script, right ?
Why not using the t_new_request() function instead of the exec trigger?
http://www.opensips.org/html/docs/modules/2.2.x/tm.html#id295336
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 01.12.2016 14:10, Jonathan Hunter wrote:
> Hi guys,
>
> I am using the exec module to generate a SIP INFO message, and this
> working well.
>
> However I am trying to create an Event header which contains double
> quotes, so would look something like;
>
> Event: Test;id="2";category="RECORDING";p1="STOP";p2="MASK";p3="";p4=""
>
> However when It goes out on the wire (and I look on wireshark) it does
> not include the double quotes.
>
> How can I escape double quotes so they can be sent as part of the SIP
> header?
>
> I have tried %22 , and some backslash combinations.
>
> Its fine in terms of in the configuration file, if I use backslash,
> but not when sent out, so assume its a bash command?
>
> Any help/tips would be great!
>
> Thanks
>
> Jon
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20161202/4700b1ac/attachment.htm>
More information about the Users
mailing list