[asterisk-users] Outbound call through a Single Asterisk Server

Davis Sylvester III davis at 5-9Networks.com
Tue May 8 08:21:40 MST 2007


I have two asterisk servers.  One is at location 1 and the other is at 
location 2. 
What I am trying to do seems straightforward.  I want the Asterisk 
server at location 2 to
send all it outbound calls to the Asterisk Server at location 1.

Both asterisk servers can dial each other using extensions without a 
problem, but when
users on Asterisk server 2, dial 9XXX-XXX-XXXX the call never reaches 
the zap channel
on Asterisk server 1.

I have a workaround working right now using switch => but I think there 
should be a better
way to do this.

Asterisk Server 2 -- extensions.conf
[outbound]
exten => _9XXXXXXXXXXX,1,       Dial(SIP/outbound-server/${EXTEN:1},30,r)
exten => _9XXXXXXXXXXX,2,       HangUp()

Asterisk Server 2 -- sip.conf
[outbound-server]
        type=friend
        username=outbound-server
        secret=********
        context = all-calls
        host=1.1.1.1
        nat=no
        canreinvite=no
        insecure=very
        qualify=yes
        disallow=all
        allow=ulaw
        allow=alaw
        allow=gsm

any help is accepted and appreciated.



More information about the asterisk-users mailing list