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

Re: [Asterisk-Users] Gotoif question

2005-01-06 Thread Diego Aguirre
Try this: exten = s,2,GotoIf($[${CALLERIDNUM:0:3} == 800] || $[${CALLERIDNUM:0:3} = 866] || $[${CALLERIDNUM:0:3} = 877] || $[${CALLERIDNUM:0:3} = 888]?s|108) Diego Aguirre FWD# 459696 - Original Message - From: John Hill [EMAIL PROTECTED] To: 'Asterisk Users Mailing List -

RE: [Asterisk-Users] Gotoif question

2005-01-06 Thread John Hill
That did it. Thanks --John -Original Message- From: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of Diego Aguirre Sent: Thursday, January 06, 2005 8:42 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Gotoif