<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:0 0 0 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:0 0 0 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:0 0 0 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">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">127.0.0.1:5060</a>"</i></div><div><i>                            ]</i></div><div><br></div></blockquote><div><br>--<div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div></div></div></div>