<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.</p>
<p><br>
</p>
<p>In my case this problem does not happen and I´m using the version 2.2 too.</p>
<p><br>
</p>
<p>In the OpenSIPS script file I have:</p>
<p><br>
</p>
<p>-----------------------------------------------------------------------------------------------------------------------------------</p>
<p><br>
</p>
<p>#### DIALOG module<br>
loadmodule "dialog.so"<br>
modparam("dialog", "dlg_match_mode", 1)<br>
modparam("dialog", "db_mode", 1)<br>
modparam("dialog", "db_url",<br>
"sqlite:///usr/local/opensips_proxy/sqlite") # CUSTOMIZE ME<br>
</p>
<p>modparam("dialog", "default_timeout", 540) <br>
</p>
<p><br>
</p>
<p># About the db_mode parameter:<br>
# 0 - NO_DB - the memory content is not flushed into DB;<br>
# 1 - REALTIME - any dialog information changes will be reflected into the database immediately.<br>
# 2 - DELAYED - the dialog information changes will be flushed into the DB periodically, based on a timer routine.<br>
# 3 - SHUTDOWN - the dialog information will be flushed into DB only at shutdown - no runtime updates. </p>
<p><br>
</p>
<p> # create dialog with timeout<br>
if ( !create_dialog("B")) {<br>
send_reply("500","Erro no terminal principal");<br>
exit;<br>
}<br>
<br>
avp_db_query("select Value from GeneralConfigurations where Attribute = 'CALLMAXDURATION'", "$avp(CallMaxDuration)");<br>
</p>
<p> $DLG_timeout = $avp(CallMaxDuration); </p>
<p><br>
</p>
<p>----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p>
<p><br>
</p>
<p>Hopefully, this example will serve....</p>
<p><br>
</p>
<p>Best regards.<br>
</p>
<p></p>
<p></p>
<p><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" face="Calibri, sans-serif" color="#000000"><b>De:</b> users-bounces@lists.opensips.org <users-bounces@lists.opensips.org> em nome de Dragomir Haralambiev <goup2010@gmail.com><br>
<b>Enviado:</b> terça-feira, 17 de novembro de 2015 07:32<br>
<b>Para:</b> OpenSIPS users mailling list<br>
<b>Assunto:</b> [OpenSIPS-Users] Opensips 2.2 CRASH</font>
<div> </div>
</div>
<div>
<div dir="ltr"><span style="font-size:12.8px">Hello developers,</span>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Opensips 2.2 crash when try to run:<br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">$DLG_timeout=$avp(maxtime);<br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">This in Opensips 2.1.1 working fine.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Best regards,</div>
<div style="font-size:12.8px"><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>