[Asterisk-Users] Expression GotoIf - bug or personal misunderstanding?

3 views
Skip to first unread message

Kib Eki

unread,
Feb 10, 2006, 3:51:04 AM2/10/06
to Asterisk Users Mailing List - Non-Commercial Discussion
Hi,

I am using 1.2.4 of asterisk.

From the console:

-- Executing GotoIf("Zap/29-1", "1 & 0?4:3") in new stack
-- Goto (macro-stdexten,s-NOANSWER,4)

In my understanding the expression (1 & 0) should be lead to 0, but in this case
it leads to 1.
Can anybody explain this to me?

Much thanks

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

Ira

unread,
Feb 11, 2006, 2:02:29 PM2/11/06
to Asterisk Users Mailing List - Non-Commercial Discussion
At 12:51 AM 02/10/2006, you wrote:
> -- Executing GotoIf("Zap/29-1", "1 & 0?4:3") in new stack
> -- Goto (macro-stdexten,s-NOANSWER,4)

Should look like:

> GotoIf( $["1 & 0"]?4:3 )

Ira

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 02/10/2006

Reply all
Reply to author
Forward
0 new messages