Hello,
you have to execute ds_load_update() when routing the BYE via your kamailio.cfg, i.e., inside route[WITHINDLG] if you have a config built on the default one.
Cheers,
Daniel
Do i need to remove the load manually with `ds_load_update()` ??ᐧ
On Tue, Nov 27, 2018 at 3:58 PM David Villasmil <david.villasmil.work@gmail.com> wrote:
Hello guys,
I'm testing the dispatcher with the dialog module.After making several test calls, which are properly routed, the number of dialogs stay there for a while, preventing new calls from going to those destinations:
"SET": {"ID": 101,"TARGETS": [{"DEST": {"URI": "sip:1.2.3.4:5080","FLAGS": "AP","PRIORITY": 0,"ATTRS": {"BODY": "weight=100;maxload=10;duid=bedd39c7-6c73-4477-ae7d-77f8cdc96797","DUID": "bedd39c7-6c73-4477-ae7d-77f8cdc96797","MAXLOAD": 10,"WEIGHT": 100,"RWEIGHT": 0,"SOCKET": ""},"RUNTIME": {"DLGLOAD": 10}}}]
The calls have been down for several seconds, but the "DLGLOAD" parameter doesn't go down, even though
/usr/local/kamailio5/sbin/kamctl', 'dialog', 'show
Output the correct amount of dialogs.
I set the dialog handler just before relaying out:
t_on_failure("RTF_DISPATCH");set_dlg_profile("gateways","$du");route(RELAY);
And the module is supposed to remove them automatically.
Am i doing something wrong?
ᐧ
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference -- www.kamailioworld.com Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com