Re: [Asterisk-Users] Delay after entering digits with IVR

2005-02-25 Thread Richard J. Sears
You were correct Steven - I was picking up the extensions from an
include after a jump !!

Lesson Learned - thanks everyone.


On Thu, 24 Feb 2005 20:18:22 -0600
Steven Critchfield [EMAIL PROTECTED] wrote:

 On Thu, 2005-02-24 at 15:49 -0800, Richard J. Sears wrote:
  I have a [start] context that all my inbound and '0' calls are routed
  into.
  
  Because of the way I want to set my system up, I want to prompt the user
  to enter a 1 if they know the extension, or a 2 for a directory and
  nothing else.
  
  It works, however there is a 5 to 10 second delay after enter the 1 or 2
  before the system responds.
  
  I have read over the wiki on how asterisk handles digit inputs, but
  cannot seem to isolate the problem. No other extension beginning with 
  (or even including) a '1' or a '2'.
  
  Is this just how the system operates, or am I missing something..?
 
 If That is the entirety of your start context, then it shouldn't be
 doing any delay between detection and beginning action. 
 
 So my question is, is it possible that the delay is actually in the next
 step such as the goto that jumps out to a different extension and
 context or in the starting of the directory app.
 
  Here is the [start] in my extensions.conf :
  
  [start]
  ; If someone dials the Operator, just start them here.
  exten = 0,1,Goto(s,1)
  
  exten = s,1,Wait,1 ; Wait a second, just for fun
  exten = s,2,Answer ; Answer the line
  exten = s,3,SetMusicOnHold,default
  exten = s,4,ResponseTimeout,5 ; Set Response Timeout
  
  ; Is is Morning, Afternoon or Evening ?
  ; Lets play a differnet greeting for each time period.
  exten = s,5,AGI(openclose.agi)
  exten = s,6,GotoIF($[${STATUS} = morning]?10)
  exten = s,7,GotoIF($[${STATUS} = afternoon]?12)
  exten = s,8,GotoIF($[${STATUS} = evening]?14)
  extex = s,9,Goto(s,6)
  
  ; The various Greetings based on Time of Day
  exten = s,10,Background(rjs-morning-welcome)
  exten = s,11,Goto(s,15)
  exten = s,12,Background(rjs-afternoon-welcome)
  exten = s,13,Goto(s,15)
  exten = s,14,Background(rjs-evening-welcome)
  
  ; The Voice Menu
  exten = s,15,Background(rjs-if-you-know-the-extension)
  exten = s,16,Wait,1
  exten = s,17,BackGround(to-dial-by-name-press)  ; Play some instructions
  exten = s,18,BackGround(digits/2)  ; Play some instructions
  
  ; A timeout and invalid extension rule
  ;
  exten = t,1,Goto(s,15)  ; If they take too long, give up
  exten = i,1,Playback(invalid)  ; That's not valid, try again
  
  ; If they know the extension, send them on.
  exten = 1,1,Goto(extension_is_known,s,1)
  
  ; Allow users the ability to get Directory listing (user must be in 
  voicemail.conf)
  exten = 2,1,Directory,default|internal_extensions
  
 
 -- 
 Steven Critchfield [EMAIL PROTECTED]
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


**
Richard J. Sears
Vice President 
American Internet Services  

[EMAIL PROTECTED]
http://www.adnc.com

858.576.4272 - Phone
858.427.2401 - Fax
INOC-DBA - 6130


I fly because it releases my mind 
from the tyranny of petty things . . 


Work like you don't need the money, love like you've
never been hurt and dance like you do when nobody's
watching.

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


[Asterisk-Users] Delay after entering digits with IVR

2005-02-24 Thread Richard J. Sears
I have a [start] context that all my inbound and '0' calls are routed
into.

Because of the way I want to set my system up, I want to prompt the user
to enter a 1 if they know the extension, or a 2 for a directory and
nothing else.

It works, however there is a 5 to 10 second delay after enter the 1 or 2
before the system responds.

I have read over the wiki on how asterisk handles digit inputs, but
cannot seem to isolate the problem. No other extension beginning with 
(or even including) a '1' or a '2'.

Is this just how the system operates, or am I missing something..?

Thanks !!



Here is the [start] in my extensions.conf :

[start]
; If someone dials the Operator, just start them here.
exten = 0,1,Goto(s,1)

exten = s,1,Wait,1 ; Wait a second, just for fun
exten = s,2,Answer ; Answer the line
exten = s,3,SetMusicOnHold,default
exten = s,4,ResponseTimeout,5 ; Set Response Timeout

; Is is Morning, Afternoon or Evening ?
; Lets play a differnet greeting for each time period.
exten = s,5,AGI(openclose.agi)
exten = s,6,GotoIF($[${STATUS} = morning]?10)
exten = s,7,GotoIF($[${STATUS} = afternoon]?12)
exten = s,8,GotoIF($[${STATUS} = evening]?14)
extex = s,9,Goto(s,6)

; The various Greetings based on Time of Day
exten = s,10,Background(rjs-morning-welcome)
exten = s,11,Goto(s,15)
exten = s,12,Background(rjs-afternoon-welcome)
exten = s,13,Goto(s,15)
exten = s,14,Background(rjs-evening-welcome)

; The Voice Menu
exten = s,15,Background(rjs-if-you-know-the-extension)
exten = s,16,Wait,1
exten = s,17,BackGround(to-dial-by-name-press)  ; Play some instructions
exten = s,18,BackGround(digits/2)  ; Play some instructions

; A timeout and invalid extension rule
;
exten = t,1,Goto(s,15)  ; If they take too long, give up
exten = i,1,Playback(invalid)  ; That's not valid, try again

; If they know the extension, send them on.
exten = 1,1,Goto(extension_is_known,s,1)

; Allow users the ability to get Directory listing (user must be in 
voicemail.conf)
exten = 2,1,Directory,default|internal_extensions





here is the output of my show dialplan start:

pbx01*CLI show dialplan start
[ Context 'start' created by 'pbx_config' ]
  '0' =1. Goto(s|1)  [pbx_config]
  '1' =1. Goto(extension_is_known|s|1)   [pbx_config]
  '2' =1. Directory(default|internal_extensions) [pbx_config]
  'i' =1. Playback(invalid)  [pbx_config]
  's' =1. Wait(1)[pbx_config]
2. Answer()   [pbx_config]
3. SetMusicOnHold(default)[pbx_config]
4. ResponseTimeout(5) [pbx_config]
5. AGI(openclose.agi) [pbx_config]
6. GotoIF($[${STATUS} = morning]?10)  [pbx_config]
7. GotoIF($[${STATUS} = afternoon]?12)[pbx_config]
8. GotoIF($[${STATUS} = evening]?14)  [pbx_config]
10. Background(rjs-morning-welcome)   [pbx_config]
11. Goto(s|15)[pbx_config]
12. Background(rjs-afternoon-welcome) [pbx_config]
13. Goto(s|15)[pbx_config]
14. Background(rjs-evening-welcome)   [pbx_config]
15. Background(rjs-if-you-know-the-extension) [pbx_config]
16. Wait(1)   [pbx_config]
17. BackGround(to-dial-by-name-press) [pbx_config]
18. BackGround(digits/2)  [pbx_config]
  't' =1. Goto(s|15) [pbx_config]





**
Richard J. Sears
Vice President 
American Internet Services  

[EMAIL PROTECTED]
http://www.adnc.com

858.576.4272 - Phone
858.427.2401 - Fax
INOC-DBA - 6130


I fly because it releases my mind 
from the tyranny of petty things . . 


Work like you don't need the money, love like you've
never been hurt and dance like you do when nobody's
watching.

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


RE: [Asterisk-Users] Delay after entering digits with IVR

2005-02-24 Thread Race Vanderdecken
Hmmm,

Are you trying to collect digits during a playback that is not set to
listen for a digit?

From the coding side I know that depending on how the prompt is called
you can enter a digit and interrupt the prompt. Otherwise the prompt
will finish and then see the digits.

What you want is BackgroundDetect(filename[|sil[|min|max]]) 

http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+BackGroundDete
ct

This will see the digits, and stop if it is one you have set.

Race The Tyrant Vandedecken


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Richard J.
Sears
Sent: Thursday, February 24, 2005 6:49 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Delay after entering digits with IVR

I have a [start] context that all my inbound and '0' calls are routed
into.

Because of the way I want to set my system up, I want to prompt the user
to enter a 1 if they know the extension, or a 2 for a directory and
nothing else.

It works, however there is a 5 to 10 second delay after enter the 1 or 2
before the system responds.

I have read over the wiki on how asterisk handles digit inputs, but
cannot seem to isolate the problem. No other extension beginning with 
(or even including) a '1' or a '2'.

Is this just how the system operates, or am I missing something..?

Thanks !!



Here is the [start] in my extensions.conf :

[start]
; If someone dials the Operator, just start them here.
exten = 0,1,Goto(s,1)

exten = s,1,Wait,1 ; Wait a second, just for fun
exten = s,2,Answer ; Answer the line
exten = s,3,SetMusicOnHold,default
exten = s,4,ResponseTimeout,5 ; Set Response Timeout

; Is is Morning, Afternoon or Evening ?
; Lets play a differnet greeting for each time period.
exten = s,5,AGI(openclose.agi)
exten = s,6,GotoIF($[${STATUS} = morning]?10)
exten = s,7,GotoIF($[${STATUS} = afternoon]?12)
exten = s,8,GotoIF($[${STATUS} = evening]?14)
extex = s,9,Goto(s,6)

; The various Greetings based on Time of Day
exten = s,10,Background(rjs-morning-welcome)
exten = s,11,Goto(s,15)
exten = s,12,Background(rjs-afternoon-welcome)
exten = s,13,Goto(s,15)
exten = s,14,Background(rjs-evening-welcome)

; The Voice Menu
exten = s,15,Background(rjs-if-you-know-the-extension)
exten = s,16,Wait,1
exten = s,17,BackGround(to-dial-by-name-press)  ; Play some
instructions
exten = s,18,BackGround(digits/2)  ; Play some instructions

; A timeout and invalid extension rule
;
exten = t,1,Goto(s,15)  ; If they take too long, give
up
exten = i,1,Playback(invalid)  ; That's not valid, try again

; If they know the extension, send them on.
exten = 1,1,Goto(extension_is_known,s,1)

; Allow users the ability to get Directory listing (user must be in
voicemail.conf)
exten = 2,1,Directory,default|internal_extensions





here is the output of my show dialplan start:

pbx01*CLI show dialplan start
[ Context 'start' created by 'pbx_config' ]
  '0' =1. Goto(s|1)
[pbx_config]
  '1' =1. Goto(extension_is_known|s|1)
[pbx_config]
  '2' =1. Directory(default|internal_extensions)
[pbx_config]
  'i' =1. Playback(invalid)
[pbx_config]
  's' =1. Wait(1)
[pbx_config]
2. Answer()
[pbx_config]
3. SetMusicOnHold(default)
[pbx_config]
4. ResponseTimeout(5)
[pbx_config]
5. AGI(openclose.agi)
[pbx_config]
6. GotoIF($[${STATUS} = morning]?10)
[pbx_config]
7. GotoIF($[${STATUS} = afternoon]?12)
[pbx_config]
8. GotoIF($[${STATUS} = evening]?14)
[pbx_config]
10. Background(rjs-morning-welcome)
[pbx_config]
11. Goto(s|15)
[pbx_config]
12. Background(rjs-afternoon-welcome)
[pbx_config]
13. Goto(s|15)
[pbx_config]
14. Background(rjs-evening-welcome)
[pbx_config]
15. Background(rjs-if-you-know-the-extension)
[pbx_config]
16. Wait(1)
[pbx_config]
17. BackGround(to-dial-by-name-press)
[pbx_config]
18. BackGround(digits/2)
[pbx_config]
  't' =1. Goto(s|15)
[pbx_config]





**
Richard J. Sears
Vice President 
American Internet Services  

[EMAIL PROTECTED]
http://www.adnc.com

858.576.4272 - Phone
858.427.2401 - Fax
INOC-DBA - 6130


I fly because it releases my mind 
from the tyranny of petty things . . 


Work like you don't need the money, love like you've
never been hurt and dance like you do when nobody's
watching.

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http

Re: [Asterisk-Users] Delay after entering digits with IVR

2005-02-24 Thread Richard J. Sears
Yes, I am trying to collect digits during the playback of a file. I have
tried both background and backgrounddetect with the same result.

Basically I have a menu - Press 1 if you know your parties extension,
press 2 for a directory.

In either case (background or backgrounddetect) when I hit 1 or 2 there
is a 5 to 8 second delay AFTER I hit the button before it goes to the
menu.


On Thu, 24 Feb 2005 19:39:35 -0500
Race Vanderdecken [EMAIL PROTECTED] wrote:

 Hmmm,
 
 Are you trying to collect digits during a playback that is not set to
 listen for a digit?
 
 From the coding side I know that depending on how the prompt is called
 you can enter a digit and interrupt the prompt. Otherwise the prompt
 will finish and then see the digits.
 
 What you want is BackgroundDetect(filename[|sil[|min|max]]) 
 
 http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+BackGroundDete
 ct
 
 This will see the digits, and stop if it is one you have set.
 
 Race The Tyrant Vandedecken
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Richard J.
 Sears
 Sent: Thursday, February 24, 2005 6:49 PM
 To: asterisk-users@lists.digium.com
 Subject: [Asterisk-Users] Delay after entering digits with IVR
 
 I have a [start] context that all my inbound and '0' calls are routed
 into.
 
 Because of the way I want to set my system up, I want to prompt the user
 to enter a 1 if they know the extension, or a 2 for a directory and
 nothing else.
 
 It works, however there is a 5 to 10 second delay after enter the 1 or 2
 before the system responds.
 
 I have read over the wiki on how asterisk handles digit inputs, but
 cannot seem to isolate the problem. No other extension beginning with 
 (or even including) a '1' or a '2'.
 
 Is this just how the system operates, or am I missing something..?
 
 Thanks !!
 
 
 
 Here is the [start] in my extensions.conf :
 
 [start]
 ; If someone dials the Operator, just start them here.
 exten = 0,1,Goto(s,1)
 
 exten = s,1,Wait,1 ; Wait a second, just for fun
 exten = s,2,Answer ; Answer the line
 exten = s,3,SetMusicOnHold,default
 exten = s,4,ResponseTimeout,5 ; Set Response Timeout
 
 ; Is is Morning, Afternoon or Evening ?
 ; Lets play a differnet greeting for each time period.
 exten = s,5,AGI(openclose.agi)
 exten = s,6,GotoIF($[${STATUS} = morning]?10)
 exten = s,7,GotoIF($[${STATUS} = afternoon]?12)
 exten = s,8,GotoIF($[${STATUS} = evening]?14)
 extex = s,9,Goto(s,6)
 
 ; The various Greetings based on Time of Day
 exten = s,10,Background(rjs-morning-welcome)
 exten = s,11,Goto(s,15)
 exten = s,12,Background(rjs-afternoon-welcome)
 exten = s,13,Goto(s,15)
 exten = s,14,Background(rjs-evening-welcome)
 
 ; The Voice Menu
 exten = s,15,Background(rjs-if-you-know-the-extension)
 exten = s,16,Wait,1
 exten = s,17,BackGround(to-dial-by-name-press)  ; Play some
 instructions
 exten = s,18,BackGround(digits/2)  ; Play some instructions
 
 ; A timeout and invalid extension rule
 ;
 exten = t,1,Goto(s,15)  ; If they take too long, give
 up
 exten = i,1,Playback(invalid)  ; That's not valid, try again
 
 ; If they know the extension, send them on.
 exten = 1,1,Goto(extension_is_known,s,1)
 
 ; Allow users the ability to get Directory listing (user must be in
 voicemail.conf)
 exten = 2,1,Directory,default|internal_extensions
 
 
 
 
 
 here is the output of my show dialplan start:
 
 pbx01*CLI show dialplan start
 [ Context 'start' created by 'pbx_config' ]
   '0' =1. Goto(s|1)
 [pbx_config]
   '1' =1. Goto(extension_is_known|s|1)
 [pbx_config]
   '2' =1. Directory(default|internal_extensions)
 [pbx_config]
   'i' =1. Playback(invalid)
 [pbx_config]
   's' =1. Wait(1)
 [pbx_config]
 2. Answer()
 [pbx_config]
 3. SetMusicOnHold(default)
 [pbx_config]
 4. ResponseTimeout(5)
 [pbx_config]
 5. AGI(openclose.agi)
 [pbx_config]
 6. GotoIF($[${STATUS} = morning]?10)
 [pbx_config]
 7. GotoIF($[${STATUS} = afternoon]?12)
 [pbx_config]
 8. GotoIF($[${STATUS} = evening]?14)
 [pbx_config]
 10. Background(rjs-morning-welcome)
 [pbx_config]
 11. Goto(s|15)
 [pbx_config]
 12. Background(rjs-afternoon-welcome)
 [pbx_config]
 13. Goto(s|15)
 [pbx_config]
 14. Background(rjs-evening-welcome)
 [pbx_config]
 15. Background(rjs-if-you-know-the-extension)
 [pbx_config]
 16. Wait(1)
 [pbx_config]
 17. BackGround(to-dial-by-name-press)
 [pbx_config]
 18. BackGround(digits/2)
 [pbx_config]
   't' =1. Goto(s|15)
 [pbx_config]
 
 
 
 
 
 **
 Richard J. Sears
 Vice President

Re: [Asterisk-Users] Delay after entering digits with IVR

2005-02-24 Thread Steven Critchfield
On Thu, 2005-02-24 at 15:49 -0800, Richard J. Sears wrote:
 I have a [start] context that all my inbound and '0' calls are routed
 into.
 
 Because of the way I want to set my system up, I want to prompt the user
 to enter a 1 if they know the extension, or a 2 for a directory and
 nothing else.
 
 It works, however there is a 5 to 10 second delay after enter the 1 or 2
 before the system responds.
 
 I have read over the wiki on how asterisk handles digit inputs, but
 cannot seem to isolate the problem. No other extension beginning with 
 (or even including) a '1' or a '2'.
 
 Is this just how the system operates, or am I missing something..?

If That is the entirety of your start context, then it shouldn't be
doing any delay between detection and beginning action. 

So my question is, is it possible that the delay is actually in the next
step such as the goto that jumps out to a different extension and
context or in the starting of the directory app.

 Here is the [start] in my extensions.conf :
 
 [start]
 ; If someone dials the Operator, just start them here.
 exten = 0,1,Goto(s,1)
 
 exten = s,1,Wait,1 ; Wait a second, just for fun
 exten = s,2,Answer ; Answer the line
 exten = s,3,SetMusicOnHold,default
 exten = s,4,ResponseTimeout,5 ; Set Response Timeout
 
 ; Is is Morning, Afternoon or Evening ?
 ; Lets play a differnet greeting for each time period.
 exten = s,5,AGI(openclose.agi)
 exten = s,6,GotoIF($[${STATUS} = morning]?10)
 exten = s,7,GotoIF($[${STATUS} = afternoon]?12)
 exten = s,8,GotoIF($[${STATUS} = evening]?14)
 extex = s,9,Goto(s,6)
 
 ; The various Greetings based on Time of Day
 exten = s,10,Background(rjs-morning-welcome)
 exten = s,11,Goto(s,15)
 exten = s,12,Background(rjs-afternoon-welcome)
 exten = s,13,Goto(s,15)
 exten = s,14,Background(rjs-evening-welcome)
 
 ; The Voice Menu
 exten = s,15,Background(rjs-if-you-know-the-extension)
 exten = s,16,Wait,1
 exten = s,17,BackGround(to-dial-by-name-press)  ; Play some instructions
 exten = s,18,BackGround(digits/2)  ; Play some instructions
 
 ; A timeout and invalid extension rule
 ;
 exten = t,1,Goto(s,15)  ; If they take too long, give up
 exten = i,1,Playback(invalid)  ; That's not valid, try again
 
 ; If they know the extension, send them on.
 exten = 1,1,Goto(extension_is_known,s,1)
 
 ; Allow users the ability to get Directory listing (user must be in 
 voicemail.conf)
 exten = 2,1,Directory,default|internal_extensions
 

-- 
Steven Critchfield [EMAIL PROTECTED]

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


Re: [Asterisk-Users] Delay after entering digits with IVR

2005-02-24 Thread Time Bandit
 In either case (background or backgrounddetect) when I hit 1 or 2 there
 is a 5 to 8 second delay AFTER I hit the button before it goes to the
 menu.
I think setting the digit timeout would help.
DigitTimeout(seconds)  : Set maximum timeout between digits 

exten = s,1,Wait,1 ; Wait a second, just for fun
exten = s,2,Answer ; Answer the line
exten = s,3,SetMusicOnHold,default
exten = s,4,ResponseTimeout,5 ; Set Response Timeout
exten = s,5,DigitTimeout,1 ; Set Digit Timeout to 1 sec

Adjust to taste

See http://www.voip-info.org/wiki-Asterisk+cmd+DigitTimeout

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


Re: [Asterisk-Users] Delay after entering digits with IVR

2005-02-24 Thread Kristian Kielhofner
Time Bandit wrote:
In either case (background or backgrounddetect) when I hit 1 or 2 there
is a 5 to 8 second delay AFTER I hit the button before it goes to the
menu.
I think setting the digit timeout would help.
DigitTimeout(seconds)  : Set maximum timeout between digits 

exten = s,1,Wait,1 ; Wait a second, just for fun
exten = s,2,Answer ; Answer the line
exten = s,3,SetMusicOnHold,default
exten = s,4,ResponseTimeout,5 ; Set Response Timeout
exten = s,5,DigitTimeout,1 ; Set Digit Timeout to 1 sec
Adjust to taste
See http://www.voip-info.org/wiki-Asterisk+cmd+DigitTimeout
hth
A really good way to make sure that your IVR's are snappy is to make 
sure that parts of your dialplan do not overlap.  Start the extensions 
for your phones fairly high so you can have s good range of options in IVR-

[mainaa]
exten = s,1,Wait,1
exten = s,2,Answer
extem = ..
exten = 1,1,Queue(reptiles)
exten = 2,1,Queue(rodents)
exten = 3,1,Queue(dogs)
exten = 4,1,Queue(cats)
exten = 5,1,Queue(fish)
exten = 6,1,Queue(birds)
[incoming]
include = mainaa
include = intern
[intern]
exten = 700,1,Dial(SIP/700,20)
exten = 700,2,Hangup
exten = 701,1,Dial(SIP/701,20)
exten = 701,2,Hangup
	This way, when someone hits 1-6 in your main menu * knows that those 
Q's are the only thing that could possibly match, and it happens 
instantly...  Meanwhile, it knows to wait out for the extensions, but 
the same principle applies there

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