diff options
author | Steve Murphy <murf@digium.com> | 2008-04-21 21:13:02 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2008-04-21 21:13:02 +0000 |
commit | c0b8f57b9d360f7c7353dcce2b2f9d911aa407a6 (patch) | |
tree | e783203f7d0fa05d28feb3bc509c19bc885d2666 /pbx/ael/ael-test/ael-ntest24 | |
parent | b43364eac85e0773732ac4d54262cb742ba9ace4 (diff) |
(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: https://origsvn.digium.com/svn/asterisk/trunk@114423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/ael/ael-test/ael-ntest24')
-rw-r--r-- | pbx/ael/ael-test/ael-ntest24/extensions.ael | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pbx/ael/ael-test/ael-ntest24/extensions.ael b/pbx/ael/ael-test/ael-ntest24/extensions.ael new file mode 100644 index 000000000..ea14aff6e --- /dev/null +++ b/pbx/ael/ael-test/ael-ntest24/extensions.ael @@ -0,0 +1,27 @@ +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)}]); + } + } +} + + |