<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.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]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi I&#8217;m having trouble routing a call between two A*k servers I admin.<o:p></o:p></p><p class=MsoNormal><br>SERVER- A: has a simple extensions set, and just needs to Dial to server B, but authenticate as part of the dial:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>exten =&gt; 777,1,Dial(SIP/abc-777:mypassword@someip.no-ip.info:5071/777,40,trw)<o:p></o:p></p><p class=MsoNormal>exten =&gt; 777,2,Hangup<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>So that should pass the call to the server listening on port 5071 of someip.no-ip.info, using the username of abc-777 and password of &#8220;mypassword&#8221;, and pass it into extension 777 on that server.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>SERVER-B has a sip account defined as:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>[abc-777]<o:p></o:p></p><p class=MsoNormal>type=friend<o:p></o:p></p><p class=MsoNormal>secret = mypassword<o:p></o:p></p><p class=MsoNormal>context = local<o:p></o:p></p><p class=MsoNormal>host = someotherip.no-ip.info<o:p></o:p></p><p class=MsoNormal>;disallow = all<o:p></o:p></p><p class=MsoNormal>;allow = ulaw<o:p></o:p></p><p class=MsoNormal>canreinvite = no<o:p></o:p></p><p class=MsoNormal>nat = yes<o:p></o:p></p><p class=MsoNormal>qualify = no<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>If I run a &#8216;show peer abc-777&#8217; then I get a peer ID through ok.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>But if I try to place a call, I get the following message on SERVER-A and the call disconnects.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- Executing [777@from-sip-UK:1] Dial(&quot;SIP/ADRIANSPHONE-09dd5178&quot;, &quot;SIP/abc-777:mypassword@someip.no-ip.info:5070/777|40|trw&quot;) in new stack<o:p></o:p></p><p class=MsoNormal>[2011-04-12 15:18:03] WARNING[13926]: channel.c:720 ast_best_codec: Don't know any of 0x4000 formats<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- Called abc-777:mypassword@someip.no-ip.info:5070/777<o:p></o:p></p><p class=MsoNormal>[2011-04-12 15:18:03] NOTICE[17058]: chan_sip.c:12108 handle_response_invite: Failed to authenticate on INVITE to '&quot;Adrian Marsh&quot; &lt;sip:ADRIANSPHONE@82.XXX.XXX.26&gt;;tag=as0ff33d62'<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- SIP/someip.no-ip.info:5070/777-09b16048 is circuit-busy<o:p></o:p></p><p class=MsoNormal>&nbsp; == Everyone is busy/congested at this time (1:0/1/0)<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- Executing [777@from-sip-UK:2] Hangup(&quot;SIP/ADRIANSPHONE-09dd5178&quot;, &quot;&quot;) in new stack<o:p></o:p></p><p class=MsoNormal>&nbsp; == Spawn extension (from-sip-UK, 777, 2) exited non-zero on 'SIP/ADRIANSPHONE-09dd5178'<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>If I turn traces on, on SERVER-B I see the line:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Found peer 'abc-777'&nbsp; so I think the peer is authenticating ok.<o:p></o:p></p><p class=MsoNormal>The context of the user looks right for accessing extension 777 on SERVER-B.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-US>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Adrian<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>