[Asterisk-Users] goto() results in invalid extension
Michael Rowley
os2mac at earthlink.net
Sun Oct 31 19:35:29 MST 2004
Hello,
Trying to rewrite my dialplan, and it is a little complex. But my
extensions.conf redirection works, but the referred to contexts result
in "invalid extension" Please help... I have the extension set to 's'
currently, but originally it was 6044. The change didn't make any
difference. Still receive the invalid extension message.
Michael
------------------------
[main]
; 6044 main office line.
exten => 6044,1,GotoifTime(08:30-11:59|mon-fri|*|*?officehours,s,1)
exten => 6044,3,GotoifTime(12:00-12:59|mon-fri|*|*?lunch,s,1)
exten => 6044,2,GotoifTime(13:00-16:29|mon-fri|*|*?officehours,s,1)
exten => 6044,4,Goto(afterhours,1)
[officehours]
exten =>s,2,Dial(${RECEPTION},15,r)
exten =>s,3,Dial(${STAFF},10,r)
exten =>s,4,Answer
exten =>s,5,NoOp,${CALLERID}
exten =>s,10,ResponseTimeout(5)
exten =>s,16,Background(thankyouwmfm)
exten =>s,17,Background(911)
exten =>s,18,Background(mdorhospital)
exten =>s,19,Background(nooneavail2answer)
exten =>s,20,Background(appointmentdesk)
exten =>s,21,Background(press1)
exten =>s,22,Background(nursemessage)
exten =>s,23,Background(press2)
exten =>s,24,Goto(s,10)
include => menu
[lunch]
exten =>s,1,Answer
exten =>s,2,ResponseTimeout(5)
exten =>s,6,Background(thankyouwmfm)
exten =>s,7,Background(911)
exten =>s,8,Background(mdorhospital)
exten =>s,9,Background(closed4lunch)
exten =>s,10,Background(reopenatoneoclk)
exten =>s,11,Background(pleasecallbackatthattime)
exten =>s,12,Goto(s,2)
include => menu-after-hours
[afterhours]
exten =>s,3,Answer
exten =>s,4,NoOp,${CALLERID}
exten =>s,5,ResponseTimeout(5)
exten =>s,6,Background(thankyouwmfm)
exten =>s,7,Background(911)
exten =>s,9,Background(nowclosed)
exten =>s,8,Background(mdorhospital)
exten =>s,10,Background(patientoptions)
exten =>s,11,Background(appointmentdesk)
exten =>s,12,Background(press1)
exten =>s,13,Background(nursemessage)
exten =>s,14,Background(press2)
exten =>s,15,Background(4hoursOfop)
exten =>s,16,Background(press3)
exten =>s,17,Background(physicianoncall)
exten =>s,18,Background(press4)
exten =>s,20,Goto(s,5)
include => menu-after-hours
[on-call]
exten =>s,1,ResponseTimeout(5)
exten =>s,2,Playback(oncallmdline)
exten =>s,3,Playback(nonurgentmatters)
exten =>s,4,Playback(mdfee10)
exten =>s,5,Playback(feewaived)
exten =>s,6,Playback(voicemailphysoncall)
exten =>s,7,Background(speakoncallmd)
exten =>s,8,Background(press9)
exten =>s,9,Background(otherwise)
exten =>s,10,Background(press3)
exten =>s,11,Background(return2nurse)
exten =>s,12,Goto(s,1)
include => menu
;-----------------------------------
; Menu System.
;-----------------------------------
[menu] ; menu used when people are supposed to be here.
exten =>1,1,Macro(sipexten,100,10)
exten =>1,2,Voicemail(u100)
exten =>1,3,Hangup
exten =>2,1,Macro(sipexten,110,10)
exten =>2,2,Voicemail(u110)
exten =>2,3,Hangup
exten =>3,1,Playback(hoursofop)
exten =>3,2,Goto(main,s,1)
exten =>4,1,Goto(on-call,s,1)
exten =>9,1,Playback(pbx-transfer)
exten =>9,2,Dial(${ONCALL})
exten =>9,3,Hangup
include => invalid
[menu-after-hours] ; when the office is likely empty.
;exten =>1,1,Macro(sipexten,100,10)
exten =>1,2,Voicemail(u100)
exten =>1,3,Hangup
;exten =>2,1,Macro(sipexten,110,10)
exten =>2,2,Voicemail(u110)
exten =>2,3,Hangup
exten =>3,1,Playback(hoursofop)
exten =>3,2,Goto(main,1)
exten =>4,1,Goto(on-call,s,1)
exten =>9,1,Playback(pbx-transfer)
exten =>9,2,Dial(${ONCALL})
exten =>9,3,Hangup
include => invalid
More information about the asterisk-users
mailing list