[OpenSIPS-Users] Displaying the state of the peer in the dispatcher
Denys Pozniak
denys.pozniak at gmail.com
Wed Jan 25 14:09:49 UTC 2023
Hello!
I am still dealing with the problem, something was found in the logs:
*Jan 25 15:06:30 localhost.localdomain /usr/sbin/opensips[5914]:
ERROR:dispatcher:ds_options_callback: Setting the state failed
(<sip:192.168.100.100>, group 1)*
*Jan 25 15:06:31 localhost.localdomain /usr/sbin/opensips[5923]:
ERROR:dispatcher:ds_options_callback: Setting the probing state failed
(<sip:127.0.0.1>, group 1)*
*Jan 25 15:06:32 localhost.localdomain /usr/sbin/opensips[5914]:
ERROR:dispatcher:ds_options_callback: Setting the state failed
(<sip:192.168.100.100>, group 1)*
*Jan 25 15:06:33 localhost.localdomain /usr/sbin/opensips[5923]:
DBG:dispatcher:ds_options_callback: OPTIONS-Request was finished with code
408 (to <sip:127.0.0.1>, group 1)*
*Jan 25 15:06:33 localhost.localdomain /usr/sbin/opensips[5923]:
ERROR:dispatcher:ds_options_callback: Setting the probing state failed
(<sip:127.0.0.1>, group 1)*
*Jan 25 15:06:34 localhost.localdomain /usr/sbin/opensips[5923]:
DBG:dispatcher:ds_check_timer: probing set #1, URI sip:192.168.100.100*
*Jan 25 15:06:34 localhost.localdomain /usr/sbin/opensips[5923]:
DBG:dispatcher:ds_check_timer: probing set #1, URI sip:127.0.0.1*
*Jan 25 15:06:34 localhost.localdomain /usr/sbin/opensips[5914]:
DBG:dispatcher:ds_options_callback: OPTIONS-Request was finished with code
200 (to <sip:192.168.100.100>, group 1)*
*Jan 25 15:06:34 localhost.localdomain /usr/sbin/opensips[5914]:
ERROR:dispatcher:ds_options_callback: Setting the state failed
(<sip:192.168.100.100>, group 1)*
вт, 24 янв. 2023 г. в 12:58, Denys Pozniak <denys.pozniak at gmail.com>:
> Hello!
>
> Help me figure out how to set up a dispatcher in the new version of
> OpenSIPS.
> I need to constantly send SIP OPTIONS ping to all peers and change the
> status (mi dlg_list) if there is no answer from someone.
> Before I used to operate with flags, but in new versions, they were
> removed.
>
> Here I added 2 peers (active and fake) into dbtext/dispatcher:
>
>
> *id(int,auto) setid(int) destination(string) socket(string,null)
> state(int) probe_mode(int) weight(string) priority(int) attrs(string)
> description(string)*
> *0:1:sip\:192.168.100.100::2:1:1:1:'':''*
> *1:1:sip\:127.0.0.1::2:1:1:1:'':''*
>
>
> *loadmodule "dispatcher.so"*
> *modparam("dispatcher", "db_url", "text:///etc/opensips/dbtext")*
> *modparam("dispatcher", "ds_ping_method", "OPTIONS")*
> *modparam("dispatcher", "ds_ping_from", "sip:ping at dispatcher")*
> *modparam("dispatcher", "ds_ping_interval", 1)*
> *modparam("dispatcher", "ds_probing_mode", 1)*
> *modparam("dispatcher", "options_reply_codes", "501,403,404,400,200")*
>
>
> But always the *mi ds_list* gives me the status of both as Probing,
> although I would expect the status of the fake peer (127.0.0.1) to become
> Inactive, the real one should be Active
>
> *# opensips-cli -x mi ds_list *
> *{*
> * "PARTITIONS": [*
> * {*
> * "name": "default",*
> * "SETS": [*
> * {*
> * "id": 1,*
> * "Destinations": [*
> * {*
> * "URI": "sip:192.168.100.100",*
> * "state": "Probing",*
> * "first_hit_counter": 0,*
> * "attr": "''",*
> * "resolved_addresses": [*
> * "192.168.100.100:5060
> <http://192.168.100.100:5060>"*
> * ]*
> * },*
> * {*
> * "URI": "sip:127.0.0.1",*
> * "state": "Probing",*
> * "first_hit_counter": 0,*
> * "attr": "''",*
> * "resolved_addresses": [*
> * "127.0.0.1:5060 <http://127.0.0.1:5060>"*
> * ]*
>
>
> --
> BR,
> Denys Pozniak
>
>
>
--
BR,
Denys Pozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230125/4d26e102/attachment.html>
More information about the Users
mailing list