SV: [Asterisk-Users] Error in config sample for GoToIf?

2006-06-27 Thread Jon Schøpzinsky
Hello

As far as ive understood, you can just write

Exten = s,n,GotoIf([${AVAILSTATUS} = 1]?autoanswer:fail)

${AVAILSTATUS} would return 1, and ${AVAILSTATUS} would return 1

Jon

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Brian Capouch
Sendt: 27. juni 2006 09:10
Til: Asterisk Users Mailing List - Non-Commercial Discussion
Emne: [Asterisk-Users] Error in config sample for GoToIf?

My teeth are on edge after this one.  A couple of perfectly good hours 
of my life, and I still don't know what's going on. . . .

The extensions.conf.sample that comes with the current SVN trunk has 
this line, in an example that shows how to use ChanIsAvail:

exten = s,n,GoToIf([${AVAILSTATUS} = 1]?autoanswer:fail)

I couldn't get this to work unless I surrounded the first part of the 
test with quotes, too, like this:

exten = s,n,GoToIf([${AVAILSTATUS} = 1]?autoanswer:fail)

Leaving aside the completely separate madness of trying to determine 
just what values mean what for the variable $AVAILSTATUS (which I would 
be glad to receive a pointer to), is it indeed the case that the example 
in the distribution is in error, or is there some other subtle rule that 
is causing the behavior of this line to be correct with the extra quotes 
but incorrect otherwise?

Thanks.

B.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
--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.394 / Virus Database: 268.9.4/375 - Release Date: 25-06-2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.4/375 - Release Date: 25-06-2006
 
___
--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


Re: SV: [Asterisk-Users] Error in config sample for GoToIf?

2006-06-27 Thread Brian Capouch

Jon Schøpzinsky wrote:

Hello

As far as ive understood, you can just write

Exten = s,n,GotoIf([${AVAILSTATUS} = 1]?autoanswer:fail)

${AVAILSTATUS} would return 1, and ${AVAILSTATUS} would return 1



Through more testing, the double quotes I used seemed superfluous; if 
you use them in both places, or in neither, it works the same.


But your example above lacks the $ ahead of the left brace.  It is 
*that* which I now believe is in error in the example.


Plus there seems to be confusion, on the Wiki at least, as to what 
values mean what for ${AVAILSTATUS}


Thx.

B.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
--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


Re: SV: [Asterisk-Users] Error in config sample for GoToIf?

2006-06-27 Thread Mike Lynchfield
BLAH=1BLAH=1On 6/27/06, Brian Capouch [EMAIL PROTECTED] wrote:
Jon Schøpzinsky wrote: Hello As far as ive understood, you can just write
 Exten = s,n,GotoIf([${AVAILSTATUS} = 1]?autoanswer:fail) ${AVAILSTATUS} would return 1, and ${AVAILSTATUS} would return 1Through more testing, the double quotes I used seemed superfluous; if
you use them in both places, or in neither, it works the same.But your example above lacks the $ ahead of the left brace.It is*that* which I now believe is in error in the example.Plus there seems to be confusion, on the Wiki at least, as to what
values mean what for ${AVAILSTATUS}Thx.B.--This message has been scanned for viruses anddangerous content by MailScanner, and isbelieved to be clean.___
--Bandwidth and Colocation provided by Easynews.com --Asterisk-Users mailing listTo UNSUBSCRIBE or update options visit: 
http://lists.digium.com/mailman/listinfo/asterisk-users-- MikeSales Managerhttp://www.theclubvoip.comMaking it happen
1.888.470.7253
___
--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