<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;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Bogdan-Andrei.</p>
<p><br>
</p>
<p>I will take a look in the first link now. I have already read about <tt>dlg_end_dlg and I'm using it with success, following another hint from you.</tt></p>
<p><br>
<tt></tt></p>
<p><tt>Thank you very much!</tt><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>De:</b> Bogdan-Andrei Iancu <bogdan@opensips.org><br>
<b>Enviado:</b> segunda-feira, 28 de setembro de 2015 07:03<br>
<b>Para:</b> OpenSIPS users mailling list; Rodrigo Pimenta Carvalho<br>
<b>Assunto:</b> Re: [OpenSIPS-Users] How to set default_timeout for dialogs, without resetting OpenSIPS ?</font>
<div> </div>
</div>
<div><tt>Hi Rodrigo,<br>
<br>
The timeout for a call can be set (in a per-call manner) when the call starts (during re-INVITE) or during any sequential requests (ACK, re-INVITE), etc. See DLG_timeout variable:<br>
<a title="Ctrl+Clique ou toque para seguir o link" id="LPlnk799475" class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#timeout-pvar-id">
http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#timeout-pvar-id</a><br>
<br>
If you want to tear down the call, use the dlg_end_dlg MI command :<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#id296795">
http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#id296795</a><br>
<br>
Best 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">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 25.09.2015 23:56, Rodrigo Pimenta Carvalho wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p>Dear OpenSIPS-Users,<br>
</p>
<p><br>
</p>
<p>A kind of management application in my project must provide an way of a system manager sets the default_timeout for dialogs in our already running OpenSIPS. How to do it?
<br>
</p>
<p><br>
</p>
<p>I was looking for an way of sending a command to OpenSIPS 2.2 to configure it to tear down (hang up) every call after a determined timeout. So I have just read about MI, dialog exported MI functions and dialog exported pseud-variables. What I want is to
configure the default_timeout without having to reset the OpenSIPS.</p>
<p><br>
</p>
<p>However, I didn't find a way of doing that. I was thing about to use mi_fifo and a exported command, but no way.</p>
<p><br>
</p>
<p>Is there a way of controlling the default_timeout for dialogs, while OpenSIPS is running?</p>
<p><br>
</p>
<p>If not, I was thinking about changing the value of timeout column in the table dialog, for each dialog. But, it sounds a bit complicated.</p>
<p><br>
</p>
<p>Any idea?</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p><br>
</p>
<p>Best regards.</p>
<p><br>
</p>
<p><span class="section"></span><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</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>