<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16434">
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2 face=Verdana>hi, alex</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT color=#000080>thanks for your kindly
reply.</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT color=#000080>the remote proxy do not use
domain as realm, the following is part of the message</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT color=#000080></FONT> </DIV>
<DIV style="TEXT-INDENT: 2em"><FONT color=#000080>210.83.80.xxx is the ip of
asterisk</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT color=#000080>202.104.188.xx is the ip of
remote proxy sip server ( not asterisk)</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT color=#000080></FONT> </DIV>
<DIV style="TEXT-INDENT: 2em"><FONT color=#000080></FONT> </DIV>
<DIV style="TEXT-INDENT: 2em"><FONT
color=#000080>--------------------------------------------------------------</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT
color=#000080>SIP/2.0 407 Proxy Authentication Required</DIV>
<DIV style="TEXT-INDENT: 2em">
<DIV>CSeq: 102 INVITE</DIV>
<DIV>Via: SIP/2.0/UDP 210.83.80.xxx:8090;branch=z9hG4bK15264427</DIV>
<DIV>From: "18971416745" <sip:555@210.83.80.xxx:8090>;tag=as04f73506</DIV>
<DIV>Call-ID: 0672dae66b88e08038259ee07f2ecd6d@210.83.80.xxx:8090</DIV>
<DIV>To: <sip:01897141xxxx@202.104.188.xx:5060>;tag=28094711162141020641417313</DIV>
<DIV>Contact: <sip:202.104.188.xx:5060;transport=udp></DIV>
<DIV>Proxy-Authenticate: DIGEST realm="VoipSwitch", nonce="131719964128160427109472139339"</DIV>
<DIV>Content-Length: 0</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>INVITE sip:01897141xxxx@202.104.188.xx:5060 SIP/2.0</DIV>
<DIV>Via: SIP/2.0/UDP 210.83.80.xxx:8090;branch=z9hG4bK16d8cbb0</DIV>
<DIV>Max-Forwards: 70</DIV>
<DIV>From: "1897141xxxx" <sip:555@210.83.80.xxx:8090>;tag=as04f73506</DIV>
<DIV>To: <sip:01897141xxxx@202.104.188.5:5060></DIV>
<DIV>Contact: <sip:555@210.83.80.xxx:8090></DIV>
<DIV>Call-ID: 0672dae66b88e08038259ee07f2ecd6d@210.83.80.xxx:8090</DIV>
<DIV>CSeq: 103 INVITE</DIV>
<DIV>User-Agent: wsvoip2.0.1</DIV>
<DIV>Proxy-Authorization: Digest username="555", realm="VoipSwitch", algorithm=MD5, uri="sip:01897141xxxx@202.104.188.5:5060", nonce="131719964128160427109472139339", response="a7794045c0248461332e9393332699ef"</DIV>
<DIV>Date: Wed, 28 Sep 2011 08:47:48 GMT</DIV>
<DIV>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH</DIV>
<DIV>Supported: replaces, timer</DIV>
<DIV>Content-Type: application/sdp</DIV>
<DIV>Content-Length: 293</DIV></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2011-09-30 </FONT></DIV><FONT
color=#000080 size=2 face=Verdana>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>cnasterisk</SPAN>
</FONT></DIV>
<HR color=#b5c4df SIZE=1>
<DIV><FONT size=2 face=Verdana><STRONG>>发件人:</STRONG> Alex Balashov
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>>发送时间:</STRONG> 2011-09-30
15:36:29 </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>>收件人:</STRONG> Asterisk Users Mailing
List - Non-Commercial Discussion </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>>抄送:</STRONG> asterisk-users
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>>主题:</STRONG> Re: [asterisk-users]
invite authentication error !? </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT></DIV>
<DIV><FONT size=2 face=Verdana>>
<DIV>This is just a speculative shot in the dark, but remember that the domain
of the From URI is important, and that the authentication "realm" (domain) is
part of the authentication credentials. So, what you have in your
'fromdomain' and 'host' settings on the peer does matter.</DIV>
<DIV><BR>
<DIV><SPAN
style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469)"
class=Apple-style-span>--</SPAN></DIV>
<DIV><SPAN
style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469)"
class=Apple-style-span>This message was painstakingly thumbed out on my mobile,
so apologies for brevity, errors, and general sloppiness.</SPAN></DIV>
<DIV><SPAN
style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469)"
class=Apple-style-span><BR></SPAN></DIV>
<DIV>Alex Balashov - Principal</DIV>
<DIV>Evariste Systems LLC</DIV>
<DIV>260 Peachtree Street NW</DIV>
<DIV>Suite 2200</DIV>
<DIV>Atlanta, GA 30303</DIV>
<DIV>Tel: +1-678-954-0670</DIV>
<DIV>Fax: +1-404-961-1892</DIV>
<DIV>Web: <A href="http://www.evaristesys.com/"><A
href="http://www.evaristesys.com/">http://www.evaristesys.com/</A></A></DIV></DIV>
<DIV><BR>On Sep 30, 2011, at 3:16 AM, "cnasterisk" <<A
href="mailto:cnasterisk@163.com">cnasterisk@163.com</A>> wrote:<BR><BR></DIV>
<DIV></DIV>
<BLOCKQUOTE type="cite">
<DIV>
<DIV><FONT size=2 face=Verdana>hi,</FONT></DIV>
<DIV> Dear all.</DIV>
<DIV> I setted a sip account on a sip trunk. when a
client call via this sip trunk, asterisk call failed on this
trunk.</DIV>
<DIV>I have captured the sip messages on the host where asterisk located, and
found that:</DIV>
<DIV> </DIV>
<DIV>1. asterisk send a INVITE message to remote sip proxy without
"proxy-authorization" field.</DIV>
<DIV>2. the remote sip proxy send back a
" SIP/2.0 407 Proxy Authentication Required"
message.</DIV>
<DIV>3. asterisk send a INVITE message with "proxy-authorization"
field.</DIV>
<DIV>4. remote proxy send back a "403(Forbidden)" message, that is mean "wrong
password"</DIV>
<DIV> </DIV>
<DIV>I also tested the sip account on a softphone, it works normal!</DIV>
<DIV> </DIV>
<DIV>why this happed? and how can i solve it?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2011-09-30 </FONT></DIV><FONT
size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT color=#c0c0c0 size=2
face=Verdana><SPAN>kevin</SPAN></FONT></DIV></FONT></DIV></BLOCKQUOTE>
<BLOCKQUOTE type="cite">
<DIV><SPAN>--</SPAN><BR><SPAN>_____________________________________________________________________</SPAN><BR><SPAN>--
Bandwidth and Colocation Provided by <A
href="http://www.api-digital.com">http://www.api-digital.com</A>
--</SPAN><BR><SPAN>New to Asterisk? Join us for a live introductory webinar
every
Thurs:</SPAN><BR><SPAN> <A
href="http://www.asterisk.org/hello"><A
href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</A></A></SPAN><BR><SPAN></SPAN><BR><SPAN>asterisk-users
mailing list</SPAN><BR><SPAN>To UNSUBSCRIBE or update options
visit:</SPAN><BR><SPAN> <A
href="http://lists.digium.com/mailman/listinfo/asterisk-users"><A
href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A></A></SPAN></DIV></BLOCKQUOTE></FONT></DIV></BODY></HTML>