<div dir="ltr">Hi<div>I am using carrieroute to distribute traffic, I am not sure if there is a way for carrieroute to detect if a destination is down or not, but I read that the dispatcher module does that so I did compile it into the existing kamailio installation and added the following settings :</div>

<div><br></div><div><div>loadmodule &quot;dispatcher.so&quot;</div><div><br></div><div><br></div><div><br></div><div>modparam(&quot;dispatcher&quot;,&quot;db_url&quot;, &quot;mysql://connectionstring&quot;)</div><div>modparam(&quot;dispatcher&quot;, &quot;table_name&quot;, &quot;dispatcher&quot;)</div>

<div>modparam(&quot;dispatcher&quot;, &quot;setid_col&quot;, &quot;setid&quot;)</div><div>modparam(&quot;dispatcher&quot;, &quot;destination_col&quot;, &quot;destination&quot;)</div><div>modparam(&quot;dispatcher&quot;, &quot;flags_col&quot;, &quot;flags&quot;)</div>

<div>modparam(&quot;dispatcher&quot;, &quot;priority_col&quot;, &quot;priority&quot;)</div><div><br></div><div>modparam(&quot;dispatcher&quot;, &quot;force_dst&quot;, 1)</div><div><br></div><div>and under ROUTE</div><div>

<br></div><div><div><br></div><div>        if ( !mf_process_maxfwd_header(&quot;10&quot;) )</div><div>        {</div><div>                sl_send_reply(&quot;483&quot;,&quot;To Many Hops&quot;);</div><div>                drop();</div>

<div>        };</div><div><br></div><div>xlog(&quot;L_ERR&quot;,&quot;************************AFTER TOO MANY HOPS******************************************* cr\n&quot;);</div><div><br></div><div>        ds_select_dst(&quot;1&quot;, &quot;0&quot;);</div>

<div><br></div><div>        forward();</div><div>        # t_relay();</div><div><br></div></div><div><br></div><div>All I get is too many hops in ngrep and kamailio reports : (26467) ERROR: dispatcher [dispatch.c:1564]: no destination sets</div>

<div><br></div><div><br></div><div>In the DB I do have a setid 1 and sip:ip.of.carrer:5060 as destination.</div><div><br></div><div><br></div><div style="color:rgb(136,136,136)">Regards</div><div style="color:rgb(136,136,136)">

<br></div></div></div>