The FaktorTel Extensions.Conf

The following is what a plain extensions.conf file with test number "1234" should have in it. This assumes you are also using the IAX.CONF and SIP.CONF file examples for continuity.


; First we setup a context called "Default" this is our "Encapsulation" context. The only point of this
; context is to point to all our other groups in order. We only have one other outgoing context at the
; moment so we are just including one "faktortel-outgoing" however this will allow you to make a much
; more sturdy network later if you use it as a full PBX. This is also the context we use to place calls out of.

[default]
include => faktortel-outgoing


; FaktorTel-Outgoing is another context, this tells anyone who is trying to make a call out from the PBX
; which starts with a "0" to put that call out to the PSTN via FaktorTel. The format here is best
; described at "www.voip-info.org" under "configuration files" "extensions.conf".

[faktortel-outgoing]
exten => _0.,1,DIAL(IAX2/YOURUSERNAME@faktortel/${EXTEN:0})
exten => _0.,2,Congestion


; Adding an extension for the number 1234 which will give you the Time.
exten => 1234,1,SayUnixTime
exten => 1234,2,Hangup


; This is our "incoming" context, when a call comes in from the faktortel network it is sent here
; because we set "context=incoming" in our IAX.CONF file under [faktortel]. This then tells it
; that ANY call that comes in should ring the SIP based phone at extension "1000" which we setup
; earlier.

[incoming]
exten => _X.,1,DIAL(SIP/1000,60,tr)
exten => _X.,2,Hangup