[Asterisk-Users] IAX connection refused between 2 asterisks 1.2.5

Joshua Colp jcolp at digium.com
Tue Apr 4 12:11:15 MST 2006


Just because it's easier I'll do my rant up here. Don't over complicate 
things when you're doing setups like this. And please use separate user 
and peer entries instead of a friend, it makes things easier. So here we go:


[frombrasil]
type=peer
host=dynamic
secret=55118080
disallow=all
allow=gsm
allow=g729
trunk=yes
notransfer=yes

[testbrasil]
type=peer
host=dynamic
secret=212121
disallow=all
allow=gsm
trunk=yes
notransfer=yes

Here we go - two peer entries which another box can then register to using:

register => frombrasil:55118080 at address-for-your-asterisk
register => testbrasil:212121 at address-for-your-asterisk

If you want to call them:

IAX2/laranja at frombrasil/EXTENSION
IAX2/batata at testbrasil/EXTENSION

And now some simple user entries:

[laranja]
type=user
secret=55118080
context=wherever you want
disallow=all
allow=gsm
allow=g729
trunk=yes
notransfer=yes

[batata]
type=user
secret=212121
context=wherever you want
disallow=all
allow=gsm
trunk=yes
notransfer=yes

Marco Mouta wrote:
> [general]
> bindport = 4569           ; Port to bind to (IAX is 4569)
> bindaddr = 0.0.0.0    ; Address to bind to (all addresses on machine)
> disallow=all
> allow=gsm
> allow=alaw
> allow=ulaw
> 
> mailboxdetail=yes
> 
> 
> 
> 
> 
> [frombrasil]
> type=friend
> disallow=all
> allow=gsm
> allow=g729
> username=laranja
> permit=0.0.0.0/0.0.0.0
> context=from-brasil
> secret=55118080
> trunk=yes
> host=dynamic
> notransfer=yes
> 
> [testbrasil]
> type=friend
> disallow=all
> allow=gsm
> username=batata
> permit=0.0.0.0/0.0.0.0
> context=from-brasil
> secret=212121
> trunk=yes
> host=dynamic
> notransfer=yes
> 
> 

-- 
Joshua Colp
Software Developer
Digium
P - 256-428-6066
C - 506-878-0147
jcolp at digium.com



More information about the asterisk-users mailing list