<p dir="ltr">This working in 2.1. But 2.2 crash.<br>
When delete this line all is OK.</p>
<p dir="ltr">You can see in dump.</p>
<div class="gmail_quote">На 17.11.2015 г. 1:45 PM "Rodrigo Pimenta Carvalho" <<a href="mailto:pimenta@inatel.br">pimenta@inatel.br</a>> написа:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div 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>
<div name="divtagdefaultwrapper">
<div><font size="2">
<div>RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: <a href="tel:%2B55%2035%203471%209200" value="+553534719200" target="_blank">+55 35 3471 9200</a> RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De:</b> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> em nome de Dragomir Haralambiev <<a href="mailto:goup2010@gmail.com" target="_blank">goup2010@gmail.com</a>><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>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div>