<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Bogdan,</p>
<p><br>
</p>
<p>Great idea, thank you for the response!</p>
<p><br>
</p>
<p>Jon</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Bogdan-Andrei Iancu <bogdan@opensips.org><br>
<b>Sent:</b> 02 December 2016 09:56<br>
<b>To:</b> OpenSIPS users mailling list; Jonathan Hunter<br>
<b>Subject:</b> Re: [OpenSIPS-Users] Adding Double-Quotes to a SIP header when using exec module opensips 2.1</font>
<div> </div>
</div>
<div><tt>Hi Jonathan,<br>
<br>
If I understand correctly, you want to send a SIP INFO message from the script, right ?<br>
<br>
Why not using the t_new_request() function instead of the exec trigger?<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/tm.html#id295336" id="LPlnk499381" previewremoved="true">
http://www.opensips.org/html/docs/modules/2.2.x/tm.html#id295336</a><br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" id="LPlnk507106" previewremoved="true">http://www.opensips-solutions.com</a></pre>
<div id="LPBorder_GT_14806766884330.7640166600768665" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14806766884290.8152287216517251" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14806766884300.9849531274881267" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14806766884300.8413927934315306"></div>
<div id="LPTitle_14806766884300.535228796330065" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14806766884310.7261712292677347" href="http://www.opensips-solutions.com/" target="_blank" style="text-decoration: none;">Home — OpenSIPS Solutions</a></div>
<div id="LPMetadata_14806766884310.25633417934354363" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.opensips-solutions.com</div>
<div id="LPDescription_14806766884320.7672278044282865" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
OpenSIPS is a mature Open Source implementation of a SIP server. OpenSIPS is more than a SIP proxy/router as it includes application-level functionalities.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div class="moz-cite-prefix">On 01.12.2016 14:10, Jonathan Hunter wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div>Hi guys,</div>
<div><br>
</div>
<div>I am using the exec module to generate a SIP INFO message, and this working well.</div>
<div><br>
</div>
<div>However I am trying to create an Event header which contains double quotes, so would look something like;</div>
<div><br>
</div>
<div>Event: Test;id="2";category="RECORDING";p1="STOP";p2="MASK";p3="";p4=""</div>
<div><br>
</div>
<div>However when It goes out on the wire (and I look on wireshark) it does not include the double quotes.</div>
<div><br>
</div>
<div>How can I escape double quotes so they can be sent as part of the SIP header?</div>
<div><br>
</div>
<div>I have tried %22 , and some backslash combinations.</div>
<div><br>
</div>
<div>Its fine in terms of in the configuration file, if I use backslash, but not when sent out, so assume its a bash command?</div>
<div><br>
</div>
<div>Any help/tips would be great!</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Jon</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
</body>
</html>