Paul Mahler
2004-Jan-21 18:26 UTC
[Asterisk-Users] need help configuring IAX to make outbound calls through a remote server
I am trying to make outbound calls from my Asterisk client through a remote Asterisk server with IAX. In iax.conf on both sides [dar] context=trusted secret=xxxxxx type=friend host=192.168.1.1 in extensions.conf at the client making the call Exten=_1NXXNXXXXXX,1,Dial(IAX2/dar:xxxxxx@192.168.1.1/) What goes in extensions.conf at the remote server? What is needed for the remote server to accept the call from my client, figure out the dialed number and then dial it outbound on some line? Thanks! Paul Paul Mahler mail:pmahler@signate.com phone: 650.207.9855 fax: 877.408.0105 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040121/3664f0e5/attachment.htm
C. Maj
2004-Jan-22 09:21 UTC
[Asterisk-Users] need help configuring IAX to make outbound calls through a remote server
On Wed, 21 Jan 2004, Paul Mahler waxed:> I am trying to make outbound calls from my Asterisk client through a remote > Asterisk server with IAX. > > In iax.conf on both sides > > [dar] > context=trusted > secret=xxxxxx > type=friend > host=192.168.1.1I'm not going to try and fix all of this, but if you've got the same hostname on both hosts, one of them doesn't know about the other. You need to set the host differently on each of the hosts. Ie, on 192.168.1.1, you need to set "host=192.168.1.2" and on 192.168.1.2, you need to set "host=192.168.1.1".> in extensions.conf at the client making the call > > Exten=_1NXXNXXXXXX,1,Dial(IAX2/dar:xxxxxx@192.168.1.1/) > > What goes in extensions.conf at the remote server? What is needed for the > remote server to accept the call from my client, figure out the dialed > number and then dial it outbound on some line?You'll need to have a "trusted" context in each, for starters. But there's a lot more dialplan work you'll need to do, depending on where your outbound lines are, what numbers they can dial without incurring toll charges, etc. --Chris -- Chris Maj <cmaj_hat_freedomcorpse_hot_info> Pronunciation Guide: Maj == May Fingerprint: 43D6 799C F6CF F920 6623 DC85 C8A3 CFFE F0DE C146