[asterisk-users] Gotoif Question

2010-02-04 Thread Danny Nicholas
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 Gotoif

Re: [asterisk-users] Gotoif Question

2010-02-04 Thread Barry Miller
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

Re: [asterisk-users] Gotoif Question

2010-02-04 Thread Álvaro Rosendo Olmedo
-- 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

Re: [asterisk-users] Gotoif Question

2010-02-04 Thread Álvaro Rosendo Olmedo
C - Mensaje original - De: Barry Miller asterisk-us...@notanet.net Para: 'Asterisk Users Mailing List - Non-Commercial Discussion' asterisk-users@lists.digium.com Enviado: Thu Feb 04 17:45:47 2010 Asunto: Re: [asterisk-users] Gotoif Question I think the quotes cause the values

Re: [asterisk-users] Gotoif Question

2010-02-04 Thread Danny Nicholas
' 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) ought to cause a numeric comparison. -- Barry

[Asterisk-Users] Gotoif question

2005-01-06 Thread John Hill
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

Re: [Asterisk-Users] Gotoif question

2005-01-06 Thread Diego Aguirre
-Commercial Discussion' asterisk-users@lists.digium.com Sent: Thursday, January 06, 2005 11:30 AM Subject: [Asterisk-Users] Gotoif question 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

RE: [Asterisk-Users] Gotoif question

2005-01-06 Thread John Hill
Mailing List - Non-Commercial Discussion' asterisk-users@lists.digium.com Sent: Thursday, January 06, 2005 11:30 AM Subject: [Asterisk-Users] Gotoif question Is there a way to combine these lines into one? exten = s,2,GotoIf($[${CALLERIDNUM:0:3} = 800]?s|108) exten = s,3,GotoIf