[Asterisk-Users] Silent Attendant
hugolivude
hugolivude at gmail.com
Fri May 5 16:29:15 MST 2006
I'd like to set up a "silent attendant". By this I mean when someone
calls me I'd like for them to hear the comfort ringing tones, but for
the first 5 seconds I'd like to give them the option of pressing 9 to
send the call to an alternate extension; if they don't press 9, the
call goes to a default extension.
For most callers I just want standard PSTN behaviour, only a select
few will be told about the silent 9 option
I'm stuck tho because it seems I need the Background command for this
to work, but this stops the comfort tones. Any ideas?
Here's my attendant script, as you can see I currently have Background
commented out so the silent option is non functional.
Thanks,
H
exten => s,1,NoOp(${CONTEXT})
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Set(TIMEOUT(response)=5)
;Menu prompt disabled for now. Just let ringing continue for caller
and have it pass thru
;to General Delivery after timeout.
;exten => s,n,Background(AttendantMainMenu)
;exten => s,n,Background(silence/5)
;
exten => 9,1,Dial(Local/${EXT_JAMES}@Extensions-PBX)
;
exten => ${EXT_CONFERENCEROOM},1,GoTo(conference-call-menu,s,1)
;
; If they take too long, send to general delivery
exten => t,1,Dial(Local/${EXT_GENERAL_MAILBOX}@Extensions-PBX)
;
; "That's not valid, try again"
exten => i,1,Playback(invalid)
exten => i,2,Goto(Attendant-mainmenu,s,1)
;
exten => h,1,Hangup
More information about the asterisk-users
mailing list