[asterisk-users] dialplan issue - 1& 0 should be evaluated false
Esteban Guana-Jarrin
egua5261 at hotmail.com
Thu Oct 26 23:53:03 MST 2006
MM,
The $[] made it work. Thanks a lot for your assistance.
obligado :)
See the debug output below.
-- Executing NoOp("SIP/123-d14f", "no") in new stack
-- Executing NoOp("SIP/123-d14f", "yes") in new stack
-- Executing GotoIf("SIP/123-d14f", "0?7:4") in new stack
-- Goto (test-check,s,4)
-- Executing GotoIf("SIP/123-d14f", "0?9:5") in new stack
-- Goto (test-check,s,5)
-- Executing GotoIf("SIP/123-d14f", "0?11:6") in new stack
-- Goto (test-check,s,6)
-- Executing GotoIf("SIP/123-d14f", "1?13:15") in new stack
-- Goto (test-check,s,13)
-- Executing System("SIP/123-d14f", "mail -s "Test=no|yes"
egua5261 at hotmail.com") in new stack
-- Executing Playback("SIP/123-d14f", "end") in new stack
-- Executing NoOp("SIP/123-9fb1", "yes") in new stack
-- Executing NoOp("SIP/123-9fb1", "no") in new stack
-- Executing GotoIf("SIP/123-9fb1", "0?7:4") in new stack
-- Goto (test-check,s,4)
-- Executing GotoIf("SIP/123-9fb1", "1?9:5") in new stack
-- Goto (test-check,s,9)
-- Executing System("SIP/123-9fb1", "mail -s "Test=yes|no"
egua5261 at hotmail.com") in new stack
-- Executing Goto("SIP/123-9fb1", "14") in new stack
-- Goto (test-check,s,14)
-- Executing Playback("SIP/123-9fb1", "end") in new stack
>>Try this:
>>exten => s,3,Gotoif($[$[${test11} = yes]& $[${test12} = yes]]?7:4)
>>exten => s,4,Gotoif($[$[${test11} = yes] & $[${test12} = no]]?9:5)
>>exten => s,5,Gotoif($[$[${test11} = no] & $[${test12} = no]]?11:6)
>>exten => s,6,Gotoif($[$[${test11} = yes] & $[${test12} = yes]]?13:15)
>>A $[] for the entire stuff.
>>[]'s
>>MM
_________________________________________________________________
See The Killers in the UK. Download mobile stuff to win!
http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=723&referral=hotmailtagline&URL=http://ninemsn.blueskyfrog.com/index.cfm?dir=promos&page=killers
More information about the asterisk-users
mailing list