<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dale,</div><div><br></div><div>Sorry for taking so long to answer, I've been traveling.</div><div><br></div><div>Thanks so much for the suggestion, your solution worked perfectly. I'm not sure why I didn't notice that the IAX trunk was working in the other direction.</div><div><br></div><div>Once again, thanks for your help.</div><div><br></div><div>Mitch<br>Date: Mon, 25 Jun 2012 05:44:37 -0500<br>From: Dale Noll <<a href="mailto:dnoll@wi.rr.com">dnoll@wi.rr.com</a>><br>Subject: Re: [asterisk-users] IAX Trunk issue.<br>To: Asterisk Users Mailing List - Non-Commercial Discussion<br><span class="Apple-tab-span" style="white-space: pre; ">        </span><<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>Message-ID: <<a href="mailto:4FE84115.60805@wi.rr.com">4FE84115.60805@wi.rr.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>On 06/24/2012 07:53 PM, Mitchell Johnson wrote:<br><blockquote type="cite">I'm testing a few IAX trunk scenarios in a controlled lab. From server2 extension 5000 (Server IP Address 172.16.200.212) I dial 6001 which goes across the IAX trunk to server 1 (IP address 172.16.200.210). Instead of ringing the 6001 phone, it plays tt-weasels (the s extension). When I dial 6099 it also plays tt-weasels as it's supposed to, but it's not the tt-weasels under its extension. It also dials the s extension.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I only placed the s extension in the dial plan to verify that the traffic was going across the IAX trunk and hitting the correct context.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any help would be greatly appreciated.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks Mitch<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">[phones]<br></blockquote><blockquote type="cite">exten => _60XX,1,Dial(IAX2/trunk-1)<br></blockquote><blockquote type="cite">exten => _X.,1,Dial(IAX2/trunk-1)<br></blockquote><blockquote type="cite">exten => 5000,1,Dial(SIP/${EXTEN})<br></blockquote><blockquote type="cite">exten => 5000,n,Hangup<br></blockquote><blockquote type="cite">same => n,Hangup()<br></blockquote><blockquote type="cite">exten => 5099,1,Playback(tt-monkeys)<br></blockquote><blockquote type="cite">exten => 5099,n,HangUp<br></blockquote>You are not telling asterisk-1 where you want the call to go, so it is going to 's'.<br><br>Try adding the extension to the Dial() command on asterisk-2. Change<br><br>Dial(IAX2/trunk-1)<br><br>to<br><br>Dial(IAX2/trunk-1/${EXTEN})<br><br><br>Note: It appears that you are doing it correctly from asterisk-1 <br>towards asterisk-2<br><br>exten => _5XXX,1,Dial(${IAXTrunk}/${EXTEN})<br><br>Assuming, of course, that the variable IAXTrunk is properly set.<br><br><br>Dale<br><br>-- <br>"The truth speaks for itself. I'm just the messenger."<br> Lyta Alexander - Babylon 5<br><br><br></div><div><br></div><br><div><div><br></div></div><br></body></html>