Dialog module didn't work

classic Classic list List threaded Threaded
3 messages Options
sgy
Reply | Threaded
Open this post in threaded view
|

Dialog module didn't work

sgy

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
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: Dialog module didn't work

Diego Nadares
Hi Shengy,

Did you set db_mode?


And dlg_manage?


Cheers,

Diego



in your cfg?
El El dom, 11 de jun. de 2017 a las 05:49, sgy <[hidden email]> 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
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
sgy
Reply | Threaded
Open this post in threaded view
|

Re: Dialog module didn't work

sgy

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" <[hidden email]> wrote:
Hi Shengy,

Did you set db_mode?


And dlg_manage?


Cheers,

Diego



in your cfg?
El El dom, 11 de jun. de 2017 a las 05:49, sgy <[hidden email]> 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
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


 


_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users