<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Arial;color:navy"><o:p>That works. Thanks.&nbsp;</o:p></span></p>

<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Arial;color:navy"><o:p>&nbsp;</o:p></span></p>

<div class="MsoNormal" align="center" style="text-align:center"><span style="color:windowtext">

<hr size="2" width="100%" align="center" tabindex="-1">

</span></div>

<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:Tahoma;
color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:
Tahoma;color:windowtext"> Daniel-Constantin Mierla [mailto:miconda@gmail.com] <br>
<b>Sent:</b> Thursday, June 02, 2011 4:28 PM<br>
<b>To:</b> SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users
Mailing List<br>
<b>Cc:</b> Gary Chen<br>
<b>Subject:</b> Re: [SR-Users] Problem using dispatcher.</span><span style="color:windowtext"><o:p></o:p></span></p>

<p class="MsoNormal"><o:p>&nbsp;</o:p></p>

<p class="MsoNormal"><br>
<br>
On 6/2/11 9:41 PM, Gary Chen wrote: <o:p></o:p></p>

<p class="MsoPlainText"><u1:p>&nbsp;Thanks for the quick reply.</u1:p><o:p></o:p></p>

<p class="MsoPlainText"><u1:p>How can I fix this?</u1:p><o:p></o:p></p>

<p class="MsoNormal">When you set t_on_failure for an INVITE, the respective
failure route will be executed for any reply &gt;=0. What you have to do is to
not re-route to a new destination from failure route, simply exit for those
reply codes, like:<br>
<br>
if(t_check_status("401|407")) exit;<br>
<br>
You don't handle as well the canceled transactions, when re-routing makes no
sense -- you should do it (see default config file for example.<br>
<br>
Cheers,<br>
Daniel<br>
<br style="mso-special-character:line-break">
<!--[if !supportLineBreakNewLine]--><br style="mso-special-character:line-break">
<!--[endif]--><o:p></o:p></p>

<p class="MsoPlainText">We are using Kamailio as single point of entry for all
our phones. Our phones all registered with Freeswitch. Kamailio only route the
SIP traffic. Is there any way I can make Kamailio not treat 407 as failure?<o:p></o:p></p>

<p class="MsoPlainText">I also have the same problem with REGISTER messages when
Freeswitch reply with '401 Unauthorized'. I end up using Forward() instead of
t_relay() to make the phone1 register with Freeswitch.<o:p></o:p></p>

<p class="MsoPlainText"><o:p>&nbsp;</o:p></p>

<p class="MsoPlainText">Any suggestion?<o:p></o:p></p>

<p class="MsoPlainText"><u1:p>&nbsp;</u1:p><o:p></o:p></p>

<p class="MsoPlainText">-----Original Message-----<br>
From: <a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>
[<a href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>]
On Behalf Of Alex Balashov<br>
Sent: Thursday, June 02, 2011 3:30 PM<br>
To: <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
Subject: Re: [SR-Users] Problem using dispatcher.<o:p></o:p></p>

<p class="MsoPlainText"><u1:p>&nbsp;</u1:p><o:p></o:p></p>

<p class="MsoPlainText">On 06/02/2011 03:26 PM, Gary Chen wrote:<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText"><u1:p>&nbsp;</u1:p><o:p></o:p></p>

<p class="MsoPlainText">&gt; the dispatcher always get into FAILURE route
although the log shows<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">&gt; that kamailio did send INVITE to 10.10.1.222 and
received '407 -<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">&gt; Proxy Authentication Required' from Freexwitch1 and
then dispatcher<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">&gt; send INVITE to 10.10.1.223 and also received '407 -
Proxy<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">&gt; Authentication Required' from Freexwitch2 and
eventually failed.<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText"><u1:p>&nbsp;</u1:p><o:p></o:p></p>

<p class="MsoPlainText">That's because any reply &gt;= 300 is considered a
failure.<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText"><u1:p>&nbsp;</u1:p><o:p></o:p></p>

<p class="MsoPlainText">-- <u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">Alex Balashov - Principal<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">Evariste Systems LLC<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">260 Peachtree Street NW<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">Suite 2200<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">Atlanta, GA 30303<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">Tel: +1-678-954-0670<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">Fax: +1-404-961-1892<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">Web: <a href="http://www.evaristesys.com/">http://www.evaristesys.com/</a><u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText"><u1:p>&nbsp;</u1:p><o:p></o:p></p>

<p class="MsoPlainText">_______________________________________________<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText">SIP Express Router (SER) and Kamailio (OpenSER) -
sr-users mailing list<u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText"><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><u1:p></u1:p><o:p></o:p></p>

<p class="MsoPlainText"><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><u1:p></u1:p><o:p></o:p></p>

<p class="MsoNormal"><br>
<br style="mso-special-character:line-break">
<!--[if !supportLineBreakNewLine]--><br style="mso-special-character:line-break">
<!--[endif]--></p><fieldset class="mimeAttachmentHeader"></fieldset><o:p></o:p><p></p>

<pre>_______________________________________________<o:p></o:p></pre><pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre><pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre><pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>

<p class="MsoNormal"><br style="mso-special-character:line-break">
<!--[if !supportLineBreakNewLine]--><br style="mso-special-character:line-break">
<!--[endif]--><o:p></o:p></p>

<pre>-- <o:p></o:p></pre><pre>Daniel-Constantin Mierla -- <a href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;;mso-fareast-font-family:
SimSun;color:black;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;
mso-bidi-language:AR-SA"><a href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a>
-- <a href="http://twitter.com/miconda">http://twitter.com/miconda</a></span></div></body></html>