[SR-Users] Disable Dispatcher GW from DB

Patrick Wakano pwakano at gmail.com
Wed Mar 6 00:01:54 CET 2019


Thanks Dmitri!
It worked like a charm!
Cheers,
Patrick Wakano

On Tue, 5 Mar. 2019, 18:42 Dmitri Savolainen, <savolainen at erinaco.ru> wrote:

> hi Patrick
> You may set flag=4 in "dispatcher" table for appropriate GW
>
> On Tue, 5 Mar 2019 at 04:57, Patrick Wakano <pwakano at gmail.com> wrote:
>
>> Hello list,
>> Hope you are all doing well!
>>
>> I am looking for a way to disable a Dispatcher GW from the DB. I know I
>> can disable it using the "kamcmd dispatcher.set_state d ..."command, but in
>> case I do a reload or restart after that, the disabled GW will be back as
>> active.
>> Of course I could also delete the GW from DB, but for CDR purposes I want
>> to keep the entry but mark as permanently disabled, so Kamailio won't try
>> to use it nor ping it anymore. Does anyone how can I do that in the DB? I
>> am looking for the exact same behavior the "kamcmd dispatcher.set_state d"
>> does but from some change in the DB.
>>
>> Thanks,
>> Kind regards,
>> Patrick Wakano
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> --
> Savolainen Dmitri
> _______________________________________________
> 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/20190306/a7c29ac7/attachment.html>


More information about the sr-users mailing list