This working in 2.1. But 2.2 crash. When delete this line all is OK. You can see in dump. На 17.11.2015 г. 1:45 PM "Rodrigo Pimenta Carvalho" <pime...@inatel.br> написа:
> Hi. > > > In my case this problem does not happen and I´m using the version 2.2 too. > > > In the OpenSIPS script file I have: > > > > ----------------------------------------------------------------------------------------------------------------------------------- > > > #### DIALOG module > loadmodule "dialog.so" > modparam("dialog", "dlg_match_mode", 1) > modparam("dialog", "db_mode", 1) > modparam("dialog", "db_url", > "sqlite:///usr/local/opensips_proxy/sqlite") # CUSTOMIZE ME > > modparam("dialog", "default_timeout", 540) > > > # About the db_mode parameter: > # 0 - NO_DB - the memory content is not flushed into DB; > # 1 - REALTIME - any dialog information changes will be reflected into > the database immediately. > # 2 - DELAYED - the dialog information changes will be flushed into the > DB periodically, based on a timer routine. > # 3 - SHUTDOWN - the dialog information will be flushed into DB only at > shutdown - no runtime updates. > > > # create dialog with timeout > if ( !create_dialog("B")) { > send_reply("500","Erro no terminal principal"); > exit; > } > > avp_db_query("select Value from GeneralConfigurations where Attribute > = 'CALLMAXDURATION'", "$avp(CallMaxDuration)"); > > $DLG_timeout = $avp(CallMaxDuration); > > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > > Hopefully, this example will serve.... > > > Best regards. > > > > RODRIGO PIMENTA CARVALHO > Inatel Competence Center > Software > Ph: +55 35 3471 9200 RAMAL 979 > > > ------------------------------ > *De:* users-boun...@lists.opensips.org <users-boun...@lists.opensips.org> > em nome de Dragomir Haralambiev <goup2...@gmail.com> > *Enviado:* terça-feira, 17 de novembro de 2015 07:32 > *Para:* OpenSIPS users mailling list > *Assunto:* [OpenSIPS-Users] Opensips 2.2 CRASH > > Hello developers, > > Opensips 2.2 crash when try to run: > > $DLG_timeout=$avp(maxtime); > > This in Opensips 2.1.1 working fine. > > Best regards, > > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users