<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 "dispatcher.so"</div><div><br></div><div><br></div><div><br></div><div>modparam("dispatcher","db_url", "mysql://connectionstring")</div><div>modparam("dispatcher", "table_name", "dispatcher")</div>
<div>modparam("dispatcher", "setid_col", "setid")</div><div>modparam("dispatcher", "destination_col", "destination")</div><div>modparam("dispatcher", "flags_col", "flags")</div>
<div>modparam("dispatcher", "priority_col", "priority")</div><div><br></div><div>modparam("dispatcher", "force_dst", 1)</div><div><br></div><div>and under ROUTE</div><div>
<br></div><div><div><br></div><div> if ( !mf_process_maxfwd_header("10") )</div><div> {</div><div> sl_send_reply("483","To Many Hops");</div><div> drop();</div>
<div> };</div><div><br></div><div>xlog("L_ERR","************************AFTER TOO MANY HOPS******************************************* cr\n");</div><div><br></div><div> ds_select_dst("1", "0");</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>