Hello,
i try to get dialog-infos to see how many calls are running on my kamailio. But i can not figure out what steps are necessary to get this running.
loading the module and the dependencies - check. set and dlg_flag via module param - check.
MUST i use a DB?! Or what is missing?
kamctl stats | grep dialog "dialog:active_dialogs = 0", "dialog:early_dialogs = 0", "dialog:expired_dialogs = 0", "dialog:failed_dialogs = 0", "dialog:processed_dialogs = 0",
the dialog snippets (grep out ouf my config):
#!define DLG_FLAG 8
loadmodule "dialog.so" modparam("dialog", "dlg_flag", DLG_FLAG) modparam("dialog", "dlg_match_mode", 1) modparam("dialog", "rr_param", "did") modparam("dialog", "profiles_with_value", "active_calls; inbound_calls; outbound_calls") modparam("dialog", "send_bye", 1) modparam("dialog", "enable_stats", 1) modparam("dialog", "dlg_extra_hdrs", "Hint: inactivity timeout\r\n") # Added to requests generated locally by the module (e.g. BYE) modparam("dialog", "track_cseq_updates", 1)
On Tue, Mar 27, 2018 at 03:27:27PM +0200, Karsten Horsmann wrote:
loading the module and the dependencies - check. set and dlg_flag via module param - check.
MUST i use a DB?! Or what is missing?
kamctl stats | grep dialog "dialog:active_dialogs = 0", "dialog:early_dialogs = 0", "dialog:expired_dialogs = 0", "dialog:failed_dialogs = 0", "dialog:processed_dialogs = 0",
the dialog snippets (grep out ouf my config):
#!define DLG_FLAG 8
...
modparam("dialog", "track_cseq_updates", 1)
You need to set a profile for the dialogs you want to register with set_dlg_profile
Hello Daniel,
yeap after a few moments later ;) i found this nice thread https://lists.kamailio.org/pipermail/sr-users/2012-July/073919.html
and i must set "dlg_manage();" near the setflag(FLT_ACC) stuff and modparam("dialog", "db_mode", 0)
so now it counts "dialogs" - and you are right, there are not attached to any of my profiles at this moment.
Seems to be a "must have" the modparam("dialog", "db_mode", WHATEVER) - 0 in my case.
2018-03-27 15:49 GMT+02:00 Daniel Tryba d.tryba@pocos.nl:
On Tue, Mar 27, 2018 at 03:27:27PM +0200, Karsten Horsmann wrote:
loading the module and the dependencies - check. set and dlg_flag via module param - check.
MUST i use a DB?! Or what is missing?
kamctl stats | grep dialog "dialog:active_dialogs = 0", "dialog:early_dialogs = 0", "dialog:expired_dialogs = 0", "dialog:failed_dialogs = 0", "dialog:processed_dialogs = 0",
the dialog snippets (grep out ouf my config):
#!define DLG_FLAG 8
...
modparam("dialog", "track_cseq_updates", 1)
You need to set a profile for the dialogs you want to register with set_dlg_profile
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Karsten,
Why is the dlg_flag set to 8 What is the purpose of that on the modparam?
I did not find from the documentation the meaning or did not understand :)
Tomi
On 27 Mar 2018, at 17.10, Karsten Horsmann khorsmann@gmail.com wrote:
Hello Daniel,
yeap after a few moments later ;) i found this nice thread https://lists.kamailio.org/pipermail/sr-users/2012-July/073919.html https://lists.kamailio.org/pipermail/sr-users/2012-July/073919.html
and i must set "dlg_manage();" near the setflag(FLT_ACC) stuff and modparam("dialog", "db_mode", 0)
so now it counts "dialogs" - and you are right, there are not attached to any of my profiles at this moment.
Seems to be a "must have" the modparam("dialog", "db_mode", WHATEVER) - 0 in my case.
2018-03-27 15:49 GMT+02:00 Daniel Tryba <d.tryba@pocos.nl mailto:d.tryba@pocos.nl>: On Tue, Mar 27, 2018 at 03:27:27PM +0200, Karsten Horsmann wrote:
loading the module and the dependencies - check. set and dlg_flag via module param - check.
MUST i use a DB?! Or what is missing?
kamctl stats | grep dialog "dialog:active_dialogs = 0", "dialog:early_dialogs = 0", "dialog:expired_dialogs = 0", "dialog:failed_dialogs = 0", "dialog:processed_dialogs = 0",
the dialog snippets (grep out ouf my config):
#!define DLG_FLAG 8
...
modparam("dialog", "track_cseq_updates", 1)
You need to set a profile for the dialogs you want to register with set_dlg_profile
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org mailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Mit freundlichen Grüßen *Karsten Horsmann* _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Am Dienstag, 27. März 2018, 18:05:25 CEST schrieb Tomi Hakkarainen:
Why is the dlg_flag set to 8 What is the purpose of that on the modparam?
I did not find from the documentation the meaning or did not understand :)
Hello Tomi,
there are two ways of actually tell the dialog module to track a certain dialog:
1. call dlg_manage() in cfg 2. set the dlg_flag with setflag() in the cfg before transaction creation
For compatibility reasons you need to set the dlg_flag currently, even if you don't use it and only use dlg_manage().
Best regards,
Henning
Thank you Henning
I think it is clear to me now.
Tomi
On 27 Mar 2018, at 22.33, Henning Westerholt hw@kamailio.org wrote:
Am Dienstag, 27. März 2018, 18:05:25 CEST schrieb Tomi Hakkarainen:
Why is the dlg_flag set to 8 What is the purpose of that on the modparam?
I did not find from the documentation the meaning or did not understand :)
Hello Tomi,
there are two ways of actually tell the dialog module to track a certain dialog:
- call dlg_manage() in cfg
- set the dlg_flag with setflag() in the cfg before transaction creation
For compatibility reasons you need to set the dlg_flag currently, even if you don't use it and only use dlg_manage().
Best regards,
Henning