Davis Sylvester III
2007-May-08 07:54 UTC
[asterisk-users] Outbound call through a Single Asterisk Server
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.
Matthew Harrell
2007-May-10 07:52 UTC
[asterisk-users] Re: Outbound call through a Single Asterisk Server
I've got essentially the same thing working fine using IAX2 over openvpn instead of SIP. I'm not the best at debugging asterisk problems but if the SIP connection is working fine otherwise then I would suspect the connection is getting there and having problems because it's ending up in a context that doesn't know what to do with it.> 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. > > _______________________________________________ > --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-- Matthew Harrell A person who smiles in the face of Bit Twiddlers, Inc. adversity probably has a scapegoat. mharrell@bittwiddlers.com