Extension labels - extensions.conf


#1

Hey guys,

The asterisk manual refers us to using extensions like s, i, and t. Im currently using asterisk 1.2.1 however, these extension do not appear to work. The extension s will work if I do the following:-

exten => _X.,1,Goto(s,1)
exten => s,1,Answer()

The invalid extension exten => i,1,Playback(pbx-invalid) is ignored. Also Im unable to use include => context. What is strange is that the t extension does work. Is there any modules or anything that need to be loaded to use these?

Note, no errors reported in /var/log/asterisk/messages when using extensions s,i or the include => context

see below for the extensions.conf

[internal]
include => parkedcalls

exten => _X.,1,Goto(s,1)
exten => s,1,Answer()
exten => s,2,Background(welcome)
exten => s,3,Background(enter-ext-of-person)

exten => _1XX,1,Playback(pls-hold-while-try)
exten => _1XX,2,Dial(SIP/${EXTEN},15,Tt)
exten => _1XX,3,Playback(vm-nobodyavail)
exten => _1XX,4,GotoIf($[${EXTEN} = 102]?108:)
exten => _1XX,5,GotoIf($[${EXTEN} = 104]?108:)
exten => _1XX,6,Voicemail(${EXTEN})
exten => _1XX,7,Playback(goodbye)
exten => _1XX,8,Hangup()
exten => _1XX,103,Playback(vm-nobodyavail)
exten => _1XX,104,Voicemail(${EXTEN})
exten => _1XX,105,Playback(vm-goodbye)
exten => _1XX,106,Hangup()
exten => _1XX,108,Voicemail(101)
exten => _1XX,109,Playback(goodbye)
exten => _1XX,110,Hangup()

#include “/etc/asterisk/exteveryone.conf”

exten => _*9X.,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:2})
exten => _*9X.,2,Hangup()

exten => _*X.,1,Dial(SIP/102/${EXTEN:1})
exten => _*X.,2,Hangup()

exten => _2XX,1,Answer
exten => _2XX,2,Wait(1)
exten => _2XX,3,ParkAndAnnounce(pbx-transfer:PARKED|7200|SIP/101|default,101,1)
exten => _2XX,4,Hangup()

exten => _7XX,1,ParkedCall(${EXTEN})
exten => _7XX,2,Hangup()

exten => i,1,Playback(pbx-invalid)
exten => i,2,Goto(s,3)
exten => t,1,Playback(goodbye)
exten => t,2,Hangup()

Thanks for any help guys.


#2

I have the same kinds of problems. Also background doesn’t work, I cannot enter extension during playback.