I was just trying to solve this one myself. I found this method worked
for me. I'm still calling this "Method 1" in my document because I don't
fully understand the "switch" and the "register" versions and pros/cons
to implementation of each. But this one does work.

Method 1
Receiving Server
Iax.conf
[REC_SERVER]
type=user
host=my.calling.server.ca
secret=mysecret
context=local
trunk=yes

Calling Server
Extensions.conf
[mycontext]
exten =>
_5XXX,1,Dial(IAX2/REC_SERVER:[EMAIL PROTECTED]/[EMAIL PROTECTED])
exten => _5XXX,2,Hangup
exten => _5XXX,102,Hangup

Any call in the mycontext context on Calling Server to extensions
5000-5999 (mapped by extension _5XXX) will get sent to receiving server
(my.receiving.server.ca) into the local context on the receiving server.

Performing the same configuration in the opposite direction will allow
cross-calls between Asterisk systems.

-- 
David Cook
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to