<div style="font-family: Arial; font-size: 14px;">Konichiwa</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;">I have some extensions registered to opensips and i want to route calls to dispatcher but not calls between extensions</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;">but when i enable dispatcher internal calls fail</div><div style="font-family: Arial; font-size: 14px;">so if i uncomment <span style="background-color:rgb(255, 255, 255);display:inline !important">#route(DISPATCH_OUT); it will try send any call to dispatcher</span></div><div style="font-family: Arial; font-size: 14px;">here is my code, what am i missing?</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;">Please help</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><span>if (!lookup("location","m")) {</span><div><span> t_reply(404, "Not Found");</span></div><div><span> exit;</span></div><div><span> }</span></div><div><span>}</span></div><div><br></div><div><br></div><div><br></div><div><span> # when routing via usrloc, log the missed calls also</span></div><div><span> do_accounting("log","missed");</span></div><div><span> route(relay);</span></div><div><span>}</span></div><span></span><span>route[relay] {</span><div><span> # for INVITEs enable some additional helper routes</span></div><div><span> if (is_method("INVITE")) {</span></div><div><br></div><div><br></div><div><br></div><div><span> t_on_branch("per_branch_ops");</span></div><div><span> t_on_reply("handle_nat");</span></div><div><span> t_on_failure("missed_call");</span></div><div><span> }</span></div><div><br></div><div><br></div><div><span> if (!t_relay()) {</span></div><div><span> send_reply(500,"Internal Error");</span></div><div><span> }</span></div><div><span> exit;</span></div><div><span>}</span></div><div><br></div><div><br></div><div><br></div><div><br></div><div><span>branch_route[per_branch_ops] {</span></div><div><span> xlog("new branch at $ru\n");</span></div><div><span>#route(DISPATCH_OUT);</span></div><div><span>}</span></div><div><br></div><div><span>route[DISPATCH_OUT] {</span></div><div><span> if (!ds_select_dst(1, 0)) {</span></div><div><span> xlog("ERROR: no active destinations found!\n");</span></div><div><span> send_reply(503, "Service Unavailable");</span></div><div><span> exit;</span></div><div><span>}</span></div><div><br></div><div><span> </span></div><div><span> t_relay();</span></div><div><span> exit;</span></div><div><span>}</span></div><span></span><br></div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial; font-size: 14px;">
<div class="protonmail_signature_block-user protonmail_signature_block-empty">
</div>
<div class="protonmail_signature_block-proton">
Sent with <a target="_blank" href="https://proton.me/" rel="noopener noreferrer">Proton Mail</a> secure email.
</div>
</div>