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 <[email protected]>: > 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@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
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
