Archived
14
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asterisk/pbx/ael/ael-test/ael-ntest24/extensions.ael
murf 137c1d8d9e (closes issue #12467)
Reported by: atis
Tested by: murf

This upgrade adds the ~~ (concatenation) string operator to expr2.
While not needed in normal runtime pbx operation, it is needed when
raw exprs are being syntax checked. This plays into future syntax-
unification plans. By permission of atis, this addition in trunk 
and the reason of why things are as they are will suffice to close
this bug.

I also added a short note about the previous addition of "sip show sched"
to the CLI in CHANGES, which I discovered I forgot in a previous commit.




git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114423 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-21 21:13:02 +00:00

28 lines
1.2 KiB
Text

context test11
{
_X. => {
Answer();
Dial(iax2/test11:nosecret@192.168.134.2522, 15,tTwW);
Hangup();
NoOp($[{GROUP_COUNT(${target_num}@agent_queue_b)}=1]);
NoOp($[1+0~~${DB(skip_group/${target_num}/agent_queue_b)}]);
NoOp($[0~~${DB(skip_group/${target_num}/agent_queue_b)}+1]);
NoOp($[${GROUP_COUNT(${target_num}@agent_queue_b)}=1+0~~${DB(skip_group/${target_num}/agent_queue_b)}]);
NoOp($[${GROUP_COUNT(${target_num}@agent_queue_b)}=0~~${DB(skip_group/${target_num}/agent_queue_b)}+1]);
if(${GROUP_COUNT(${target_num}@agent_queue_b)}==1+0~~${DB(skip_group/${target_num}/agent_queue_b)})
{
Set(testif=$[1+0~~${DB(skip_group/${target_num}/agent_queue_b)}]);
}
if(${GROUP_COUNT(${target_num}@agent_queue_b)}==0~~${DB(skip_group/${target_num}/agent_queue_b)}+1)
{
Set(testif=$[1+0~~${DB(skip_group/${target_num}/agent_queue_b)}]);
}
if(${GROUP_COUNT(${target_num}@agent_queue_b)}==1+0~~${DB(skip_group/${target_num}/agent_queue_b)})
{
Set(testif=$[1+0~~${DB(skip_group/${target_num}/agent_queue_b)}]);
}
}
}