<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div dir="auto">If someone attempts to make a call and cancels it, I need to maintain a log of those calls for reporting purposes.</div>
<div id="ms-outlook-mobile-signature" dir="auto">
<div><br>
</div>
Sent from <a href="https://aka.ms/AAb9ysg">Outlook for Android</a></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Users <users-bounces@lists.opensips.org> on behalf of Ben Newlin <Ben.Newlin@genesys.com><br>
<b>Sent:</b> Friday, April 5, 2024 7:36:52 PM<br>
<b>To:</b> OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Subject:</b> Re: [OpenSIPS-Users] external applications</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:Helvetica}
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
@font-face
{font-family:Aptos}
@font-face
{font-family:Consolas}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Aptos",sans-serif}
a:link, span.x_MsoHyperlink
{color:blue;
text-decoration:underline}
span.x_EmailStyle23
{font-family:"Aptos",sans-serif;
color:windowtext}
.x_MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
{}
-->
</style>
<div lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="font-size:11.0pt">If you are executing that as the first command in the main route block the dialog will not have been created yet. The $DLG_status variable is only valid after the dialog has been created either by a call
to create_dialog or by using another module that requires and auto-creates a dialog.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">Additionally, $DLG_status is documented to only be available for sequential requests, and only after calling loose_route (or match_dialog or topology_hiding_match, I believe).</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"><a href="https://opensips.org/docs/modules/3.4.x/dialog.html#pv_DLG_status">https://opensips.org/docs/modules/3.4.x/dialog.html#pv_DLG_status</a></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"><a href="https://opensips.org/docs/modules/3.4.x/dialog.html#func_create_dialog">https://opensips.org/docs/modules/3.4.x/dialog.html#func_create_dialog</a></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">I still don’t understand why you need some event to capture the start of the call. Even if you are not creating the dialog directly, your routing script has to have some sort of logic that is specific to
a new call. Whatever you are trying to “capture” can be captured there.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">If you cannot identify the path a new call will take through your script, I don’t think anyone here will be able to help you much, at least not without the entire script.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">Ben Newlin</span><span style="font-size:11.0pt"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<div id="x_mail-editor-reference-message-container">
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt; color:black">From:
</span></b><span style="font-size:12.0pt; color:black">Users <users-bounces@lists.opensips.org> on behalf of Prathibha B <prathibhab.tvm@gmail.com><br>
<b>Date: </b>Friday, April 5, 2024 at 3:42 AM<br>
<b>To: </b>OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Subject: </b>Re: [OpenSIPS-Users] external applications</span></p>
</div>
<div>
<div>
<div>
<table class="x_MsoNormalTable" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse; border:none">
<tbody>
<tr>
<td style="border:solid #B60000 1.0pt; background:white; padding:.75pt .75pt .75pt .75pt">
<p class="x_MsoNormal"><b><span style="font-size:12.0pt; font-family:"Calibri",sans-serif; color:#B60000"> EXTERNAL EMAIL - Please use caution with links and attachments </span></b></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; font-family:Helvetica"> </span></p>
<div class="x_MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt; font-family:Helvetica">
<hr size="0" width="100%" align="center">
</span></div>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt">route {<br>
if($DLG_status == 1) <br>
xlog("UNCONFIRMED\n");</span></p>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt">}</span></p>
</div>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt"> </span></p>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt">On Fri, 5 Apr 2024 at 13:09, Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com">prathibhab.tvm@gmail.com</a>> wrote:</span></p>
</div>
<blockquote style="border:none; border-left:solid #CCCCCC 1.0pt; padding:0in 0in 0in 6.0pt; margin-left:4.8pt; margin-right:0in">
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt">I am not getting $DLG_status = UNCONFORMED at the start of the call. Can someone help?</span></p>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt"> </span></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</body>
</html>