[asterisk-users] sip.conf for talking to other Asterisk machines
Bill Gibbs
bgibbs at edurotech.com
Mon Sep 18 14:33:48 MST 2006
Just curious how most of you are defining SIP peers in sip.conf - for
Asterisk boxes talking to each other. Are most of you just making a
type=friend connection and a single context or are you separating them
out to in/out definitions and contexts?
In other words
Where voicegw1 is the Asterisk box with the TDM cards for talking to the
PSTN, it will receive calls from the PSTN and forward to the appropriate
Asterisk box as well as receive calls from the other Asterisk boxes to
forward out to the PSTN.
Do you on the Asterisk box that contains all the SIP phones define (ie
the client to the PSTN Asterisk box and voicegw1 is the one with the
PSTN connection)
[voicegw1-in]
type=user
username=virtualpbx1-in
secret=1234
host=192.168.1.99
context=voicegw1-in
canreinvite=no
nat=no
qualify=yes
allow=all
[voicegw1-out]
type=peer
username=virtualpbx1-out
secret=1234
host=192.168.1.99
context=voicegw1-out
canreinvite=no
nat=no
qualify=yes
allow=all
or
[voicegw1]
Type=friend
Blah
Context=voicegw1
And use a single context for inbound/outbound routing?
The same would apply to the PSTN Asterisk server.
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060918/f471c805/attachment.htm
More information about the asterisk-users
mailing list