<div dir="ltr">Hello,<div>i've DID provider that require to register to it's server. I've been able to configure this provider using kamailio and uac and to route all inbound calls from DID provider to internal asterisk media server. All is working great.</div><div><br></div><div>Now i need help to configure call routing from internal asterisk to the external DID provider.</div><div><br></div><div>I've done something like: </div><div><br></div><div><div>route[LOCATION] {</div><div><span class="" style="white-space:pre">      </span>if(is_method("INVITE")) {</div><div><span class="" style="white-space:pre">                </span>route(FROMASTERISK);</div><div><span class="" style="white-space:pre">               </span>route(TOASTERISK);</div><div><span class="" style="white-space:pre">         </span>exit;</div><div><span class="" style="white-space:pre">      </span>}</div><div>[...]</div><div>}</div><div><br></div><div><div>route[FROMASTERISK] {</div><div><span class="" style="white-space:pre">      </span>if (ds_is_from_list()) {</div><div><span class="" style="white-space:pre">           </span>xlog("L_INFO","[$fU@$si:$sp]{$rm} {$ru} Call from Media-Server Cluster\n");</div><div><span class="" style="white-space:pre">            </span>rtpengine_manage("direction=internal direction=external replace-origin replace-session-connection trust-address");</div><div><span class="" style="white-space:pre">               </span>$ru = "sip:TESTING_NUMBER@EXTERNAL_PROVIDER_IP";</div><div><span class="" style="white-space:pre">         </span>route(RELAY);</div><div><span class="" style="white-space:pre">              </span>exit;</div><div><span class="" style="white-space:pre">      </span>}   </div><div>}</div></div><div><br></div><div>It seems that when i route the call outbound, i get a 407. So i would like to react to this using uac_auth() as described here:<br></div><div><a href="http://kamailio.org/docs/modules/4.3.x/modules/uac.html#uac.f.uac_auth()">http://kamailio.org/docs/modules/4.3.x/modules/uac.html#uac.f.uac_auth()</a><br></div><div><br></div><div>Is this the right way? Can someone help me, giving hints and some working example?</div><div><br></div><div>Using kamailio 4.3.3 with rtpengine 4.1.0</div><div><br></div><div>Best regards,</div><div>Bruno</div>-- <br><div class="gmail_signature">The life is short.. live at your best!<br></div>
</div></div>