<div dir="ltr">However this code is getting executed after reaching the ringing state. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 4 Apr 2024 at 12:13, Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com">prathibhab.tvm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am not getting the log also.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 4 Apr 2024 at 12:02, Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>if($rm == "INVITE") {</div><div>xlog("Request method = $rm");</div><div>exec("script.sh \"INVITE\"");</div><div>}</div><div><br></div><div><br></div><div>With the above code , I am getting the Request method = INVITE twice in the log file. But the exec() is not getting executed.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 3 Apr 2024 at 19:43, Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="auto">Yes. I am canceling the call prior to dialog creation.</div>
<div id="m_8458916905273119160m_-2298827415588078237m_5697869599879437404ms-outlook-mobile-signature" dir="auto">
<div><br>
</div>
Sent from <a href="https://aka.ms/AAb9ysg" target="_blank">Outlook for Android</a></div>
<hr style="display:inline-block;width:98%">
<div id="m_8458916905273119160m_-2298827415588078237m_5697869599879437404divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com" target="_blank">Ben.Newlin@genesys.com</a>><br>
<b>Sent:</b> Wednesday, April 3, 2024 7:03:33 PM<br>
<b>To:</b> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Subject:</b> Re: [OpenSIPS-Users] external applications</font>
<div> </div>
</div>
<div lang="EN-US">
<div>
<p><span style="font-size:11pt">If your script is cancelling the call then why wouldn’t you “capture it” in the same place? Send whatever you need to whatever external entity you are using directly. You don’t need a callback to trigger
if you know you are taking the action.</span></p>
<p><span style="font-size:11pt"> </span></p>
<p><span style="font-size:11pt">A created dialog being cancelled should result in a state change event – to CANCELLED I think - so I assume you mean you are cancelling it prior to dialog creation, in which case there won’t be any dialog
callback.</span></p>
<p><span style="font-size:11pt"> </span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:black">Ben Newlin</span><span style="font-size:11pt"></span></p>
<p><span style="font-size:11pt"> </span></p>
<div id="m_8458916905273119160m_-2298827415588078237m_5697869599879437404x_mail-editor-reference-message-container">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>><br>
<b>Date: </b>Wednesday, April 3, 2024 at 2:35 AM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Subject: </b>Re: [OpenSIPS-Users] external applications</span></p>
</div>
<div>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<div>
<div>
<div>
<table border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td style="border:1pt solid rgb(182,0,0);background:white;padding:0.75pt">
<p><b><span style="font-size:12pt;font-family:Calibri,sans-serif;color:rgb(182,0,0)"> EXTERNAL EMAIL - Please use caution with links and attachments </span></b></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><span style="font-size:13.5pt;font-family:Helvetica"> </span></p>
<div align="center" style="text-align:center"><span style="font-size:13.5pt;font-family:Helvetica">
<hr size="0" width="100%" align="center">
</span></div>
</div>
<p><span style="font-size:13.5pt">I am capturing the dropped call after ringing in failure_route, but If I cancelled during the start of the call, how to capture it.
</span><span style="font-size:12pt"></span></p>
</div>
</div>
<p><span style="font-size:12pt"> </span></p>
<div>
<div>
<p><span style="font-size:12pt">On Tue, 2 Apr 2024 at 20:38, Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com" target="_blank">Ben.Newlin@genesys.com</a>> wrote:</span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p><span style="font-size:11pt">The start of the call would be when you call “create_dialog”. The dialog state for that is “UNCONFIRMED”. I’m not sure whether a dialog state change event is raised for creation. It may only be
raised when the state changes after creation. But since you control the dialog creation, you can just take whatever action you desire at that time.</span><span style="font-size:12pt"></span></p>
<p><span style="font-size:11pt"> </span><span style="font-size:12pt"></span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:black">Ben Newlin</span><span style="font-size:12pt"></span></p>
<p><span style="font-size:11pt"> </span><span style="font-size:12pt"></span></p>
<div id="m_8458916905273119160m_-2298827415588078237m_5697869599879437404x_m_5516818212658863807mail-editor-reference-message-container">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>><br>
<b>Date: </b>Tuesday, April 2, 2024 at 8:05 AM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Subject: </b>Re: [OpenSIPS-Users] external applications</span><span style="font-size:12pt"></span></p>
</div>
<div>
<div>
<div>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td style="border:1pt solid rgb(182,0,0);background:white;padding:0.75pt">
<p><b><span style="font-size:12pt;font-family:Calibri,sans-serif;color:rgb(182,0,0)"> EXTERNAL EMAIL - Please use caution with links and attachments </span></b><span style="font-size:12pt"></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><span style="font-size:12pt;font-family:Helvetica"> </span><span style="font-size:12pt"></span></p>
<div align="center" style="text-align:center"><span style="font-size:12pt;font-family:Helvetica">
<hr size="0" width="100%" align="center">
</span></div>
</div>
<p><span style="font-size:12pt">I tried is_method("INVITE"), but it is getting called only at the start of RINGING.</span></p>
</div>
<p><span style="font-size:12pt"> </span></p>
<div>
<div>
<p><span style="font-size:12pt">On Tue, 2 Apr 2024 at 15:09, Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>> wrote:</span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<p><span style="font-size:12pt">I am able to capture the trying status also. But not getting the START of the call...</span></p>
</div>
<p><span style="font-size:12pt"> </span></p>
<div>
<div>
<p><span style="font-size:12pt">On Tue, 2 Apr 2024 at 14:59, Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>> wrote:</span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<p><span style="font-size:12pt">How do I identify the START and TRYING state of the call?</span></p>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<div>
<p><span style="font-size:12pt"> I am able to capture RINGING, ANSWER and TERMINATED states.</span></p>
</div>
</div>
<p><span style="font-size:12pt"> </span></p>
<div>
<div>
<p><span style="font-size:12pt">On Tue, 2 Apr 2024 at 14:51, Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>> wrote:</span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<p><span style="font-size:12pt">I tried </span></p>
<div>
<p><span style="font-size:12pt">event_route[E_DLG_STATE_CHANGED] {<br>
<br>
}</span></p>
</div>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<div>
<p><span style="font-size:12pt">I am getting syntax error.</span></p>
</div>
</div>
<p><span style="font-size:12pt"> </span></p>
<div>
<div>
<p><span style="font-size:12pt">On Tue, 2 Apr 2024 at 14:45, Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>> wrote:</span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<p><span style="font-size:12pt">How to use </span><b><span style="font-size:10.5pt;color:rgb(13,13,13)">E_DLG_STATE_CHANGED to identify the start of the call?</span></b><span style="font-size:12pt"></span></p>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
</div>
<p><span style="font-size:12pt"> </span></p>
<div>
<div>
<p><span style="font-size:12pt">On Wed, 20 Mar 2024 at 19:46, Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com" target="_blank">Ben.Newlin@genesys.com</a>> wrote:</span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<div>
<div>
<p><span style="font-size:11pt">You can also use the REST client. And there are many other ways, as well.</span><span style="font-size:12pt"></span></p>
<p><span style="font-size:11pt"> </span><span style="font-size:12pt"></span></p>
<p><span style="font-size:11pt">There is no single correct answer to the vague question of connecting to any generic “external application”. You must understand your systems and decide the best approach depending on the needs
and capabilities of both the external application and OpenSIPS.</span><span style="font-size:12pt"></span></p>
<p><span style="font-size:11pt"> </span><span style="font-size:12pt"></span></p>
<p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:black">Ben Newlin</span><span style="font-size:12pt"></span></p>
<p><span style="font-size:11pt"> </span><span style="font-size:12pt"></span></p>
<div id="m_8458916905273119160m_-2298827415588078237m_5697869599879437404x_m_5516818212658863807m_-4363307836826690516m_1624755388129454787m_-1945649159398065010m_-8050106847357673406m_8695025903602522518m_1654847465124314426m_8585846378295858694mail-editor-reference-message-container">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>><br>
<b>Date: </b>Wednesday, March 20, 2024 at 10:06 AM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>>, Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>><br>
<b>Subject: </b>Re: [OpenSIPS-Users] external applications</span><span style="font-size:12pt"></span></p>
</div>
<div>
<div>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td style="border:1pt solid rgb(182,0,0);background:white;padding:0.75pt">
<p><b><span style="font-size:12pt;font-family:Calibri,sans-serif;color:rgb(182,0,0)"> EXTERNAL EMAIL - Please use caution with links and attachments </span></b><span style="font-size:12pt"></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p><span style="font-size:12pt;font-family:Helvetica"> </span><span style="font-size:12pt"></span></p>
<div align="center" style="text-align:center"><span style="font-size:12pt;font-family:Helvetica">
<hr size="0" width="100%" align="center">
</span></div>
</div>
<p style="margin-bottom:12pt"><span style="font-size:12pt;font-family:"Courier New"">Use the dialog events:<br>
<a href="https://opensips.org/html/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED" target="_blank">
https://opensips.org/html/docs/modules/3.4.x/dialog.html#event_E_DLG_STATE_CHANGED</a><br>
<br>
And you subscribe from outside OpenSIPS for such events:<br>
<a href="https://www.opensips.org/Documentation/Interface-Events-3-4" target="_blank">
https://www.opensips.org/Documentation/Interface-Events-3-4</a><br>
<br>
Regards,</span><span style="font-size:12pt"></span></p>
<pre>Bogdan-Andrei Iancu</pre>
<pre> </pre>
<pre>OpenSIPS Founder and Developer</pre>
<pre> <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a></pre>
<pre> <a href="https://www.siphub.com" target="_blank">https://www.siphub.com</a></pre>
<div>
<p><span style="font-size:12pt">On 20.03.2024 12:16, Prathibha B wrote:</span></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<p><span style="font-size:12pt">No. I want to pass START, CONNECT, END messages from OpenSIPS to external application.</span></p>
</div>
<p><span style="font-size:12pt"> </span></p>
<div>
<div>
<p><span style="font-size:12pt">On Wed, 20 Mar 2024 at 15:42, Marcin Groszek <<a href="mailto:marcin@voipplus.net" target="_blank">marcin@voipplus.net</a>> wrote:</span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<p>Well, to execute external command from opensips you may want to use EXEC module.</p>
<p>this is a manual for v3.2:</p>
<p><a href="https://opensips.org/html/docs/modules/3.2.x/exec.html" target="_blank">https://opensips.org/html/docs/modules/3.2.x/exec.html</a></p>
<p> </p>
<div>
<p><span style="font-size:12pt">On 3/20/2024 5:00 AM, Prathibha B wrote:</span></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<p><span style="font-size:12pt">How to integrate OpenSIPS with external applications?<br clear="all">
</span></p>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<p><span style="font-size:12pt">-- </span></p>
<div>
<div>
<div>
<p><span style="font-size:12pt">Regards,</span></p>
</div>
<div>
<p><span style="font-size:12pt">B.Prathibha</span></p>
</div>
</div>
</div>
</div>
<p style="margin-bottom:12pt"><span style="font-size:12pt"> </span></p>
<pre>_______________________________________________</pre>
<pre>Users mailing list</pre>
<pre><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a></pre>
<pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
<pre>-- </pre>
<pre>Best Regards:</pre>
<pre>Marcin Groszek</pre>
<pre>Business Phone Service</pre>
<pre><a href="https://www.voipplus.net" target="_blank">https://www.voipplus.net</a></pre>
</div>
<p><span style="font-size:12pt">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></span></p>
</blockquote>
</div>
<p><span style="font-size:12pt"><br clear="all">
</span></p>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<p><span style="font-size:12pt">-- </span></p>
<div>
<div>
<div>
<p><span style="font-size:12pt">Regards,</span></p>
</div>
<div>
<p><span style="font-size:12pt">B.Prathibha</span></p>
</div>
</div>
</div>
<p style="margin-bottom:12pt"><span style="font-size:12pt"> </span></p>
<pre>_______________________________________________</pre>
<pre>Users mailing list</pre>
<pre><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a></pre>
<pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
<p><span style="font-size:12pt"> </span></p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p><span style="font-size:12pt"><br clear="all">
</span></p>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<p><span><span style="font-size:12pt">--
</span></span><span style="font-size:12pt"></span></p>
<div>
<div>
<div>
<p><span style="font-size:12pt">Regards,</span></p>
</div>
<div>
<p><span style="font-size:12pt">B.Prathibha</span></p>
</div>
</div>
</div>
</blockquote>
</div>
<p><span style="font-size:12pt"><br clear="all">
</span></p>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<p><span><span style="font-size:12pt">--
</span></span><span style="font-size:12pt"></span></p>
<div>
<div>
<div>
<p><span style="font-size:12pt">Regards,</span></p>
</div>
<div>
<p><span style="font-size:12pt">B.Prathibha</span></p>
</div>
</div>
</div>
</blockquote>
</div>
<p><span style="font-size:12pt"><br clear="all">
</span></p>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<p><span><span style="font-size:12pt">--
</span></span><span style="font-size:12pt"></span></p>
<div>
<div>
<div>
<p><span style="font-size:12pt">Regards,</span></p>
</div>
<div>
<p><span style="font-size:12pt">B.Prathibha</span></p>
</div>
</div>
</div>
</blockquote>
</div>
<p><span style="font-size:12pt"><br clear="all">
</span></p>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<p><span><span style="font-size:12pt">--
</span></span><span style="font-size:12pt"></span></p>
<div>
<div>
<div>
<p><span style="font-size:12pt">Regards,</span></p>
</div>
<div>
<p><span style="font-size:12pt">B.Prathibha</span></p>
</div>
</div>
</div>
</blockquote>
</div>
<p><span style="font-size:12pt"><br clear="all">
</span></p>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<p><span><span style="font-size:12pt">--
</span></span><span style="font-size:12pt"></span></p>
<div>
<div>
<div>
<p><span style="font-size:12pt">Regards,</span></p>
</div>
<div>
<p><span style="font-size:12pt">B.Prathibha</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p><span style="font-size:12pt">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></span></p>
</div>
</blockquote>
</div>
<p><span style="font-size:12pt"><br clear="all">
</span></p>
<div>
<p><span style="font-size:12pt"> </span></p>
</div>
<p><span><span style="font-size:12pt">--
</span></span><span style="font-size:12pt"></span></p>
<div>
<div>
<div>
<p><span style="font-size:12pt">Regards,</span></p>
</div>
<div>
<p><span style="font-size:12pt">B.Prathibha</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,</div><div>B.Prathibha<br></div></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,</div><div>B.Prathibha<br></div></div></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,</div><div>B.Prathibha<br></div></div></div>