This service has been unstable lately.
This is a very generic setup used to dial out from IAXTel and to ring a Asterisk SIP channels on incoming calls. The code is made entirely of excerpts of the configuration files, and need the remaining portions of the files to be useful.
Please keep each example in its own separate box in order to keep each example separate.
iax.conf
Under the general context:
register => username:password@iaxtel.com
[Iaxtel]
type=friend
host=iaxtel.com
secret=password
auth=rsa
context=from-iaxtel
inkeys=iaxtel
extensions.conf For incoming calls
[from-iaxtel]
exten => s,1,Wait(2)
exten => s,2,Answer
exten => _.,3,Dial(SIP/2001,60,tr)
exten => _.,4,Hangup
extensions.conf For outgoing calls:
[iaxtel-trunks]
; Outbound 1-700 and Toll-free calls go via Iaxtel.
; Be sure to include the iaxtel-trunks context in your dialing context
exten => _17XXNXXXXXX,1,Dial(IAX2/jjhall@iaxtel/${EXTEN}@iaxtel)
exten => _1888NXXXXXX,1,Dial(IAX2/jjhall@iaxtel/${EXTEN}@iaxtel)
exten => _1877NXXXXXX,1,Dial(IAX2/jjhall@iaxtel/${EXTEN}@iaxtel)
exten => _1866NXXXXXX,1,Dial(IAX2/jjhall@iaxtel/${EXTEN}@iaxtel)
exten => _1800NXXXXXX,1,Dial(IAX2/jjhall@iaxtel/${EXTEN}@iaxtel)
- Asterisk | FAQ | Tips & Tricks