<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Final reply timeout:</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/tm.html#param_fr_timeout" data-outlook-id="9518b303-33c0-4dbd-a23e-e08104a032d9">https://opensips.org/docs/modules/3.6.x/tm.html#param_fr_timeout</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/tm.html#pv_T_fr_timeout" data-outlook-id="6cb4b9bb-48cc-4fab-b25a-625a3563d704">https://opensips.org/docs/modules/3.6.x/tm.html#pv_T_fr_timeout</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Final reply timeout (invite specific):</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/tm.html#param_fr_inv_timeout" data-outlook-id="ad4832d3-94d8-4ebb-a846-a3dffa831873">https://opensips.org/docs/modules/3.6.x/tm.html#param_fr_inv_timeout</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/tm.html#pv_T_fr_inv_timeout" data-outlook-id="471cd2a5-cfa1-463d-a0fa-37a4940531a5">https://opensips.org/docs/modules/3.6.x/tm.html#pv_T_fr_inv_timeout</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If you are using dialog module, that also has a timeout:</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/dialog.html#pv_DLG_timeout" data-outlook-id="c723450d-2482-4d24-9c17-f7eeb3d86ba0">https://opensips.org/docs/modules/3.6.x/dialog.html#pv_DLG_timeout</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
We don’t use b2b module so ymmv, but it appears to also have a timeout:</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/b2b_logic.html#param_b2bl_th_init_timeout" data-outlook-id="b4dafb28-7d52-403c-8e69-0ad76d384306">https://opensips.org/docs/modules/3.6.x/b2b_logic.html#param_b2bl_th_init_timeout</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
B2B and dialog modules also have functions to terminate calls:</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/b2b_logic.html#mi_b2b_terminate_call" data-outlook-id="aa38bdbf-022c-454b-9aaa-60fd1d23e93c">https://opensips.org/docs/modules/3.6.x/b2b_logic.html#mi_b2b_terminate_call</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/dialog.html#mi_dlg_end_dlg" data-outlook-id="2583342e-a92a-4a93-b687-5e209e97edbf">https://opensips.org/docs/modules/3.6.x/dialog.html#mi_dlg_end_dlg</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
You could set a timer externally and call those functions via MI. Or you could use the mi_script module to call them from the scrip:</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/mi_script.html" data-outlook-id="88969567-5529-467e-b6ce-787b533061a7">https://opensips.org/docs/modules/3.6.x/mi_script.html</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This could be triggered by a timer_route, a script sleep (not ideal), or the event_routing module which also has a timeout:</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://www.opensips.org/Documentation/Script-Routes-3-6#toc8" data-outlook-id="c8b26b4f-4405-4a07-9876-50b43ae90853">https://www.opensips.org/Documentation/Script-Routes-3-6#toc8</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/cfgutils.html#func_sleep" data-outlook-id="a29ce4ac-e4e9-4e24-ab8c-4d67dfc0ffd0">https://opensips.org/docs/modules/3.6.x/cfgutils.html#func_sleep</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://opensips.org/docs/modules/3.6.x/event_routing.html" data-outlook-id="4e2f2001-b7cf-4b03-84cb-6f3e9bf1efce">https://opensips.org/docs/modules/3.6.x/event_routing.html</a></div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="ms-outlook-mobile-signature" style="color: inherit; background-color: inherit;">
<p style="margin: 0in; font-family: Aptos, sans-serif; font-size: 11pt;"><span style="color: black;">Ben Newlin</span></p>
</div>
<div id="mail-editor-reference-message-container" style="color: inherit; background-color: inherit;">
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"></div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor; font-family: Aptos; font-size: 12pt; color: black;">
<b>From: </b>Users <users-bounces@lists.opensips.org> on behalf of Sasmita Panda via Users <users@lists.opensips.org><br>
<b>Date: </b>Friday, December 12, 2025 at 5:50 AM<br>
<b>To: </b>OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Subject: </b>[OpenSIPS-Users] Need some help around mi_datagram module .<br>
<br>
</div>
<div style="background-color: rgb(255, 255, 255); height: auto; display: block;">
<div style="background-color: rgb(255, 255, 255); height: auto; display: block;">
<table dir="ltr" class="mc-ip-hide" style="text-align: left; border-width: 1px; border-style: solid; border-color: rgb(182, 0, 0); box-sizing: border-box; border-collapse: collapse; border-spacing: 0px;">
<tbody>
<tr>
<td dir="ltr" class="mc-ip-hide" style="text-align: left; background-color: white; color: rgb(182, 0, 0);">
<div dir="ltr" class="mc-ip-hide" style="text-align: left; font-family: calibri; font-size: 16px;">
<b> EXTERNAL EMAIL - Please use caution with links and attachments </b></div>
</td>
</tr>
</tbody>
</table>
</div>
<div dir="ltr" class="mc-ip-hide" style="text-align: left; font-family: Helvetica, Arial, sans-serif; font-size: 12px; color: rgb(0, 0, 0);">
<br>
</div>
<hr dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">Hi , </div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">Below is the opensips configuration used as a b2b user agent , I am using for voice connector app . </div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">Below is the configuration . </div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">loadmodule "event_datagram.so"<br>
loadmodule "mi_datagram.so"<br>
loadmodule "b2b_entities.so"<br>
<br>
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")<br>
<br>
modparam("tm", "fr_timeout", 2)<br>
modparam("tm", "fr_inv_timeout", 3)<br>
modparam("tm", "restart_fr_on_each_reply", 0)<br>
modparam("tm", "onreply_avp_mode", 1)<br>
<br>
modparam("mi_datagram", "socket_name", "udp:<a href="http://127.0.0.1:8002" data-outlook-id="d99319f3-9aa6-45ba-9688-39202152a783">127.0.0.1:8002</a>")<br>
<br>
####### Routing Logic ########<br>
<br>
route {<br>
        if (!is_method("INVITE") || has_totag()) {<br>
                send_reply(405, "Method not allowed!\n");<br>
                exit;<br>
        }<br>
        ua_session_server_init($var(b2b_key), "drbh");<br>
        xlog("Started new call for $var(b2b_key)\n");<br>
        exit;<br>
}</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">I am facing one issue . In case the voice connector app is not running . Opensips published the event and hence the Invite to opensips wont get answered as the application subscribed the
 event and answering to the Invite request is not working . </div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing">      Is there any option opensips terminate the call if that won't get answered in a stipulated time frame ? </div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div dir="ltr" class="gmail_signature"><b><i>Thanks & Regards</i></b></div>
<div dir="ltr" class="gmail_signature"><i>Sasmita Panda</i></div>
<div dir="ltr" class="gmail_signature"><i>Senior Network Testing and Software Engineer</i></div>
<div dir="ltr" class="gmail_signature"><i>3CLogic , ph:07827611765</i></div>
</div>
</body>
</html>