ommercial Discussion'
Subject: Re: [asterisk-users] Gotoif Question
I think the quotes cause the values to be compared as strings, not
numbers. The old shell programmer's trick (which allows for empty
strings):
exten => s,n,GotoIf($[0${SPEECH_SCORE(0)} <= 0${THRESHOLD}]?:tag)
C
- Mensaje original -
De: Barry Miller
Para: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Enviado: Thu Feb 04 17:45:47 2010
Asunto: Re: [asterisk-users] Gotoif Question
I think the quotes cause the values to be compared as strings, not
numbers. The old shell pr
--
Antes de imprimir este mensaje piense bien si es necesario hacerlo:
El medio ambiente es cosa de todos.
--
AVISO LEGAL
Este mensaje, dirigido solamente a su destinatario, es confidencial.
Si lo ha recibido por error, CAJA DE GUADALAJARA le informa que su
contenido es reservado y no se autoriz
I think the quotes cause the values to be compared as strings, not
numbers. The old shell programmer's trick (which allows for empty
strings):
exten => s,n,GotoIf($[0${SPEECH_SCORE(0)} <= 0${THRESHOLD}]?:tag)
ought to cause a numeric comparison.
--
Barry
On Thu, Feb 04, 2010 at 09:42:18AM -06
Hi Gang,
I'm working on a lumenvox app and am having "fun" with the
Gotoif's on speech/DTMF recognition. If you're using DTMF to enter a number
instead of speech to enter a numeric value, the engine will often return a
"confidence score" of 1000 instead of 1-999. Therefore this Goto
"888"]?s|108)
>
>
>
> Diego Aguirre
> FWD# 459696
>
> - Original Message -
> From: "John Hill" <[EMAIL PROTECTED]>
> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'"
>
> Sent: Thursday, Janua
Original Message -
From: "John Hill" <[EMAIL PROTECTED]>
To: "'Asterisk Users Mailing List - Non-Commercial Discussion'"
Sent: Thursday, January 06, 2005 11:30 AM
Subject: [Asterisk-Users] Gotoif question
Is there a way to combine these lines into on
Is there a way to combine these lines into one?
exten => s,2,GotoIf($["${CALLERIDNUM:0:3}" = "800"]?s|108)
exten => s,3,GotoIf($["${CALLERIDNUM:0:3}" = "866"]?s|108)
exten => s,4,GotoIf($["${CALLERIDNUM:0:3}" = "877"]?s|108)
exten => s,5,GotoIf($["${CALLERIDNUM:0:3}" = "888"]?s|108)
Thanks
--John