You need to specify what number on the remote server you are trying to reach like this:
Exten => 0730184220,1,Dial(IAX2/username:passwd/${EXTEN}) Which will dial the same number (0730184220) on the remote Asterisk server. Or, you could even add the context to the dial statement like this: Exten => 0730184220,1,Dial(IAX2/username:passwd/[EMAIL PROTECTED]) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of AS Sent: Saturday, March 26, 2005 10:13 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] context Hi, We are trying to redirect some DDIs from one machine to another machine over IAX2. When we redirect the number as: exten => 0730184220,1,Dial(IAX2/username) it sends the call fine to the other end. However, at the other end the calls comes in as s@''. In the past when we have bought DDIs off other providers, we have received the call as [EMAIL PROTECTED] Any suggestions would be appreciated? Cheers, Sahil - > -----Original Message----- - > From: [EMAIL PROTECTED] - > [mailto:[EMAIL PROTECTED] On Behalf Of Jerry - > Sent: Sunday, 27 March 2005 1:55 PM - > To: Asterisk Users Mailing List - Non-Commercial Discussion - > Subject: Re: [Asterisk-Users] context - > - > - > On Mar 26, 2005, at 9:38 PM, AS wrote: - > - > > How do I how to send a call as [EMAIL PROTECTED] ? - > > - > Not exactly sure what you are asking. If you are trying to - > dial a specific extension within a specific context then I - > use a GoTo. - > - > [currentcontext] - > exten => 8885551212,1,GoTo(anothercontext,100,1) - > - > [anothercontext] - > exten => 100,1,Dial(whatever) - > - > _______________________________________________ - > Asterisk-Users mailing list - > Asterisk-Users@lists.digium.com - > http://lists.digium.com/mailman/listinfo/asterisk-users - > To UNSUBSCRIBE or update options visit: - > http://lists.digium.com/mailman/listinfo/asterisk-users - > - > _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005 -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005 _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users