Hi guys, This may be a fairly simple answer but here's my problem I have 2 Asterisk servers on 2 sites connected via an IAX trunk If user 1001 on site a wants to call user 1001 on site b they will dial 51001 This is taken care of by a 5|XXXX dialing rule on the outbound route. The problem I'm having is that when the call ends up at site b it looks like user 1001 is being called by 1001 (i.e. themselves) How can I get the 5 to stay where it is so that lookups work correctly? is it part of the outbound CID? Cheers Jon
It seems to me as though this is happening: Asterisk A Exten => 5XXXX,1,Dial(IAX/${EXTEN:1}) So the call goes to Asterisk B as Exten => 5XXXX,1,Dial(IAX/1001) So you need to change the IAX dial out command on Asterisk A to not truncate the 5 and set up 5XXXX on Asterisk B's inbound context so you have an "apples to apples" correlation. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonathan Archer Sent: Tuesday, October 11, 2011 8:53 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Asterisk to asterisk IAX trunk Hi guys, This may be a fairly simple answer but here's my problem I have 2 Asterisk servers on 2 sites connected via an IAX trunk If user 1001 on site a wants to call user 1001 on site b they will dial 51001 This is taken care of by a 5|XXXX dialing rule on the outbound route. The problem I'm having is that when the call ends up at site b it looks like user 1001 is being called by 1001 (i.e. themselves) How can I get the 5 to stay where it is so that lookups work correctly? is it part of the outbound CID? Cheers Jon -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
On Tue, Oct 11, 2011 at 02:53:26PM +0100, Jonathan Archer wrote:>How can I get the 5 to stay where it is so that lookups work correctly? >is it part of the outbound CID?My trunking (prefix 9 to get trunk access from either side of the link) includes things like: exten => _9NX.,1,Set(CALLERID(num)=9${CALLERID(num)}) exten => _9NX.,n,Dial(IAX2/remoteserver/${EXTEN:1},,wW) R