Simply generate or record a 5-second sample of ringing. Then use
Background() to play that ringing file - if someone presses 9, they will be
routed accordingly, or otherwise sent to your default extension.

Wes Baehr
Ability Business Computing, Ltd.
Office: 330.882.0455 x25     Cell: 330.882.0455 x35
[EMAIL PROTECTED]
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of hugolivude
Sent: Friday, May 05, 2006 7:29 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Silent Attendant

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/[EMAIL PROTECTED])
;

exten => ${EXT_CONFERENCEROOM},1,GoTo(conference-call-menu,s,1)

;

; If they take too long, send to general delivery

exten => t,1,Dial(Local/[EMAIL PROTECTED])
;

; "That's not valid, try again"

exten => i,1,Playback(invalid)

exten => i,2,Goto(Attendant-mainmenu,s,1)

;

exten => h,1,Hangup
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.4/332 - Release Date: 5/4/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.4/332 - Release Date: 5/4/2006
 

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to