<div dir="ltr">Julian,<div><br></div><div>The uac_registrant process to handle the registration to the remote proxy and handling the 407 response on INVITE are unrelated operations.  You need to catch the 407 in a failure_route and use the <a href="http://www.opensips.org/html/docs/modules/2.1.x/uac.html#id293810">uac_auth()</a> function to build the authentication header the 407 is looking for.  I&#39;ve found it to be finicky, particularly with respect to realm.  Look at the <a href="http://www.opensips.org/html/docs/modules/2.1.x/uac_auth.html">uac_auth</a> module to set the credentials.</div><div><br></div><div>Alternatively, you could use the b2b modules to answer the 407.  If you&#39;re already using B2BUA-based topology hiding, this could make sense for you.  The b2b_entities documentation page says, &quot;The module is able to respond to authentication challenges if the uac_auth module is loaded first. The list of credentials for b2b authentication is also provided by the uac_auth module.&quot;  If you&#39;re doing lots of proxy-esque operations already, such as dialog-based operations or accounting, then this most likely does not make sense for you.  Stick with the first option.</div><div><br></div><div><br></div><div>- Jeff</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 23, 2015 at 12:29 PM, Julian Kay <span dir="ltr">&lt;<a href="mailto:juliank@vazycomm.com" target="_blank">juliank@vazycomm.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="color:#1f497d">Hi;<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">I&#39;m not looking for step by step instructions, but the invite is sent to the remote proxy of the sip trunk, it returns &quot;407 proxy authentication required&quot; <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">I&#39;m using OpensIPS 1.11 and the module UAC_Registrant to register with the sip trunk, I am able to receive calls... but the sending is stumping me.<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Thx<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Juls<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] <b>On Behalf Of </b>Julian Kay<br><b>Sent:</b> Sunday, June 21, 2015 1:24 AM<br><b>To:</b> &#39;OpenSIPS users mailling list&#39;<br><b>Subject:</b> [OpenSIPS-Users] outbound routing<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hi;<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I&#39;ve been looking for a while, but I haven&#39;t been able to find too much info on routing outbound called through a SIP Trunk... can someone point me to where I can find info / examples  / tutorials / etc.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I would really appreciate some direction, and sorry if it&#39;s an elementary grade question!! <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thx<u></u><u></u></p><p class="MsoNormal">Juls<u></u><u></u></p></div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>