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
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
wbaehr@abilitybusiness.com
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] 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/${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
_______________________________________________
--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
I changed my mind. This worked for me, using AEL:
Context test {
825 => {
Set(TIMEOUT(response)=5);
Answer();
Ringing();
WaitExten(5);
Goto(menu-main|s|1);
};
};
Or in regular format:
exten => 825,1,Noop
exten => 825,n,Set(TIMEOUT(response)=5)
exten => 825,n,Answer();
exten => 825,n,Ringing();
exten => 825,n,WaitExten(5);
exten => 825,n,Dowhatever
Wes Baehr
Ability Business Computing, Ltd.
Office: 330.882.0455 x25 Cell: 330.882.0455 x35
wbaehr@abilitybusiness.com
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] 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/${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
_______________________________________________
--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
Wes Baehr wrote:> 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.Or use the Ringing app, along with the WaitExten app. -- Now accepting new clients in Birmingham, Atlanta, Huntsville, Chattanooga, and Montgomery.
Wes Baehr wrote:> 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.Or use the Ringing app, along with the WaitExten app. Or you could use the "d" option to Dial. "show application appname" to see detailed help about each command at the CLI. -- Now accepting new clients in Birmingham, Atlanta, Huntsville, Chattanooga, and Montgomery.
great stuff guys, thanks a lot!! H On 5/6/06, Eric ManxPower Wieling <eric@fnords.org> wrote:> Wes Baehr wrote: > > 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. > > Or use the Ringing app, along with the WaitExten app. Or you could use > the "d" option to Dial. "show application appname" to see detailed help > about each command at the CLI. > > -- > Now accepting new clients in Birmingham, Atlanta, Huntsville, > Chattanooga, and Montgomery. > _______________________________________________ > --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 >