User guide

exten => s,1,Dial(Zap/2) ; Calls from the Training Centre ring
; the Telecentre Phone
9.2.2 Training Centre
The iax.conf configuration file in the Training Centre looks like this:
[general]
bindaddr = 0.0.0.0
tos = lowdelay
disallow = all
allow = ulaw
allow = g729 ; We add the G.729 codec
; If you do not have a licence use Speex
register => server1:server1pass@rural.telecentres.org
; server1 is the user for registration
[server2]
type=friend
user=server2
secret=server2pass
host=dynamic ; The IP address is learnt when the user registers
context=incoming_telecentres_calls
auth=md5 ; Add security to the authentication
disallow=all
allow=g729
trunk=yes
Then we add a new context to extensions.conf so that when a call starts with 88, it is forwarded to the
Telecentre (peer [server2]) in iax.conf.
[outgoing_telecentres_calls]
exten => _88.,1,Dial(IAX2/server1:server1pass@server2/${EXTEN:2})
exten => _88.,2, Congestion
Page 43 TRICALCAR | www.wilac.net/tricalcar – Version: February 2008