<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
it is not very clear -- is that the INVITE is replied with 4017 by
one server (A) and them the client is resending the INVITE with
credentials, but it gets to the other server (B)?<br>
<br>
You say that the 407 is getting to the other server, which is rather
confusing how it may happen.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 25/03/16 05:19, Rex Lin (林昱頡) wrote:<br>
</div>
<blockquote
cite="mid:FA3A489946C3E743BD95EEC508DD57A3E2B31B44@Mailbx04.quanta.corp"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:新細明體;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@新細明體";
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:微軟正黑體;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@微軟正黑體";
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">Hi admins,<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">I'm kinda new in this
group and I'm not quite sure if I'm posting in a correct
way, advise if I'm wrong.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">below is my post.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">I would like to activate
Dispatcher module for apply Load Balance functionality
purpose.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">but it's been hard to
complete so far, I wonder if you can give me some advise in
below situation.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">we have 2 Kamailios, the
version is 4.3.3 ; we use domain for the SIP registration.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">we want to make Kamailios
work in double active mode for SIP load balancing,<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">we have a F5 to do the
domain name round robin to make two UAC regitering under two
UAS.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">I have put the
"route(DISPATCH) b4 PSTN in request_route.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">when I try to make UAC-A
call to UAC-B, it appears 407 proxy authentication required.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">we wiresharked, UAS has
sent INVITE to UAS-B, but UAS-B sent the error code 407 to
UAS-A<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">Is the configuration has
to be set to "UAS-B accepting INVITE of UAS-A" ?<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">or the UAS-A should
carrying the auth info into UAS-B ?<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">detail configuration as
below.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">dispatcher params<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"list_file", "/usr/local/etc/kamailio/dispatcher.list")<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"flags", 1)<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"dst_avp", "$avp(AVP_DST)")<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"grp_avp", "$avp(AVP_GRP)")<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"cnt_avp", "$avp(AVP_CNT)")<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"sock_avp", "$avp(AVP_SOCK)")<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"ds_ping_interval", 30)<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"ds_ping_from", <a class="moz-txt-link-rfc2396E" href="sip:kamailio1@awesomedomain.com">"sip:kamailio1@awesomedomain.com"</a>)<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"ds_ping_method", "OPTIONS")<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"ds_probing_mode", 1)<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">modparam("dispatcher",
"ds_probing_threshold", 1)<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">DISPATCHER Routing<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">route[DISPATCH] {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"># round robin dispatching
on gateways group '1'<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">
if(!ds_select_dst("1", "4")) {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">
send_reply("404", "No destination");<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> exit;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> xdbg("--- SCRIPT:
going to <$ru> via <$du>\n");<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">
t_on_failure("RTF_DISPATCH");<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> route(RELAY);<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> exit;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"># Re-route in case of
failure<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">failure_route[RTF_DISPATCH]
{<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> if
(t_is_canceled()) {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> exit;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"># next node - only for 500
or local timeout<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> if
(t_check_status("500") || (t_branch_timeout() &&
!t_branch_replied())) {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">
if(ds_next_dst()) {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">
t_on_failure("RTF_DISPATCH");<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">
route(RELAY);<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">
exit;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">}<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">Best Regards,</span><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:black" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white"><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-
serif;color:#1F497D" lang="EN-US">Rex Lin</span><span
style="font-size:10.5pt;font-family:"微軟正黑體",sans-serif;
color:black" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>