<div dir="ltr">Hello!<div><br></div><div>The problem is present only in the master branch. In version 3.3 everything works as it should.<br></div><div>Reported issue:</div><div><a href="https://github.com/OpenSIPS/opensips/issues/3000">https://github.com/OpenSIPS/opensips/issues/3000</a><br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 25 янв. 2023 г. в 16:09, Denys Pozniak <<a href="mailto:denys.pozniak@gmail.com">denys.pozniak@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello!<div><br></div><div>I am still dealing with the problem, something was found in the logs:<br></div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><i>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)</i></div><div><i>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)</i></div><div><i>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)</i></div><div><i>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)</i></div><div><i>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)</i></div><div><i>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</i></div><div><i>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</i></div><div><i>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)</i></div><div><i>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)</i></div></blockquote></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 24 янв. 2023 г. в 12:58, Denys Pozniak <<a href="mailto:denys.pozniak@gmail.com" target="_blank">denys.pozniak@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello!<div><br></div><div>Help me figure out how to set up a dispatcher in the new version of OpenSIPS.</div><div>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.</div><div>Before I used to operate with flags, but in new versions, they were removed.<br></div><div><br></div><div>Here I added 2 peers (active and fake) into dbtext/dispatcher:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><i>id(int,auto) setid(int) destination(string) socket(string,null) state(int) probe_mode(int) weight(string) priority(int) attrs(string) description(string)<br></i><i>0:1:sip\:192.168.100.100::2:1:1:1:'':''<br></i><i>1:1:sip\:127.0.0.1::2:1:1:1:'':''</i></blockquote><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><i>loadmodule "dispatcher.so"</i></div><div><i>modparam("dispatcher", "db_url", "text:///etc/opensips/dbtext")</i></div><div><i>modparam("dispatcher", "ds_ping_method", "OPTIONS")</i></div><div><i>modparam("dispatcher", "ds_ping_from", "sip:ping@dispatcher")</i></div><div><i>modparam("dispatcher", "ds_ping_interval", 1)</i></div><div><i>modparam("dispatcher", "ds_probing_mode", 1)</i></div><div><i>modparam("dispatcher", "options_reply_codes", "501,403,404,400,200")</i></div></blockquote><div><br></div><div>But always the <b>mi ds_list</b> 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<br></div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><i># opensips-cli -x mi ds_list </i></div><div><i>{</i></div><div><i> "PARTITIONS": [</i></div><div><i> {</i></div><div><i> "name": "default",</i></div><div><i> "SETS": [</i></div><div><i> {</i></div><div><i> "id": 1,</i></div><div><i> "Destinations": [</i></div><div><i> {</i></div><div><i> "URI": "sip:192.168.100.100",</i></div><div><i> "state": "Probing",</i></div><div><i> "first_hit_counter": 0,</i></div><div><i> "attr": "''",</i></div><div><i> "resolved_addresses": [</i></div><div><i> "<a href="http://192.168.100.100:5060" target="_blank">192.168.100.100:5060</a>"</i></div><div><i> ]</i></div><div><i> },</i></div><div><i> {</i></div><div><i> "URI": "sip:127.0.0.1",</i></div><div><i> "state": "Probing",</i></div><div><i> "first_hit_counter": 0,</i></div><div><i> "attr": "''",</i></div><div><i> "resolved_addresses": [</i></div><div><i> "<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>"</i></div><div><i> ]</i></div><div><br></div></blockquote><div><br>--<div><div dir="ltr"><div dir="ltr"><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><br><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><br><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div>