User guide
tos = lowdelay
disallow = all
allow = ulaw
allow = g729 ; We add the G.729 codec
register => server2:server2pass@training_voip.org
; server2:server2pass is the user
; and password used for registration
; This is the user account for the other server to register with us
[server1]
type=friend
user=server1
secret=server1pass
host=dynamic ; The IP address is learnt when the
; user registers
context=incoming_training_centre_calls
auth=md5 ; Add security to the authentication
disallow=all
allow=g729
trunk=yes ; We enable trunking
To reach the Training Centre via the Internet we add a new context to the extensions.conf. When a call
starts with 99, it is forwarded to server1 that is in the country of the Training Centre via the Internet.
[outgoing_training_centre_calls]
exten => _99.,1,Dial(IAX2/server2:server2pass@server1/${EXTEN:2})
exten => _99.,2,Congestion ; By failure, a Congestion sound is returned
Next we need to decide what do with the calls coming from the Training Centre.
[incoming_training_centre_calls]
Page 42 TRICALCAR | www.wilac.net/tricalcar – Version: February 2008