[sr-dev] [kamailio/kamailio] dialog: failover database loading behaviour in shared DB scenario, expiration of dialogs (#2080)

Henning Westerholt notifications at github.com
Wed Oct 2 11:00:42 CEST 2019


Hello Joel,

these two topics (dialog expiration and send BYE) are handled individually.

Two proxies with this cfg:

modparam("dialog", "db_mode", 0)
modparam("dialog", "db_update_period", 10)
modparam("dialog", "enable_dmq", 1)
modparam("dialog", "default_timeout", 60);
modparam("dialog", "send_bye", 1)

* proxy1 restarted after call established - it will get the dialog data from proxy2, with a different timeout value set internally:

>   root at proxy-1:/etc/kamailio# kamcmd dlg.list |egrep "_ts|timeout"
>         start_ts: 1570005344
>         init_ts: 1570005344
>         end_ts: 0
>         timeout: 1570005404
> root at proxy-1:/etc/kamailio# /etc/init.d/kamailio restart
> [ ok ] Restarting kamailio (via systemctl): kamailio.service.
> root at proxy-1:/etc/kamailio# kamcmd dlg.list |egrep "_ts|timeout"
>         start_ts: 1570005344
>         init_ts: 1570005344
>         end_ts: 0
>         timeout: 1570005415

* but call will be expired on time (from proxy2):

> 10:35:44.137            pjsua_app.c  .....Call 1 state changed to CONFIRMED
> root at proxy-1:/etc/kamailio# date
> Wed Oct  2 10:36:46 CEST 2019
> root at proxy-1:/etc/kamailio# kamcmd dlg.list |egrep "_ts|timeout"
> root at proxy-1:/etc/kamailio#

* if proxy2 is stopped _after_ proxy1 was restarted, call will be expired later (from proxy1):

> 10:43:09.950            pjsua_app.c  .....Call 2 state changed to CONFIRMED
> root at proxy-1:/etc/kamailio# date; kamcmd dlg.list |egrep "_ts|timeout"
> Wed Oct  2 10:44:12 CEST 2019
>         start_ts: 1570005789
>         init_ts: 1570005789
>         end_ts: 0
>         timeout: 1570005860
> root at proxy-1:/etc/kamailio# date; kamcmd dlg.list |egrep "_ts|timeout"
> Wed Oct  2 10:44:30 CEST 2019

* proxy2 will not send a timeout for a dialog that does not belong to him

* proxy1 (after a restart) will not send a BYE at timeout, this might be related to the socket:

> root at proxy-1:/etc/kamailio# date; kamcmd dlg.list | grep socket
> Wed Oct  2 10:54:49 CEST 2019
>                 socket: udp:116.203.XXX.XX:5060
>                 socket: udp:116.203.XXX.XX:5060
> root at proxy-1:/etc/kamailio# /etc/init.d/kamailio restart
> [ ok ] Restarting kamailio (via systemctl): kamailio.service.
> root at proxy-1:/etc/kamailio# date; kamcmd dlg.list | grep socket
> Wed Oct  2 10:54:56 CEST 2019
>                 socket:
>                 socket:

There should be a new issue created for the last topic. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2080#issuecomment-537403352
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191002/785475b2/attachment.html>


More information about the sr-dev mailing list