<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 &quot;Rodrigo Pimenta Carvalho&quot; &lt;<a href="mailto:pimenta@inatel.br">pimenta@inatel.br</a>&gt; написа:<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 &quot;dialog.so&quot;<br>
modparam(&quot;dialog&quot;, &quot;dlg_match_mode&quot;, 1)<br>
modparam(&quot;dialog&quot;, &quot;db_mode&quot;, 1)<br>
modparam(&quot;dialog&quot;, &quot;db_url&quot;,<br>
    &quot;sqlite:///usr/local/opensips_proxy/sqlite&quot;) # CUSTOMIZE ME<br>
</p>
<p>modparam(&quot;dialog&quot;, &quot;default_timeout&quot;, 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(&quot;B&quot;)) {<br>
            send_reply(&quot;500&quot;,&quot;Erro no terminal principal&quot;);<br>
            exit;<br>
     }<br>
<br>
    avp_db_query(&quot;select Value from GeneralConfigurations where Attribute = &#39;CALLMAXDURATION&#39;&quot;, &quot;$avp(CallMaxDuration)&quot;);<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> &lt;<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>&gt; em nome de Dragomir Haralambiev &lt;<a href="mailto:goup2010@gmail.com" target="_blank">goup2010@gmail.com</a>&gt;<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>