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:[EMAIL PROTECTED]
register => testbrasil:[EMAIL PROTECTED]
If you want to call them:
IAX2/[EMAIL PROTECTED]/EXTENSION
IAX2/[EMAIL PROTECTED]/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
[EMAIL PROTECTED]
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users