But is there a way of doing this without a prefix? because people should dial without prefixes: "[EMAIL PROTECTED]" , not like: "[EMAIL PROTECTED]"
How can we make this without a prefix? something like:
if( !uri=~"@mydomain.pt" ){
forward the all to the Internet
}
:)
Thanks
Joao Pereira
Shad Mortazavi wrote:
Dear Group, I was able to fix this problem;The solution was to use a prefix to dial out.The next challenge was to send the SIP Domain over IAX2!. I found that if I included @SIPDOMAIN it would break the IAX2 communications. exten => _6.,1,Dial(IAX2/bxxxxxx:[EMAIL PROTECTED]/[EMAIL PROTECTED]), breakes because @SIPDOMAIN is treated as the target context. You also can not include @Context after the @SIPDOMAIN. I created a new variable DS which was a concatenation of EXTEN and SIPDOMAIN separated by % and not @ and I was now able to pass this over IAX2; DS = EXTEN%SIPDOMAIN. exten => _6.,1,Dial(IAX2/bxxxxxx:[EMAIL PROTECTED]/${DS}). At the other end I used the CUT command and substring facilities in Asterisk to split DS by the % eliminator; I re-formed a new variablewhich wasDS = [EMAIL PROTECTED] I can now pass calls from my internal Asterisk server to my external Asterisk server using IAX2 and then call any external VoIP number. Warm Regards Shad Mortazavi ------------------------------ Nexus Group Technical Manager n|m Nexus Management Inc -----Original Message-----From: Shad Mortazavi Sent: Thursday, March 30, 2006 10:30 AMTo: [email protected] Subject: Re: [Asterisk-Users] Routing SIP calls via URI Dear Group; I can confirm that I have read through the three examples inwww.voip-info.org.These examples are excellent and address a couple of the questions. I have IAX2 working between several asterisk servers on our VPN andbetween the DMZ and our LAN.Also exten => shad,1,Dial(IAX2/bxxxxxx:[EMAIL PROTECTED]/${EXTEN}) This answers part of the question; However what I want to do is to send any outbound sip calls via our external SIP server. i.e; VPN LAN IAX2 DMZ Internet Internal UA <-------> Internal (*) <------> External (*)<------> ExternalUA We have an extensive internal dial plan, X dial the UK, Y dial USA, 1XXXfor Voicemail, 2xxx for Meetme, etc.Do I need to setup a prefix to dial the internet? And then route all calls to the External(*) based on this prefix? Thanks Shad Mortazavi ------------------------------ Nexus Group Technical Manager n|m Nexus Management Inc _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
