<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’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> </o:p></p><p class=MsoNormal>exten => 777,1,Dial(SIP/abc-777:mypassword@someip.no-ip.info:5071/777,40,trw)<o:p></o:p></p><p class=MsoNormal>exten => 777,2,Hangup<o:p></o:p></p><p class=MsoNormal><o:p> </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 “mypassword”, and pass it into extension 777 on that server.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>SERVER-B has a sip account defined as:<o:p></o:p></p><p class=MsoNormal><o:p> </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> </o:p></p><p class=MsoNormal>If I run a ‘show peer abc-777’ then I get a peer ID through ok.<o:p></o:p></p><p class=MsoNormal><o:p> </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> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> -- Executing [777@from-sip-UK:1] Dial("SIP/ADRIANSPHONE-09dd5178", "SIP/abc-777:mypassword@someip.no-ip.info:5070/777|40|trw") 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> -- 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 '"Adrian Marsh" <sip:ADRIANSPHONE@82.XXX.XXX.26>;tag=as0ff33d62'<o:p></o:p></p><p class=MsoNormal> -- SIP/someip.no-ip.info:5070/777-09b16048 is circuit-busy<o:p></o:p></p><p class=MsoNormal> == Everyone is busy/congested at this time (1:0/1/0)<o:p></o:p></p><p class=MsoNormal> -- Executing [777@from-sip-UK:2] Hangup("SIP/ADRIANSPHONE-09dd5178", "") in new stack<o:p></o:p></p><p class=MsoNormal> == Spawn extension (from-sip-UK, 777, 2) exited non-zero on 'SIP/ADRIANSPHONE-09dd5178'<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </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> </o:p></p><p class=MsoNormal>Found peer 'abc-777' 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> </o:p></p><p class=MsoNormal><o:p> </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> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Adrian<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>