[SR-Users] Dialog module didn't work

sgy nucsgy at 163.com
Sun Jun 11 15:27:04 CEST 2017



HI Diego,


It works now after I added following configure info.


 


route[REQINIT] {
        if(is_method("INVITE") && !has_totag())
        {
                $dlg_ctx(timeout_route) = 12;
                $dlg_ctx(timeout_bye) = 1;
        }
        dlg_manage();


--

Best Regards,
Shengy

At 2017-06-11 18:14:07, "Diego Nadares" <dnadares at gmail.com> wrote:

Hi Shengy,


Did you set db_mode?


https://kamailio.org/docs/modules/stable/modules/dialog.html#dialog.p.db_mode



And dlg_manage?


https://kamailio.org/docs/modules/stable/modules/dialog.html#dialog.f.dlg_manage



Cheers,


Diego






in your cfg?
El El dom, 11 de jun. de 2017 a las 05:49, sgy <nucsgy at 163.com> escribió:



Hi All,


I meet an issue: After enable dialog module, dialog module didn't store dialog info into "dialog" table, please refer to following infomation.


kamailio.cfg:


#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_ALIASDB
#!define WITH_USRLOCDB
#!define WITH_NAT


#!define DBURL "mysql://root:password@localhost/kamailio"


loadmodule "jsonrpcs.so"
loadmodule "kex.so"
loadmodule "corex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "sanity.so"
loadmodule "ctl.so"
loadmodule "cfg_rpc.so"
loadmodule "acc.so"
loadmodule "counters.so"
loadmodule "dialog.so"


modparam("dialog", "dlg_flag", 4)
modparam("dialog", "db_url", DBURL)
modparam("dialog", "db_mode", 1)





--

Best Regards,
Shengy




 

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170611/c9826b84/attachment.html>


More information about the sr-users mailing list