[Asterisk-Users] Connecting two servers - dial string

Roland Zagler r.zagler at fog.at
Sun Jul 3 16:09:23 MST 2005


Hi Joseph,

here is how i did it:

iax.conf of server1:

[server2]
type=friend
auth=md5
username=server1
secret=<secret>
context=default
host=dynamic
defaultip=<public ip of server2>
deny=0.0.0.0/0.0.0.0
permit=<public ip of server2>/255.255.255.255
disallow=all
allow=g729,gsm


iax.conf of server2:

[server1]
type=friend
auth=md5
username=server2
secret=<secret>
context=default
host=dynamic
defaultip=<public ip of server1>
deny=0.0.0.0/0.0.0.0
permit=<public ip of server1>/255.255.255.255
disallow=all
allow=g729,gsm


extensions.conf of server1:

exten => _2X.,1,Dial(IAX2/server2/${EXTEN:1},30)


extensions.conf of server2:

exten => _1X.,1,Dial(IAX2/server1/${EXTEN:1},30)


use "deny" and "permit" only with later versions than 1.0.5 of asterisk
(best with CVS HEAD)

i hope this helps....

best regards,
Roland Zagler

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joseph
Sent: Monday, July 04, 2005 12:54 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Connecting two servers - dial string

Scenario:
Both boxes are behind firewall, port udp 4569 is open.

If I don't want the username and password in dialing string do I have to
use register statement in IAX.CONF. 

Can anybody post some working samples; I have a hard time making it to
work with the samples posted on wiki.

-- 
#Joseph
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at 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




More information about the asterisk-users mailing list