Inter Asterisk Calling

Hi

I'm trying to setup my dialplan to allow calling asterisk users at different domains.

The IAX trunk between the domains are working 100%

The requirement though is to dial a user either with user@domain.com or via an numeral extension (When the call originates from the PSTN). Preference is to the user@domain.com

Is this accomplished via pattern matching with contexts (ie domain.com)or is there a "better" way of doing this via asterisk ? (Does asterisk do any type of DNS resolution WITHIN it's dialplan?)

Can an extension be referenced with both a numeric number ( 1 800 555 8520) as well as a character reference (i.e. user@domain.com) Or would this only be possible with two seperate extensions?

Please correct me in my thinking and any advice would be appreciated !

Thanks
Wicus001Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

grbladesCommented:
Generally you do it using internal extension numbers.
So to take my home phone system as an example it connects to the office system via IAX. I can dial a number normally and it goes out via my telephone line but if I dial an extension (starts with a 6), or 9 for an office outside line then it gets sent to the office system :-

exten => _[6-9].,1,Dial(IAX2/USERID:PASSWORD@dns.name.of.office.pbx/${EXTEN},60,tT)

The number I dialed is passed over to the office PBX with the number I dialed set as the destination to be called.
0
Wicus001Author Commented:
Thanks for the reply.

Yet, I finally found the perfect solution to my question:-

http://www.voip-info.org/wiki/view/Asterisk+tips+SIP+URI+Dial

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IP Telephony

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.