diff options
Diffstat (limited to 'trunk/pbx/ael/ael-test')
71 files changed, 0 insertions, 15306 deletions
diff --git a/trunk/pbx/ael/ael-test/ael-ntest10/extensions.ael b/trunk/pbx/ael/ael-test/ael-ntest10/extensions.ael deleted file mode 100644 index 4a8386ccf..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest10/extensions.ael +++ /dev/null @@ -1,131 +0,0 @@ -macro endsess() -{ - NoOp(hithere); -} - -macro nullchk(type) -{ - NoOp(${type} is this); -} - -macro endcall(type) { - switch(${type}) { - case out: - &nullchk(callid); - if(${testnotnull}) { - &endsess(); - goto ptr1 ; // <-- goto call to valid label - } - else { -ptr1: // <-- valid label - Softhangup(${CHANNEL}); - break ; - } - Noop(esac) ; - } -} - -macro endcall2(type) { - switch(${type}) { - case out: - &nullchk(callid); - if(${testnotnull}) { - &endsess(); - goto ptr1 ; // <-- goto call to valid label - } - case out2: - { -ptr1: // <-- valid label - Softhangup(${CHANNEL}); - break ; - } - Noop(esac) ; - } -} - -macro endcall3(type) { - switch(${type}) { - case out: - &nullchk(callid); - if(${testnotnull}) { - &endsess(); - goto ptr1 ; // <-- goto call to valid label - } - Noop(esac) ; - } - if(${testnotnull}) { - goto ptr1; - } - switch(${type}) { - case out: - if(${testnotnull}) { -ptr1: // <-- valid label - Softhangup(${CHANNEL}); - break ; - } - Noop(esac) ; - } -} - -macro endcall4(type) { - switch(${type}) { - case out: - &nullchk(callid); - if(${testnotnull}) { - &endsess(); - goto ptr1 ; // <-- goto call to valid label - } - Noop(esac) ; - } - if(${testnotnull}) { - goto ptr1; - } - switch(${type}) { - case out: - switch(${type}) - { - case in: - if(${testnotnull}) { -ptr1: // <-- valid label - Softhangup(${CHANNEL}); - break ; - } - Noop(esac) ; - } - } -} - -macro endcall5(type) { - switch(${type}) { - case out: - &nullchk(callid); - if(${testnotnull}) { - &endsess(); - goto ptr1 ; // <-- goto call to valid label - } - case in: - &nullchk(callid); - ptr2: - if(${testnotnull}) { - &endsess(); - goto ptr1 ; // <-- goto call to valid label - } - Noop(esac) ; - } - if(${testnotnull}) { - goto ptr1; - } - switch(${type}) { - case out: - switch(${type}) - { - case in: - if(${testnotnull}) { -ptr1: // <-- valid label - Softhangup(${CHANNEL}); - break ; - } - Noop(esac) ; - } - } -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest12/extensions.ael b/trunk/pbx/ael/ael-test/ael-ntest12/extensions.ael deleted file mode 100644 index 1e3183358..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest12/extensions.ael +++ /dev/null @@ -1,13 +0,0 @@ -context test1 -{ - 771 => { - for( i=0; - ${i} <= 3; - i = ${i} + 1 ) - NoOp(i is '${i}'); - } - 772 => { - for(i=0; ${i} <= 3;i= ${i} + 1 ) - NoOp(i is '${i}'); - } -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/extensions.ael b/trunk/pbx/ael/ael-test/ael-ntest22/extensions.ael deleted file mode 100644 index b787f4b03..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/extensions.ael +++ /dev/null @@ -1,7 +0,0 @@ -#include "t1/*.ael" - -context z -{ - 123 => NoOp(hi there, z); - 124 => NoOp(hi there, z); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/qq.ael b/trunk/pbx/ael/ael-test/ael-ntest22/qq.ael deleted file mode 100644 index c446f53fc..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/qq.ael +++ /dev/null @@ -1,6 +0,0 @@ - - -context qq -{ - 567 => NoOp(hi there, qq); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/t1/a.ael b/trunk/pbx/ael/ael-test/ael-ntest22/t1/a.ael deleted file mode 100644 index 62e3fc588..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/t1/a.ael +++ /dev/null @@ -1,4 +0,0 @@ -context a -{ - 134 => NoOp(hi there, a); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/t1/b.ael b/trunk/pbx/ael/ael-test/ael-ntest22/t1/b.ael deleted file mode 100644 index 29d8d1ff4..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/t1/b.ael +++ /dev/null @@ -1,6 +0,0 @@ - - -context b -{ - 456 => NoOp(hithere, b); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/t1/c.ael b/trunk/pbx/ael/ael-test/ael-ntest22/t1/c.ael deleted file mode 100644 index 3c6df4bde..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/t1/c.ael +++ /dev/null @@ -1,13 +0,0 @@ - - -context c -{ - 567 => NoOp(hi there, c); -} - -#include "t2/*.ael" - -context w -{ - 890 => NoOp(hi there, w); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/t2/d.ael b/trunk/pbx/ael/ael-test/ael-ntest22/t2/d.ael deleted file mode 100644 index 6362278f7..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/t2/d.ael +++ /dev/null @@ -1,4 +0,0 @@ -context d -{ - 134 => NoOp(hi there, d); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/t2/e.ael b/trunk/pbx/ael/ael-test/ael-ntest22/t2/e.ael deleted file mode 100644 index 9465c8b4e..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/t2/e.ael +++ /dev/null @@ -1,6 +0,0 @@ - - -context e -{ - 456 => NoOp(hithere, e); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/t2/f.ael b/trunk/pbx/ael/ael-test/ael-ntest22/t2/f.ael deleted file mode 100644 index ba15a6389..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/t2/f.ael +++ /dev/null @@ -1,9 +0,0 @@ -#include "qq.ael" - -context f -{ - 567 => NoOp(hi there, f); -} - -#include "t3/*.ael" - diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/t3/g.ael b/trunk/pbx/ael/ael-test/ael-ntest22/t3/g.ael deleted file mode 100644 index 0f1ecc805..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/t3/g.ael +++ /dev/null @@ -1,4 +0,0 @@ -context g -{ - 134 => NoOp(hi there, g); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/t3/h.ael b/trunk/pbx/ael/ael-test/ael-ntest22/t3/h.ael deleted file mode 100644 index f9e3ca89f..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/t3/h.ael +++ /dev/null @@ -1,6 +0,0 @@ - - -context h -{ - 456 => NoOp(hithere, h); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/t3/i.ael b/trunk/pbx/ael/ael-test/ael-ntest22/t3/i.ael deleted file mode 100644 index 5639a1e98..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/t3/i.ael +++ /dev/null @@ -1,4 +0,0 @@ -context i -{ - 134 => NoOp(hi there, i); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest22/t3/j.ael b/trunk/pbx/ael/ael-test/ael-ntest22/t3/j.ael deleted file mode 100644 index 8dfc6c05f..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest22/t3/j.ael +++ /dev/null @@ -1,6 +0,0 @@ - - -context j -{ - 567 => NoOp(hi there, j); -} diff --git a/trunk/pbx/ael/ael-test/ael-ntest9/extensions.ael b/trunk/pbx/ael/ael-test/ael-ntest9/extensions.ael deleted file mode 100755 index b9762ed54..000000000 --- a/trunk/pbx/ael/ael-test/ael-ntest9/extensions.ael +++ /dev/null @@ -1,12 +0,0 @@ - -context workext { - ignorepat => 8; - ignorepat => 9; - 793 => { - Set(QUERYSTRING=SELECT\ foo\,\ bar\ FROM\ foobar); - Verbose(2|${QUERYSTRING}); - query="SELECT foo\, bar FROM foobar" ; - Verbose(2|${query}) ; - } -} - diff --git a/trunk/pbx/ael/ael-test/ael-test1/extensions.ael b/trunk/pbx/ael/ael-test/ael-test1/extensions.ael deleted file mode 100644 index e1943f67c..000000000 --- a/trunk/pbx/ael/ael-test/ael-test1/extensions.ael +++ /dev/null @@ -1,163 +0,0 @@ - -macro testdial(number, timeout) { - Dial(IAX2/vpconnect-t02/${number},${timeout},${OG_DIAL_FLAGS}); - switch (${DIALSTATUS}) { - case CHANUNAVAIL: - goto dial-trunk2; - break; - default: - NoOp(t02 Unavailable - ${DIALSTATUS}); - return; - } - -dial-trunk2: - Dial(IAX2/vpconnect-t01/${number},${timeout},${OG_DIAL_FLAGS}); - -} - -macro exten-gen(name,pword) -{ - if( ${DB_EXISTS(org/${GroupID}/${name}/secret)} = 0 ) - goto other|nomatch|begin; - if( ${DB(org/${GroupID}/${name}/secret)}foo != ${pword}foo ) - goto other|nomatch|begin; - -}; - -context what { - who => - { - random(51) NoOp(This should appear 51% of the time); - - random( 60 ) - { - NoOp( This should appear 60% of the time ); - } - else - { - random(75) - { - NoOp( This should appear 30% of the time! ); - } - else - { - NoOp( This should appear 10% of the time! ); - } - } - } -} - -context other { - nomatch => { - begin: - NoOp(Hello!); - switch(${DIALSTATUS}) - { - case BUSY: - NoOp(wow); - case TORTURE: - NoOp(woow); - }; - NoOp(woohoo); - }; -}; - -context testloop { - includes { - other|16:00-23:59|m0n-fri|*|*; - }; - - 1 => { - for (x=0; ${x} < 3; x=${x} + 1) { - Verbose(x is ${x} !); - if( ${x} = 1 ) - continue; - if( ${x} = 2 ) - break; - }; - ifTime(14:00-25:00|sat-sun|*|*) { - BackGround(Hello); - } else - BackGround(Sorry); - NoOp(This is a totally useless NOOP); - }; - 2 => { - y=10; - while (${y} >= 0) { - Verbose(y is ${y} !); - if( ${y} = 1 ) - continue; - if( ${y} = 2 ) - break; - if( ${y} = 3 ) - return; - y=${y}-1; - }; - }; - regexten hint(nasty/Thingy&nasty/Thingamabob) 3 => { - for (x=0; ${x} < 3; x=${x} + 1) - { - Verbose(x is ${x} !); - if( ${x} = 4 ) - break; - if( ${x} = 5 ) - continue; - if( ${x} = 6 ) - return; - - y=10; - while (${y} >= 0) - { - Verbose(y is ${y} !); - if( ${y} = 4 ) - break; - if( ${y} = 5 ) - continue; - if( ${y} = 6 ) - return; - y=${y}-1; - }; - }; - }; - 4 => { - y=10; - while (${y} >= 0) - { - Verbose(y is ${y} !); - if( ${y} = 4 ) - break; - if( ${y} = 5 ) - continue; - if( ${y} = 6 ) - return; - for (x=0; ${x} < 3; x=${x} + 1) - { - Verbose(x is ${x} !); - if( ${x} = 4 ) - break; - if( ${x} = 5 ) - continue; - if( ${x} = 6 ) - return; - for (z=0; ${z} < 17; z=${z} + 1) - { - Verbose(z is ${z} !); - Verbose(z is ${z} !); - if( ${z} = 4 ) - break; - if( ${z} = 5 ) - continue; - if( ${z} = 6 ) - return; - Verbose(z is ${z} !); - Verbose(z is ${z} !); - }; - - }; - y=${y}-1; - }; - }; - 5 => { - &exten-gen(axel,brain); - }; -}; diff --git a/trunk/pbx/ael/ael-test/ael-test11/extensions.ael b/trunk/pbx/ael/ael-test/ael-test11/extensions.ael deleted file mode 100644 index a6b2226f8..000000000 --- a/trunk/pbx/ael/ael-test/ael-test11/extensions.ael +++ /dev/null @@ -1,57 +0,0 @@ -context test1 -{ - s => - { - goto lab1; - if( ${testnotnull} ) - { - lab1: - NoOp(hello); - } - else - { - lab1: - MoOp(goodbye); - } - } - - 1 => - { - lab1: - NoOp(This one is OK.); - } -} - -macro endcall5(type) { - switch(${type}) { - case out: - if(${testnotnull}) { - NoOp(whoosh); - goto ptr1 ; // <-- goto call to valid label - } - case in: - ptr1: // The First label is the valid one... - if(${testnotnull}) { - NoOp(wow); - goto ptr1 ; // <-- goto call to valid label - } - Noop(esac) ; - } - if(${testnotnull}) { - goto ptr1; - } - switch(${type}) { - case out: - switch(${type}) - { - case in: - if(${testnotnull}) { -ptr1: // <-- duplicate label (macros are about the equiv of an extension) - Softhangup(${CHANNEL}); - break ; - } - Noop(esac) ; - } - } - return; -} diff --git a/trunk/pbx/ael/ael-test/ael-test14/extensions.ael b/trunk/pbx/ael/ael-test/ael-test14/extensions.ael deleted file mode 100644 index 20d69134f..000000000 --- a/trunk/pbx/ael/ael-test/ael-test14/extensions.ael +++ /dev/null @@ -1,20 +0,0 @@ -context test1 -{ - 10 => { - // nothing but a comment! - } - - 11 => { - switch(${somevar}) - { - case somecase: - // nothing but a comment! - break; - case somecase: - // nothing but a comment! - continue; - } - break; - } - -} diff --git a/trunk/pbx/ael/ael-test/ael-test15/extensions.ael b/trunk/pbx/ael/ael-test/ael-test15/extensions.ael deleted file mode 100644 index c9cfdab96..000000000 --- a/trunk/pbx/ael/ael-test/ael-test15/extensions.ael +++ /dev/null @@ -1,17 +0,0 @@ -/* and some comments - would make a nice touch */ - -context t1 -{ - /* this a test of block comments */ - - _15x => { - /* more comments - across several lines - * what do you think* - */ - } - -} - -/* amd some more */ diff --git a/trunk/pbx/ael/ael-test/ael-test16/extensions.ael b/trunk/pbx/ael/ael-test/ael-test16/extensions.ael deleted file mode 100644 index 5f3b2e4e9..000000000 --- a/trunk/pbx/ael/ael-test/ael-test16/extensions.ael +++ /dev/null @@ -1,4 +0,0 @@ -context real-small { - -} - diff --git a/trunk/pbx/ael/ael-test/ael-test18/extensions.ael b/trunk/pbx/ael/ael-test/ael-test18/extensions.ael deleted file mode 100644 index ee03d5909..000000000 --- a/trunk/pbx/ael/ael-test/ael-test18/extensions.ael +++ /dev/null @@ -1,40 +0,0 @@ -context default -{ - -706/3077610011 => { - JabberStatus(asterisk|jmls@mike,StatusCode); - - switch(${StatusCode}) { - case 1: - Dial(SIP/706,12); - switch(${DIALSTATUS}) { - case BUSY: - Voicemail(b706); - break; - default: - Voicemail(u706); - }; - BackGround(hello); - break; - default: - Voicemail(u706); - }; - ifTime(3:00-13:00|*|*|*) - { - NoOp(hello); - label1: - NoOp(goodbye); - } - else - { - NoOp(hithere); - label2: - NoOp(whatonearth?); - } - goto label1; - goto label2; - Hangup(); - }; - -} - diff --git a/trunk/pbx/ael/ael-test/ael-test19/extensions.ael b/trunk/pbx/ael/ael-test/ael-test19/extensions.ael deleted file mode 100644 index 07af91482..000000000 --- a/trunk/pbx/ael/ael-test/ael-test19/extensions.ael +++ /dev/null @@ -1,377 +0,0 @@ -context dialextens -{ - /* - 101 thru 123, 149 thru 152 - */ - _10X => Dial(Zap/${EXTEN:2},30,Ttw); - _1ZX => Dial(Zap/${EXTEN:1},30,Ttw); -} -/* - Due to extenal wiring: - - dialing 125 will ring 101 - dialing 126 will ring 102 - and so on until - dialing 147 will ring 123 - -We can dial out on zap 69 thru 72; and 25-47 - -*/ - -context dialthrus -{ - /* 369-372; 325-347 */ - _3XX => Dial(Zap/${EXTEN:1},30,Ttw); -} - -context t1incoming -{ - includes - { - dialextens; - parkedcalls; - } - s => { - Answer(); - Background(welcome-to-test-machine); - } - -} - -context t1extension -{ - includes - { - dialextens; - dialthrus; - } - -} - -context incoming -{ - includes - { - dialextens; - parkedcalls; - } - s => { - Answer(); - Background(welcome-to-test-machine); - } -} - -context incoming -{ - s => { - Answer(); - } -} - -macro std-priv-exten( dev, ext , timeout, opts, torcont, dontcont ) -{ - // &increment_chosecount(); - dial_again: - Dial(${dev},${timeout},${opts}); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - - case DONTCALL: - goto ${dontcont}|s|begin; - break; - - case BUSY: - label_busy: - Read(reply|work-exten-busy|1||2|15); - if ("${reply}"=="") - goto label_busy; // infinite loop if Read has probs!! - switch(${reply}) - { - case 1: - Set(time1=${EPOCH}); - - label_redial: - - WaitMusicOnHold(5); - Dial(${dev},${timeout},${opts}); - - switch(${DIALSTATUS}) - { - case BUSY: - if(${EPOCH}-${time1} >= 20) - goto label_busy; - goto label_redial; - - default: - return;// goto work_line|s|loopback; - } - break; - case 2: - Voicemail(${ext}|b); - break; - case 3: - return; // goto work_line|s|loopback; - default: - Background(invalid); - goto label_busy; - } - break; - - case ANSWER: - break; - - case NOANSWER: - noanswer_label: - Read(reply|work-exten-noanswer|1|skip|2|15); - switch(${reply}) - { - case 1: - switch(${ext}) - { - case 10: - Background(no-cell); - break; - case 11: - // &ciddial(2729495,3072729495,30,tw,${GRAMS_TELCO},${WORK_TELCO}); - break; - case 12: - // &ciddial(2725560,3072725560,30,tw,${GRAMS_TELCO},${WORK_TELCO}); - break; - case 13: - // &ciddial(2720197,3072720197,30,tw,${GRAMS_TELCO},${WORK_TELCO}); - break; - case 14: - // &ciddial(2501174,3072501174,30,tw,${GRAMS_TELCO},${WORK_TELCO}); - break; - case 15: - Background(no-cell); - break; - case 16: - Background(no-cell); - break; - default: - Background(invalid); - break; - } - goto noanswer_label; - break; - case 2: - Voicemail(${ext}|u); - break; - case 3: - return; // goto work_line|s|loopback; - default: - Background(invalid); - goto noanswer_label; - } - Voicemail(${ext}|u); - break; - default: - Voicemail(${ext}|u); - } -} -/* Putting these 3 funcs in extensions.conf! -macro funcC(a,b) -{ - Set(Key=); - menu: - Read(Key,main-menu,1,n,1,5); - if("${Key}" = "2") - goto y,lab1; - catch y - { lab1: - &funcB(${a},${b}); - } -} - -macro funcB(a,b) -{ - Set(Key=); - menu: - Read(Key,tt-monkeys,1,n,1,5); - if("${Key}" = "2") - goto z,lab2; - catch z - { lab2: - &funcC(${a},${b}); - } -} - -macro funcA() -{ - &funcB(1,2); -} -*/ - -context extension -{ - includes - { - dialextens; - dialthrus; - parkedcalls; - } - 5 => { - Record(recording:wav); - Background(recording); - } - - 81 => { - iterations=1000000; - Set(time1=${EPOCH}); - for(i=1; ${i}<${iterations}; i=${i}+1) - { - NoOp(Hello); - } - Set(time2=${EPOCH}); - Verbose(The time diff is $[${time2} - ${time1} ] seconds); - Verbose(Which means that the priorities/sec = $[4* ${iterations} / (${time2} - ${time1}) ]); - SayNumber($[4 * ${iterations} / (${time2} - ${time1}) ]); - } - 82 => { - &ndeep(100000); - Verbose(Finished 100000 levels deep call!); - } - 83 => { - switch (${EXTEN}) - { - pattern 8X: - Verbose(do something to prepare it); - pattern 9X: - Verbose(handle both 1xx and 2xx calls); - pattern [4-7]X: - Verbose(and this too!); - } - Set(junky=${RAND(0|99999)}); - Verbose(Here is a random number: ${junky}.); - } - 84 => { - agi(agi://192.168.134.252/|hello|goodbye|whatever|whoknows,hell2,hello3); - } - 85 => { - &std-priv-exten( Zap/50, 150 , 25, mtw, torcont, dontcont ); - } - 86 => { - Verbose(The version is: ${VERSION()} ); - Verbose(The versionnum is: ${VERSION(ASTERISK_VERSION_NUM)} ); - Verbose(The user is: ${VERSION(BUILD_USER)} ); - Verbose(The hostname is: ${VERSION(BUILD_HOSTNAME)} ); - Verbose(The machine is: ${VERSION(BUILD_MACHINE)} ); - Verbose(The OS is: ${VERSION(BUILD_OS)} ); - Verbose(The date is: ${VERSION(BUILD_DATE)} ); - Verbose(The kernel is: ${VERSION(BUILD_KERNEL)} ); - Set(vinf=${VERSION()}); - Set(vrand=${RAND()}); - if( ${ISNULL(${vinf})} ) - { - if( ${ISNULL(${vrand})} ) - Verbose(Version 1.2 or earlier); - else - Verbose(Version 1.4!!!); - } - else - Verbose(${vinf} indicates version pre-1.6 or higher); - } - 871 => { - NoOp( 1 1 1 1 1 1 1); - NoOp( 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6); - NoOp(012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678890123456789012345678901234567890); - NoOp(${EXTEN:1:2} ${EXTEN} ${EXTEN:1} 1 1 1 1 1 1 1); - &dialoutpstn(${TDIRECTCALL-PST}/0${EXTEN},${E${CALLERID(num)}-OPT},${TDIRECTCALL-CID},${TDIRECTCALL-MAX},RotaPadrao) ; - - } - 872 => { - Set(ChannelOnly=${CUT(CHANNEL||1)}); - Verbose(ChannelOnly=${ChannelOnly}; neat huh?); - Set(ChannelOnly=${CUT(CHANNEL,,1)}); - Verbose(ChannelOnly=${ChannelOnly}; neat huh?); - } - 873 => { - NOOP(this is a forkcdr test); - Set(CALLERID(num)=1234567890); - Set(CALLERID(name)=before fork); - Forkcdr(v); - Set(CALLERID(num)=0987654321); - Set(CALLERID(name)=after fork); - Answer(); - Echo(); - Hangup(); - } - 874 => { - SayDigits(307-754-5675); - SayPhoneNumber(307-754-5675); - SayDigits(--); - SayPhoneNumber(123-456-7890); - SayDigits(++); - SayPhoneNumber(307-754-4454); - } - 875 => { - &funcA(); - &funcD(); - } - 876 => { - NoOp(Query resultid ${connid} SELECT var1\, var2 FROM did); - NoOp($["Query resultid ${connid} SELECT var1\, var2 FROM did"]); - NoOp($["Query resultid ${connid} SELECT var1, var2 FROM did"]); - goto test5,s,1; - } - 88 => { - SET(LIMIT_PLAYAUDIO_CALLER=yes); - SET(LIMIT_PLAYAUDIO_CALLEE=no); - SET(LIMIT_TIMEOUT_FILE=timeup); - SET(LIMIT_CONNECT_FILE=limit60); - SET(LIMIT_WARNING_FILE=almostup); - Dial(Zap/51,20,L(60000:30000:8000)); - } - 89 => { - goto callbackmenu|100|1; - } -} - -context income1 -{ - s => { - Answer(); - Dial(Zap/50,20,m); - } - 150 => Dial(Zap/50,20,m); -} - -context callbackmenu -{ - _X. => { - Answer(); - Wait(1); - Set(TIMEOUT(digit)=5); - Set(TIMEOUT(response)=30); - DISA(no-password,callbackdialout); - } -} - -context callbackdialout -{ - _X. => { - Dial(Zap/51,20,w); - } - -} - - -macro dialoutpstn(something1, something2, something3, something4, something5) -{ - Verbose(${something1}--- ${something2}--- ${something3}--- ${something4}--- ${something5}); -} - -macro ndeep(level) -{ - if( ${level} == 0) - { - Verbose(2|Got to Level 0); - return; - } - &ndeep($[${level}-1]); - return; -} diff --git a/trunk/pbx/ael/ael-test/ael-test2/apptest.ael2 b/trunk/pbx/ael/ael-test/ael-test2/apptest.ael2 deleted file mode 100644 index c477d8531..000000000 --- a/trunk/pbx/ael/ael-test/ael-test2/apptest.ael2 +++ /dev/null @@ -1,146 +0,0 @@ -// this is a quick test to see how many of the apps we can spot j options in -// include this in a macro or extension -// at this moment, there are 18 apps that accept the j option. - - AddQueueMember(zork,iface,20,j); - ADSIProg(sfile); - AgentCallbackLogin(agent,s,30@cont); - AgentLogin(agent,s); - AgentMonitorOutgoing(dcn); - AGI(whatever); - AlarmReceiver(); - Answer(2); - AppendCDRUserField(value); - Authenticate(pword,adjmr); - BackGround(filename,snm,eng); - BackgroundDetect(filename,20,2,10); - Busy(10); - ChangeMonitor(fnamebase); - ChanIsAvail(Zap/5,sj); - ChanSpy(prefix,bg()qrv); - Congestion(5); - ControlPlayback(filename,10,6,4,0,5,7,j); - DateTime(unixtime,tz,fmt); - DBdel(fam/key); - DBdeltree(fam); - DeadAGI(command); - Dial(zap/1,45,A()CdD()fgG()hHjL()m()M()nNoprS()tTwW); - Dictate(basedir); - Directory(cont,dcont,f); - DISA(68986869876,context); - DumpChan(verblev); - DUNDiLookup(90709780978,context,bj); - EAGI(command); - Echo(); - EndWhile(); - Exec(appname,args); - ExecIf(expr,app,data); - ExecIfTime(*,*,*,*,appname); - ExternalIVR(command,arg1); - Festival(text); - Flash(); - ForkCDR(v); - GetCPEID(); - Gosub(cont,exten,priority); - GosubIf(cond?label); - Goto(cont,exten,prior); - GotoIf(cond?t:f); - GotoIfTime(*,*,*,*?cont,ext,prior); - Hangup(); - HasNewVoicemail(vmbox,var,j); - HasVoicemail(vmbox,var,j); - IAX2Provision(template); - ICES(xmlconfig); - ImportVar(nevar@chann,var); - Log(NOTICE,message); - LookupBlacklist(j); - LookupCIDName(); - Macro(macro,arg1); - MacroExit(); - MacroIf(expr?etc); - MailboxExists(mbox@cont,j); - Math(v,2+2); - MeetMe(5555,aAbcdDeimMpPqrstTovwxX); - MeetMeAdmin(5555,e,user); - MeetMeCount(5555,var); - Milliwatt(); - MixMonitor(filename,abv()V()W(),command); - Monitor(file.fmt,base,mb); - MP3Player(location); - MusicOnHold(class); - NBScat(); - NoCDR(); - NoOp(ignored); - Page(Zap/1,dq); - Park(exten); - ParkAndAnnounce(template,5,238,retcont); - ParkedCall(exten); - PauseQueueMember(queue,zap,j); - Pickup(ext@cont); - Playback(file,j); - PlayTones(arg); - PrivacyManager(3,4,j); - Progress(); - Queue(queuename,dhHnrtTwW,http://www.where.what,over,5); - Random(30,cont,ext,pri); - Read(var,fname,10,skip,2,5); - ReadFile(var=file,10); - RealTime(fam,2,val,prefix); - RealTimeUpdate(fam,2,val,2,newval); - Record(file,2,10,anqst); - RemoveQueueMember(queuename,iface,j); - ResetCDR(wav); - RetryDial(annound,4,2); - Return(); - Ringing(); - RxFAX(fname,caller); - SayAlpha(string); - SayDigits(string); - SayNumber(digits); - SayPhonetic(string); - SayUnixTime(unixtime,tz,fmt); - SendDTMF(digits,10); - SendImage(filename); - SendText(text,j); - SendURL(URL); - Set(a=b); - SetAMAFlags(); - SetCallerID(clid,a); - SetCallerPres(allowed_passed_screen); - SetCDRUserField(value); - SetGlobalVar(var=val); - SetMusicOnHold(class); - SetTransferCapability(SPEECH); - SIPAddHeader(header); - SIPDtmfMode(inband,info,rfc); - SIPGetHeader(var@headername); - SMS(name); - SoftHangup(zap/1,a); - StackPop(); - StartMusicOnHold(class); - StopMonitor(); - StopMusicOnHold(); - StopPlayTones(); - System(command); - TestClient(testid); - TestServer(); - Transfer(zap/1,j); - TrySystem(command); - TxFAX(filename,caller,debug); - UnpauseQueueMember(queuename,iface,j); - UserEvent(eventanme,body); - Verbose(5,message); - VMAuthenticate(mailbox@cont,s); - VoiceMail(mailbox@cont,bg()suj); - VoiceMailMain(mailbox@cont,pg()s); - Wait(2); - WaitExten(3,m()); - WaitForRing(2); - WaitForSilence(2,y); - WaitMusicOnHold(2); - While(expr); - Zapateller(answer,5); - ZapBarge(channel); - ZapRAS(arg); - ZapScan(group); - ZapSendKeypadFacility(); diff --git a/trunk/pbx/ael/ael-test/ael-test2/extensions.ael b/trunk/pbx/ael/ael-test/ael-test2/extensions.ael deleted file mode 100644 index 176338872..000000000 --- a/trunk/pbx/ael/ael-test/ael-test2/extensions.ael +++ /dev/null @@ -1,8 +0,0 @@ -context test1 -{ - s => - { - #include "apptest.ael2"; - } -} - diff --git a/trunk/pbx/ael/ael-test/ael-test20/extensions.ael b/trunk/pbx/ael/ael-test/ael-test20/extensions.ael deleted file mode 100644 index 8ec219864..000000000 --- a/trunk/pbx/ael/ael-test/ael-test20/extensions.ael +++ /dev/null @@ -1,8 +0,0 @@ -context interesting { - eswitches { - Realtime/default@extensions; - IAX2/context@${CURSERVER}; - } - 13 => NoOp(LuckyNumber!); -} - diff --git a/trunk/pbx/ael/ael-test/ael-test3/extensions.ael b/trunk/pbx/ael/ael-test/ael-test3/extensions.ael deleted file mode 100755 index ff1f6aea5..000000000 --- a/trunk/pbx/ael/ael-test/ael-test3/extensions.ael +++ /dev/null @@ -1,3184 +0,0 @@ -globals -{ - static=yes; - writeprotect=yes; - CONSOLE=Console/dsp; // Console interface for demo - IAXINFO=murf:tlhfckoct; // IAXtel username/password - FWDNUMBER=544788 ; // your calling number - FWDCIDNAME="Joe-Worker"; // your caller id - FWDPASSWORD=zingledoodle ; // your password - FWDRINGS=Zap/6 ; // the phone to ring - FWDVMBOX=1 ; // the VM box for this user -} - -macro std-exten( ext , dev ) -{ - Dial(${dev}/${ext},20); - goto privacyManagerFailed|s|begin; - switch(${DIALSTATUS}) - { - case BUSY: - Voicemail(b${ext}); - break; - case NOANSWER: - Voicemail(u${ext}); - break; - case ANSWER: - break; - default: - Voicemail(u${ext}); - } - catch a { - VoiceMailMain(${ext}); - } -} - -macro std-priv-exten_1( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_2( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_3( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_4( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_5( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_6( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_7( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_8( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_9( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_10( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_11( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_12( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_13( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_14( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_15( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_16( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_17( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_18( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_19( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_20( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_21( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_22( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_23( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_24( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_25( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_26( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_27( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_28( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_29( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_30( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_31( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_32( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_33( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_34( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_35( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_36( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_37( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_38( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_39( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_40( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_41( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_42( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_43( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_44( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_45( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_46( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_47( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_48( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_49( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_50( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_51( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_52( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_53( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_54( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_55( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_56( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_57( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_58( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_59( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_60( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_61( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_62( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_63( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_64( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_65( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_66( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_67( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_68( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_69( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_70( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_71( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_72( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_73( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - -macro fillcidname() -{ - if( "${CALLERID(num)}" = "" ) // nothing to work with, quit!!! - return; - Set(cidn=${DB(cidname/${CALLERID(num)})}); - if( "${CALLERID(name)}" != "" ) - { - if( ("${cidn}" = "Privacy Manager" & "${CALLERID(name)}" != "Privacy Manager") | "${cidn}" = "" ) // if the entry isn't in the database, - // or if an entry exists, and it's "Privacy Manager", empty, (or add other useless possibilities). - { - Set(DB(cidname/${CALLERID(num)})=${CALLERID(name)}); // then set or override what's in the DB - } - } - // Now, we fill in the callerid info from the incoming entry, if it's stuff worth using - // Ignore fundamentally semi-anonymous information from local cell phones - // if the db has an entry for this number, and it's not a canned string from a cell phone company - if( ( "${cidn}" != "" ) & ( "${CALLERID(name)}" = "" - | "${CALLERID(name)}" = "CODY,WY " - | "${CALLERID(name)}" = "POWELL,WY " - | "${CALLERID(name)}" = "WIRELESS CALLER" - | "${CALLERID(name)}" = "SUBSCRIBER,WIRE" - | "${CALLERID(name)}" = "CELLULAR ONE" - | "${CALLERID(name)}" = "Cellular One Customer" - | "${CALLERID(name)}" = "CELLULAR ONE " - | "${CALLERID(name)}" = "Privacy Manager" - | "${CALLERID(name)}" = "RIVERTON,WY " - | "${CALLERID(name)}" = "BASIN,WY " - | "${CALLERID(name)}" = "BILLINGS,MT " - | "${CALLERID(name)}" = "PROVO,UT " - | "${CALLERID(name)}" = "TOLL FREE " ) ) // put stuff in the above, that the phone company tends to put in your callerid, - // that you would rather override with DB info - // there's no way to guess them all, but you can get the most popular ones... - // why cell phones can't do CID like everybody else, ....? - { - Set(CALLERID(name)=${cidn}); // Override what the phone company provides with what's in the DB for this number. - } -} - -macro ciddial(dialnum, lookup, waittime, dialopts, ddev) -{ - Set(cidnu=${CALLERID(num)}); - Set(cidn=${DB(cidname/${lookup})}); - Set(CALLERID(name)=${cidn}); - Dial(${ddev}/${dialnum}|${waittime}|${dialopts}); - if( "${DIALSTATUS}" = "CHANUNAVAIL" ) - { - BackGround(try_voip); - CALLERID(num)=7075679201; - Dial(SIP/1${lookup}@tctwest,${waittime},${dialopts}); - if( "${DIALSTATUS}" = "CHANUNAVAIL" ) - { - BackGround(try_cell); - CALLERID(num)=${cidnu}; // put the original number back - Dial(Zap/2/${lookup},${waittime},${dialopts}); - } - } -} - -macro ciddial3(dialnum, lookup, waittime, dialopts, ddev) -{ - Set(cidnu=${CALLERID(num)}); - Set(cidn=${DB(cidname/${lookup})}); - Set(CALLERID(name)=${cidn}); - Dial(${ddev}/${dialnum}|${waittime}|${dialopts}); - if( "${DIALSTATUS}" = "CHANUNAVAIL" ) - { - BackGround(try_cell); - Dial(Zap/2/${lookup},${waittime},${dialopts}); - } -} - -macro ciddial2(dialnum, lookup, waittime, dialopts, ddev) // give priority to tctwest, then the ZAP in emergencies -{ - Set(cidn=${DB(cidname/${lookup})}); - Set(cidnu=${CALLERID(num)}); - Set(CALLERID(name)=${cidn}); - Set(CALLERID(num)=7075679201); - Dial(SIP/1${lookup}@tctwest,${waittime},${dialopts}); - if( "${DIALSTATUS}" = "CHANUNAVAIL" ) - { - Set(CALLERID(num)=${cidnu}); // put the original number back - BackGround(try_zap); - Dial(${ddev}/${dialnum},${waittime}|${dialopts}); - if( "${DIALSTATUS}" = "CHANUNAVAIL" ) - { - BackGround(try_cell); - Dial(Zap/2/${lookup},${waittime},${dialopts}); - } - } -} - -macro callerid-liar() -{ - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/priv-callerintros/LIAR.gsm&); - Background(priv-liar); // Script: OOOps! Sorry! I don't allow men with ski masks pulled over their - // faces to get in the front door, and unidentified callers won't fair - // any better. You entered *MY* phone number. That won't work. - // If you are telemarketing, cross me off the list, and don't call again. - // If you did this by mistake, forgive my defenses, and call again. - // Alternate: (priv-liar2) - // Script: You have chosen to try to deceive my system and withold your CallerID, - // by entering my own phone number as YOUR CallerID. I find this - // offensive because you are being dishonest. I will not do business nor - // waste my time talking to anyone who is less than honest and forthcoming. - // Take me off your call list and do not call me again. - Hangup(); -} - -macro callerid-bad() -{ - mycid=${CALLERID(num)}:"1([0-9]+)"; - Set(CALLERID(num)=${mycid}); - Wait(0); -} - -context privacyManagerFailed { - s => { - begin: - Background(PrivManInstructions); // Script: OOps, that didn't go well. You need to enter *your* area code, and *your* 7 digit - // phone number, for a total of 10 digits, or you'll be handed over to the monkeys. Let's - // try this again, and hopefully you can get past our front-line defenses! - PrivacyManager(); - if( "${PRIVACYMGRSTATUS}" = "FAILED" ) - { - Background(tt-allbusy); - Background(tt-somethingwrong); - Background(tt-monkeysintro); - Background(tt-monkeys); - Background(tt-weasels); - Hangup(); - } - else - { - goto homeline|s|postPriv; - } - } -} - -// Some comments -// Some more comments - -context homeline { - s => { - begin: - Answer(); - Set(repeatcount=0); - Zapateller(nocallerid); - PrivacyManager(); - if( "${PRIVACYMGRSTATUS}" = "FAILED" ) - { - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/privmanfailed.gsm); - &std-priv-exten(Zap/3r1&Zap/5r1,2,25,mtw,telemarket,telemarket); - Hangup(); - return; -// goto privacyManagerFailed|s|begin; - } - postPriv: - &fillcidname(); - Set(CONFCIDNA=${CALLERID(name)}); - Set(CONFCIDNU=${CALLERID(num)}); - AGI(callall); - AGI(submit-announce.agi); - if( "${CALLERID(num)}" : "1" ) - { - &callerid-bad(); - } - if( "${CALLERID(num)}" = "7077577685" & "${CALLERID(name)}" : "Privacy Manager" ) - { - &callerid-liar(); - } - TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&); - Set(lds=${DB(playlds/${CALLERID(num)})}); - if( "${lds}" = "1" ) - { - SetMusicOnHold(mohlds); - } - direct=${DB(DirectCall/${CALLERID(num)})}; - if( "${direct}" != "" & ${direct} != 0 ) - { - verbose(direct is XXX#${direct}XXXX); - Playback(greetings/direct); // Welcome to the Murphy residence. This system will automatically try to connect you to... - Playback(/var/spool/asterisk/voicemail/default/${direct}/greet); - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/${direct}/greet.wav&); - switch(${direct}) - { - case 1: //Steve - &std-priv-exten(Zap/6r3&Sip/murf,1,25,mpA(beep)tw,telemarket,telemarket); - goto s|loopback; - case 2: //Sonya - &std-priv-exten(Zap/3r1&Zap/5r1,2,25,mtw,telemarket,telemarket); - goto s|loopback; - default: // all the kids - Set(z=${direct}-2); - goto homeline-kids|${z}|1; - } - } - loopback: - ifTime(*|*|20-25|dec) - { - Playback(greetings/christmas); - } - else ifTime(*|*|31|dec) - { - Playback(greetings/newyear); - } - else ifTime(*|*|1|jan) - { - Playback(greetings/newyear); - } - else ifTime(*|*|14|feb) - { - Playback(greetings/valentines); - } - else ifTime(*|*|17|mar) - { - Playback(greetings/stPat); - } - else ifTime(*|*|31|oct) - { - Playback(greetings/halloween); - } - else ifTime(*|mon|15-21|jan) - { - Playback(greetings/mlkDay); - } - else ifTime(*|thu|22-28|nov) - { - Playback(greetings/thanksgiving); - } - else ifTime(*|mon|25-31|may) - { - Playback(greetings/memorial); - } - else ifTime(*|mon|1-7|sep) - { - Playback(greetings/labor); - } - else ifTime(*|mon|15-21|feb) - { - Playback(greetings/president); - } - else ifTime(*|sun|8-14|may) - { - Playback(greetings/mothers); - } - else ifTime(*|sun|15-21|jun) - { - Playback(greetings/fathers); - } - else - { - Playback(greetings/hello); // None of the above? Just a plain hello will do - } - Background(murphy-homeline-intro1); // Script: Hello-- Welcome to the Murphy's! If you already know what - // option you want, you don't have to wait for this entire spiel-- just - // have at it. - // If you are calling because this number is on a list of some sort, dial 6. - // If you want Sonya, dial 1. - // If you want one of the kids, dial 2. - // If you want Steve, dial 3. - // to play with your introduction, dial 5. - // If we don't seem to be giving you the time of day, try 7. - // Have a good day! - - } - 1 => { // Sonya - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/2/greet.wav&); - &std-priv-exten(Zap/3r1&Zap/5r1,2,25,mtw,telemarket,telemarket); - goto s|loopback; - } - 2 => { // Kids - goto homeline-kids|s|begin; - } - 21 => { - Dial(IAX2/seaniax,20,T); - } - 3 => { // Steve - &std-priv-exten(Zap/6r3&Sip/murf,1,25,mpA(beep)tw,telemarket,telemarket); - goto s|loopback; - } - 4 => { // Voicemail - VoicemailMain(); - goto s|loopback; - } - 5 => { // play with intro - goto home-introduction|s|begin; - } - 6 => { // Telemarketers - goto telemarket|s|begin; - } - 7 => { // time of day, riddle - agi(tts-riddle.agi); - Background(gsm/what-time-it-is2); - SayUnixTime(); - goto s|loopback; - } - 792 => { // Page All - goto pageall|s|begin; - } - 793 => { // check the tone recognition - Read(zz,,0,,1,0); - SayDigits(${zz}); - } - t => { - Set(repeatcount=${repeatcount} + 1); - if( ${repeatcount} < 3 ) - { - goto s|loopback; // just loopback isn't enough - } - Hangup(); - } - i => { - Background(invalid); - goto s|loopback; - } - o => { - Congestion(); - } - fax => { - Dial(Zap/4); - } -} - -// Some comments -// Some more comments - -context pageall { - s => { - begin: - AGI(callall); - MeetMe(5555,dtqp); - MeetMeAdmin(5555,K); - Hangup(); - } - - h => { - begin: - MeetMeAdmin(5555,K); - Background(conf-muted); - Hangup(); - } -} - -// Some comments -// Some more comments - -context add-to-conference { - start => { - NoCDR(); - MeetMe(5555,dmqp); - } - h => { - Hangup(); - } -} - -context home-introduction { - s => { - begin: - Background(intro-options); // Script: To hear your Introduction, dial 1. - // to record a new introduction, dial 2. - // to return to the main menu, dial 3. - // to hear what this is all about, dial 4. - } - 1 => { - Playback(priv-callerintros/${CALLERID(num)}); - goto s|begin; - } - 2 => { - goto home-introduction-record|s|begin; - } - 3 => { - goto homeline|s|loopback; - } - 4 => { - Playback(intro-intro); // Script: - // This may seem a little strange, but it really is a neat - // thing, both for you and for us. I've taped a short introduction - // for many of the folks who normally call us. Using the Caller ID - // from each incoming call, the system plays the introduction - // for that phone number over a speaker, just as the call comes in. - // This helps the folks - // here in the house more quickly determine who is calling. - // and gets the right ones to gravitate to the phone. - // You can listen to, and record a new intro for your phone number - // using this menu. - goto s|begin; - } - t => { - goto s|begin; - } - i => { - Background(invalid); - goto s|begin; - } - o => { - goto s|begin; - } -} - -context home-introduction-record { - s => { - begin: - Background(intro-record-choices); // Script: - // If you want some advice about recording your - // introduction, dial 1. - // otherwise, dial 2, and introduce yourself after - // the beep. - } - 1 => { - Playback(intro-record); - // Your introduction should be short and sweet and crisp. - // Your introduction will be limited to 10 seconds. - // This is NOT meant to be a voice mail message, so - // please, don't say anything about why you are calling. - // After we are done making the recording, your introduction - // will be saved for playback. - // If you are the only person that would call from this number, - // please state your name. Otherwise, state your business - // or residence name instead. For instance, if you are - // friend of the family, say, Olie McPherson, and both - // you and your kids might call here a lot, you might - // say: "This is the distinguished Olie McPherson Residence!" - // If you are the only person calling, you might say this: - // "This is the illustrious Kermit McFrog! Pick up the Phone, someone!!" - // If you are calling from a business, you might pronounce a more sedate introduction,like, - // "Fritz from McDonalds calling.", or perhaps the more original introduction: - // "John, from the Park County Morgue. You stab 'em, we slab 'em!". - // Just one caution: the kids will hear what you record every time - // you call. So watch your language! - // I will begin recording after the tone. - // When you are done, hit the # key. Gather your thoughts and get - // ready. Remember, the # key will end the recording, and play back - // your intro. Good Luck, and Thank you!" - goto 2|begin; - } - 2 => { - begin: - Background(intro-start); - // OK, here we go! After the beep, please give your introduction. - Background(beep); - Record(priv-callerintros/${CALLERID(num)}:gsm,3); - Background(priv-callerintros/${CALLERID(num)}); - goto home-introduction|s|begin; - } - t => { - goto s|begin; - } - i => { - Background(invalid); - goto s|begin; - } - o => { - goto s|begin; - } -} - -context homeline-kids { - s => { - begin: - Background(murphy-homeline-kids); // Which Kid? 1=Sean, 2:Eric, 3:Ryan, 4:Kyle, 5:Amber, 6:Alex, 7:Neal - } - 1 => { // SEAN - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/3/greet.wav&); - // &std-priv-exten(Zap/3r2&Zap/5r2,3,35,mtw,telemarket,telemarket); - &std-priv-exten(IAX2/seaniax&Zap/5r2,3,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - } - 2 => { // ERIC - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/4/greet.wav&); - Voicemail(u4); - goto homeline|s|loopback; - - // SetMusicOnHold(erics); - // TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - // TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/4/greet.wav&); - // &std-priv-exten(Zap/3r2&Zap/5r2,4,35,mtw,telemarket,telemarket); - // goto homeline|s|loopback; - } - 3 => { // RYAN - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/5/greet.wav&); - &std-priv-exten(Zap/3r2&Zap/5r2,5,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - } - 4 => { // KYLE - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/6/greet.wav&); - &std-priv-exten(Zap/3r2&Zap/5r2,6,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - } - 5 => { - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/7/greet.wav&); - &std-priv-exten(Zap/3r2&Zap/5r2,7,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - - } - 6 => { - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/8/greet.wav&); - &std-priv-exten(Zap/3r2&Zap/5r2,8,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - } - 7 => { - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/9/greet.wav&); - &std-priv-exten(Zap/3r2&Zap/5r2,9,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - } - t => { - goto s|begin; - } - i => { - Background(invalid); - goto s|begin; - } - o => { - goto s|begin; - } -} - -context voipworkline { - s => { - begin: - Answer(); - TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&); - goto workline|s|loopback; - } - 7075679201 => { - Answer(); - TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&); - goto workline|s|loopback; - } -} - -context workline { - s => { - begin: - Answer(); - Wait(1); - Set(repeatcount=0); - Zapateller(nocallerid); -// PrivacyManager(); -// if( "${PRIVACYMGRSTATUS}" = "FAILED" ) -// { -// goto privacyManagerFailed|s|begin; -// } - &fillcidname(); - TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&); - loopback: - Background(greetings/greeting); //script: Hello - Background(murphy-office-intro1); //script: welcome to Steve Murphy's office. If you are dialing - // this number because it was on a calling list of any sort, dial 6. - // Otherwise, dial 1, and hopefully, you will reach Steve. - } - 1 => { - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/1/greet.wav&); - - &std-priv-exten(Zap/6&Sip/murf,1,30,mtw,telemarket,telemarket); - goto s|loopback; - } - 4 => { - VoicemailMain(); - goto s|loopback; - } - 6 => { - goto telemarket|s|begin; - } - 793 => { // check the tone recognition - Read(zz,,0,,1,0); - SayDigits(${zz}); - } - t => { - repeatcount=${repeatcount} + 1; - if( ${repeatcount} < 3 ) - { - goto s|loopback; // just loopback isn't enough - } - Hangup(); - } - i => { - Background(invalid); - goto s|loopback; - } - o => { - Congestion(); - } - fax => { - Answer(); - Dial(Zap/4); - } -} - -context dialFWD { - ignorepat => 8; - ignorepat => 9; - _83. => { - Set(CALLERID(name)=${FWDCIDNAME}); - Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:2},60,r); - Congestion(); - } - _82NXX => { - Set(CALLERID(name)=${FWDCIDNAME}); - Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:2},60,r); - Congestion(); - } - _92NXX => { - Set(CALLERID(name)=${FWDCIDNAME}); - Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:2},60,r); - Congestion(); - } -} - -context dialiaxtel { - ignorepat => 8; - ignorepat => 9; - _81700NXXXXXX => { - Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel); - } - _81800NXXXXXX => { - Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel); - } - _91700NXXXXXX => { - Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel); - } - _91800NXXXXXX => { - Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel); - } - -} - -context dialgoiax { - ignorepat => 9; - _93. => { - Set(CALLERID(name)="Joe Worker"); - Dial(IAX2/878201007658:stickyfinger295@server1.goiax.com/${EXTEN:2},60,r); - Congestion(); - } - -} - -context homefirst { - ignorepat => 9; - _91NXXNXXXXXX => { - &ciddial(${EXTEN:1},${EXTEN:2},30,TW,Zap/1); - } - _9754XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9574XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9202XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9219XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9254XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9716XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9NXXXXXX => { - &ciddial(1707${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9011. => { - &ciddial(${EXTEN:1},${EXTEN:1},30,TW,Zap/1); - } - _9911 => { - Dial(Zap/1/911,30,T); - } - _9411 => { - Dial(Zap/1/411,30,T); - } -} - -context workfirst { - ignorepat => 9; - _91NXXNXXXXXX => { - &ciddial2(${EXTEN:1},${EXTEN:2},30,TW,Zap/1); - } - _9754XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9574XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9202XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9219XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9254XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9716XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9NXXXXXX => { - &ciddial2(1707${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9911 => { - Dial(Zap/1/911,30,T); - } - _9411 => { - Dial(Zap/1/411,30,T); - } -} - -context force_cell { - ignorepat => 8; - _81NXXNXXXXXX => { - &ciddial(${EXTEN:1}#,${EXTEN:2},30,TW,Zap/2); - } - _8754XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8574XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8202XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8219XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8254XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8716XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8NXXXXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8911 => { - Dial(Zap/1/911|30|T); - } - _8411 => { - Dial(Zap/1/411|30|T); - } -} - -context force_home { - ignorepat => 8; - _81NXXNXXXXXX => { - &ciddial3(${EXTEN:1}#,${EXTEN:2},30,TW,Zap/1); - } - _8754XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8574XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8202XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8219XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8254XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8716XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8NXXXXXX => { - &ciddial3(1707${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8911 => { - Dial(Zap/1/911|30|T); - } - _8411 => { - Dial(Zap/1/411|30|T); - } -} - -context homeext { - ignorepat => 8; - ignorepat => 9; - includes { - parkedcalls; - homefirst; - force_cell; - } - s => { - loopback: - Wait(0); - } - 1 => { - &std-priv-exten(Zap/3&Zap/5,2,35,mtw,telemarket,telemarket); - goto s|loopback; - } - 2 => { - &std-priv-exten(Zap/6&Zap/5,1,35,mpA(beep3)Tt,telemarket,telemarket); - goto s|loopback; - } - 4 => { - VoicemailMain(); - } - 5 => { - Record(recording:gsm); - Background(recording); - } - 6 => { - Background(recording); - } - 760 => { - DateTime(); - goto s|loopback; - } - 761 => { - Record(announcement:gsm); - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/announcement.gsm&); - goto s|loopback; - } - 762 => { - agi(tts-riddle.agi); - Background(gsm/what-time-it-is2); - SayUnixTime(); - goto s|loopback; - } - 763 => { - Set(CALLERID(num)=); - Dial(Zap/6r3,35,mptA(beep3)); //results: it should ALWAYS ask for an intro; the intro should not be left behind - Hangup(); - } - 764 => { - Set(CALLERID(num)=); - Dial(Zap/6r3,35,mptnA(beep3)); //results: Don't save the intro; shouldn't anyway if no callerid - Hangup(); - } - 765 => { - Set(CALLERID(num)=); - Dial(Zap/6r3,35,mptNA(beep3)); //results: Don't screen if there's CALLERID; it should screen the call. - Hangup(); - } - 766 => { - Dial(Zap/6r3,35,mptNA(beep3)); //results: Don't screen if there's CALLERID; it should screen the call. - Hangup(); - } - 767 => { - Dial(Zap/6r3,35,mptnA(beep3)); //results: Don't save the intro; the interesting case, because callerID should be present. - Hangup(); - } - 769 => { - Playtones(dial); - Wait(2); - Playtones(busy); - Wait(2); - Playtones(ring); - Wait(2); - Playtones(congestion); - Wait(2); - Playtones(callwaiting); - Wait(2); - Playtones(dialrecall); - Wait(2); - Playtones(record); - Wait(2); - Playtones(info); - Wait(5); - Hangup(); - } - 790 => { - MeetMe(790,p); - } - 792 => { - goto pageall|s|begin; - } - 795 => { - AGI(wakeup.agi);Congestion(); - } - 544716 => { // Incoming call from FWD - TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&); - goto s|loopback; - } - - i => { - Background(invalid); - goto s|loopback; - } - o => { - goto s|loopback; - } - t => { - Congestion(); - } -} - -context fromvmhome { - 1 => { - Dial(Zap/6&Sip/murf|20|Tt); - } - 2 => { - Dial(Zap/3&Zap/5|20|Tt); - } - _707202XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707219XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707254XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707716XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707754XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707574XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _NXXNXXXXXX => { - &ciddial(1${EXTEN},${EXTEN},30,TW,Zap/1); - } - _1NXXNXXXXXX => { // HAND DIALING - &ciddial(${EXTEN},${EXTEN:1},30,TW,Zap/1); - } - _754XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _574XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _NXXXXXX => { - &ciddial(1707${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _911 => { - &ciddial(911,911,30,TW,Zap/1); - } - _411 => { - &ciddial(411,411,30,TW,Zap/1); - } -} - -context fromvmwork { - 1 => { - Dial(Zap/6&Sip/murf|20|Tt); - } - 2 => { - Dial(Zap/3&Zap/5|20|Tt); - } - _707202XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707219XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707254XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707716XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707754XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707574XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _NXXNXXXXXX => { - &ciddial(1${EXTEN},${EXTEN},30,TW,Zap/1); - } - _1NXXNXXXXXX => { // HAND DIALING - &ciddial(${EXTEN},${EXTEN:1},30,TW,Zap/1); - } - _754XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _574XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _NXXXXXX => { - &ciddial(1707${EXTEN},707${EXTEN},30,TW,Zap/1); - } - 911 => { - &ciddial(911,911,30,TW,Zap/1); - } - 411 => { - &ciddial(411,411,30,TW,Zap/1); - } -} - -context fromSeanUniden { - includes - { - parkedcalls; - } - 21 => { - Dial(IAX2/seaniax,20,T); - } - _707202XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707219XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707254XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707716XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707754XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707574XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _NXXNXXXXXX => { - &ciddial(1${EXTEN},${EXTEN},30,TW,Zap/1); - } - _1NXXNXXXXXX => { - &ciddial(${EXTEN},${EXTEN:1},30,TW,Zap/1); - } - _754XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _574XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _NXXXXXX => { - &ciddial(1707${EXTEN},707${EXTEN},30,TW,Zap/1); - } - 911 => { - &ciddial(911,911,30,TW,Zap/1); - } - 411 => { - &ciddial(411,411,30,TW,Zap/1); - } -} - -context workext { - ignorepat => 8; - ignorepat => 9; - includes { - parkedcalls; - workfirst; - force_home; - dialFWD; - dialiaxtel; - dialgoiax; - } - s => { - loopback: - Wait(0); - } - 1 => { - Dial(Zap/3&Zap/5,20,tT); - } - 2 => { - Dial(Zap/5&Zap/6,20,tT); - } - 21 => { - Dial(IAX2/seaniax,20,T); - } - 22 => { - Set(CALLERID(num)=1234567890); - Set(CALLERID(name)=TestCaller); - Dial(Zap/5,20,mP()A(beep)tw); - NoOp(here is dialstatus: ${DIALSTATUS}...); - goto s|loopback; - } - 4 => { - VoicemailMain(); - goto s|loopback; - } - 5 => { - Record(recording:gsm); - Background(recording); - } - 6 => { - ZapBarge(); - } - 760 => { - DateTime(); - goto s|loopback; - } - 761 => { - ZapBarge(); - goto s|loopback; - } - 765 => { - Playback(demo-echotest); - Echo(); - Playback(demo-echodone); - goto s|loopback; - } - 766 => { - Festival(The other thing to watch is neuro-electronics: the ability to interface technology with our neural system: My wife: Sigrid: has had a cochlear implant since 1996. This once profoundly deaf person now uses the phone: recognizes accents: and listens to movies and recorded books.); - goto s|loopback; - } - 767 => { - agi(tts-riddle.agi); - Background(gsm/what-time-it-is2); - SayUnixTime(); - goto s|loopback; - } - 768 => { - agi(tts-computer.agi); - } - 771 => { - eagi(eagi-test); - agi(my-agi-test); - } - 772 => { - agi(wakeup.agi); - } - 775 => { - if( ${EXTEN}=${EXTEN} ) - { - BackGround(digits/1); - } - else - { - BackGround(digits/0); - } - if( ${EXTEN}=${LANGUAGE} ) - { - BackGround(digits/1); - } - else - { - BackGround(digits/0); - } - BackGround(digits/2); - } - 776 => { - Set(TEST=00359889811777); - if( ${TEST}= 00359889811777 ) - { - BackGround(digits/1); - } - else - { - BackGround(digits/0); - } - if( ${TEST}= 00359889811888 ) - { - BackGround(digits/1); - } - else - { - BackGround(digits/0); - } - Hangup(); - } - 790 => { - MeetMe(790,p); - } - 792 => { - goto pageall|s|begin; - } - 793 => { - #include "include1.ael2" - } - 795 => { - AGI(wakeup.agi); - Congestion(); - } - 797 => { - Set(CONFCIDNA=${CALLERID(name)}); - Set(CONFCIDNU=${CALLERID(num)}); - AGI(callall); - AGI(submit-announce.agi); - Hangup(); - } -} - -context wakeup { - 3 => { - Dial(Zap/3|30); - } - 4 => { - Dial(Zap/4|30); - - } - 5 => { - Dial(Zap/5|30); - - } - 6 => { - Dial(Zap/6|30); - - } - 99 => { - Dial(IAX2/murfiaxphone|30); - } - 97 => { - Dial(IAX2/ryaniax|30); - } - 94 => { - Dial(IAX2/seaniax|30); - } -} - -context announce-all { - s => { - begin: - MeetMe(5555,dtqp); - MeetMeAdmin(5555,K); - Hangup(); - } - h => { - MeetMeAdmin(5555,K); - Hangup(); - } -} - -// now include the telemarketer torture scripts! - -#include "telemarket_torture.ael2" - - diff --git a/trunk/pbx/ael/ael-test/ael-test3/include1.ael2 b/trunk/pbx/ael/ael-test/ael-test3/include1.ael2 deleted file mode 100644 index 80c562cb2..000000000 --- a/trunk/pbx/ael/ael-test/ael-test3/include1.ael2 +++ /dev/null @@ -1,3 +0,0 @@ - NoOp(Hello, this is included from include1.ael2); - #include "include2.ael2" - diff --git a/trunk/pbx/ael/ael-test/ael-test3/include2.ael2 b/trunk/pbx/ael/ael-test/ael-test3/include2.ael2 deleted file mode 100644 index 8d892fb0c..000000000 --- a/trunk/pbx/ael/ael-test/ael-test3/include2.ael2 +++ /dev/null @@ -1,4 +0,0 @@ - NoOp(This was included from include2.ael2); - #include "include3.ael2" - #include "include4.ael2" - diff --git a/trunk/pbx/ael/ael-test/ael-test3/include3.ael2 b/trunk/pbx/ael/ael-test/ael-test3/include3.ael2 deleted file mode 100644 index 3c6c1e3dd..000000000 --- a/trunk/pbx/ael/ael-test/ael-test3/include3.ael2 +++ /dev/null @@ -1,2 +0,0 @@ - NoOp(This is include3.ael2!); - #include "include5.ael2" diff --git a/trunk/pbx/ael/ael-test/ael-test3/include4.ael2 b/trunk/pbx/ael/ael-test/ael-test3/include4.ael2 deleted file mode 100644 index 7d3703a5e..000000000 --- a/trunk/pbx/ael/ael-test/ael-test3/include4.ael2 +++ /dev/null @@ -1,2 +0,0 @@ - NoOp(This is include4.ael2! Isn't it cool!?!?!?!); - NoOp(4 doesn't include anything); diff --git a/trunk/pbx/ael/ael-test/ael-test3/include5.ael2 b/trunk/pbx/ael/ael-test/ael-test3/include5.ael2 deleted file mode 100644 index 0e18983ef..000000000 --- a/trunk/pbx/ael/ael-test/ael-test3/include5.ael2 +++ /dev/null @@ -1 +0,0 @@ - NoOp(Include5.ael2 doesn't include anything, either!); diff --git a/trunk/pbx/ael/ael-test/ael-test3/telemarket_torture.ael2 b/trunk/pbx/ael/ael-test/ael-test3/telemarket_torture.ael2 deleted file mode 100755 index ebd8e9f2f..000000000 --- a/trunk/pbx/ael/ael-test/ael-test3/telemarket_torture.ael2 +++ /dev/null @@ -1,812 +0,0 @@ -// -// AN EXCERSIZE IN BAD DIALPLAN DESIGN -// (What better testing ground than on telemarketers?) -// - - -// BAD DESIGN: long, boring introductions followed by long, drawn out menus of choices. -// if they survive to the last option, how will they remember the choices? -// - -// BAD DESIGN: Amateur Recording. Poor voice quality, too quiet. -// Also, the announcer is definitely not vocally gifted. -// Also, the long pauses and clicks between the intro -// and menu choices might lead some to think that -// the announcements are over, and hang up. Too bad! - -// WORSE DESIGN: Instead of using the Background application, the Playback -// application is used. After taking so much time and trouble -// to record this material, the caller must listen and enjoy -// every syllable before they can make an option choice. None -// of that interrupting with a choice. We want them to savour -// every word! - -// GOOD/BAD, ER INSIDIOUS -- DANGLE A CARROT-- GIVE THE LISTENER A GOOD REASON TO -// HANG ON AND VOLUNTARILY LISTEN TO THE TORTURE. -// BUT, DON'T MAKE PROMISES YOU WON'T KEEP! - - -context telemarket { - s => { - begin: - Playback(telemarketer-intro); // ; Script: - // Due to the extremely high volume of calls from everything from telemarketers - // to Septic System Bacteria vendors, we are asking all such organizations - // to remove this number from their call list, or as need be, to add this - // number to their No-Call list, whichever is relevent. - - // [THE CARROT:] - // We HAVE made some exceptions, and if you wish to see if your organization - // has been exempted, please listen to and follow the following prompts. - // - // Otherwise, please Cease calling this number! - // - Playback(telemarketer-choices); - // if you represent a charitable organization, please dial 1, - // if you represent a political organization, please dial 2. - // if you represent a polling company, please dial 3, - // if you represent a market research organization, please dial 4. - // if you represent a magazine or newsletter, please dial 5. - // if you represent a commercial organization, please dial 6. - } - 1 => goto telemarket-charity|s|begin; - 2 => goto telemarket-political|s|begin; - 3 => goto telemarket-pollster|s|begin; - 4 => goto telemarket-research|s|begin; - 5 => goto telemarket-magazine|s|begin; - 6 => goto telemarket-commercial|s|begin; - 7 => goto telemarket-other|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - -context telemarket-charity { - s => { - begin: - Playback(telemark-charity-intro); - // We have contributed generously to many worthy causes in the past, and will - // continue to do so in the future. But we suspect that such organizatons - // have sold our name and phone number to each other until we are now hounded - // day and night by literally hundreds of such organizations. - // Enough is Enough! - // - // If we have contributed to your cause in the past, we may, perhaps, be disposed to - // do so in the future, at our option, - // we give no pledges nor make any commitments here. - // Send us material via the post if you feel this necessary - // but do not even consider email. Any email or further phone calls from your organization - // in the future, will be considered an act of aggression, and we will - // blacklist your organization for the rest of our natural lives. - // - // To see if your organization is exempt from these prohibitions, please - // comply with the following options. - Playback(telemark-charity-choices); - // If your organization is disease or genetic defect related, dial 1, - // If your organization is handicap related, dial 2. - // If your organization is a police or fireman or other similar support entity, please dial 3. - // If your organization is a grade school to high school related - // fund raiser or other type of activity, please dial 4. - // If your organization is a college or univerity or alumnis organization, please dial 5. - // If your organization is animal rights or ecology related organization, please dial 6. - // If your organization is a political action or candidate support related, please dial 7. - // If your organization is a substance abuse related organization or cause, please dial 8. - // And any other charity or tax exempt organization should dial 9. - } - 1 => goto telemarket-char-disease|s|begin; - 2 => goto telemarket-char-handicap|s|begin; - 3 => goto telemarket-char-police|s|begin; - 4 => goto telemarket-char-school|s|begin; - 5 => goto telemarket-char-college|s|begin; - 6 => goto telemarket-char-animal|s|begin; - 7 => goto telemarket-char-candidate|s|begin; - 8 => goto telemarket-char-abuse|s|begin; - 9 => goto telemarket-char-other|s|begin; -// BAD DESIGN: referring all timeouts,invalid choices, etc, back to the root of the menu tree will frustrate users no end! -// WORSE DESIGN: How about having the user have to push a button to repeat the current menu? When a time out could just -// automatically do it for the user? - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - -context telemarket-char-disease { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-handicap { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-police { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-school { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-college { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-animal { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-candidate { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-abuse { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-other { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-sorry { - s => { - begin: - Playback(telemarket-sorry); - // Sorry -- your organization is not exempt. Please stop calling us. - // Thank you. goodbye. - Hangup(); - } -} - - -// BAD DESIGN: Hanging up on your audience, no matter what the outcome, is not a nice thing to do! - -context telemarket-exception { - s => { - begin: - Playback(telemarket-success); - // Congratulations. Your organization IS exempt. Please call us back, - // but this time, just act like a normal caller. Thank you. Goodbye. - Hangup(); - } -} - - -// BAD DESIGN: Making long cascading menu choices is a nasty thing to do to callers! -// BAD DESIGN: Putting the most frequently encountered items at the end of a list is also a nasty thing to do! - - -// GOOD DESIGN: All rejection notices use a single context. All Acceptance also. To change a rejection to an -// acceptance, just change the reference from telemarket-sorry to telemarket-exception - - -context telemarket-political { - s => { - begin: - Playback(telemark-polit-intro); - // To see if your organization is exempt from our prohibitions, - // please follow the following prompts. - // please note that they are not in alphabetical order, and you will have to - // give them your full attention. - Playback(telemark-polit-choices); - // if You represent the America First Party, dial 1. - // if You represent the American Party, dial 2. - // if You represent the American Heritage Party, dial 3. - // if You represent the American Independent Party, dial 4. - // if You represent the American Nazi Party, dial 5. - // if You represent the Pot Party, dial 6. - // if You represent the American Reform Party, dial 7. - // if You represent the Christian Falenqist Party of America, dial 8. - // all others, please dial 9. - } - 1 => goto telemarket-poli-Am1st|s|begin; - 2 => goto telemarket-poli-American|s|begin; - 3 => goto telemarket-poli-AmHer|s|begin; - 4 => goto telemarket-poli-AmInd|s|begin; - 5 => goto telemarket-poli-AmNaz|s|begin; - 6 => goto telemarket-poli-Pot|s|begin; - 7 => goto telemarket-poli-AmRef|s|begin; - 8 => goto telemarket-poli-CFP|s|begin; - 9 => goto telemarket-political2|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - -context telemarket-political2 { - s => { - begin: - Playback(telemark-politx-intro); - // Thank you for your patience, and I congratulate you for your persistence. - // Just a few more options! - // - Playback(telemark-polit2-choices); - // if You represent the Communist Party USA, dial 1. - // if You represent the Constitution Party, dial 2. - // if You represent the Family Values Party, dial 3. - // if You represent the Freedom Socialist Party, dial 4. - // if You represent the Grass Roots Party, dial 5. - // if You represent the Green Party, dial 6. - // if You represent the Greens Party, dial 7. - // if You represent the Independence Party, dial 8. - // all others, goto 9. - } - 1 => goto telemarket-poli-Communist|s|begin; - 2 => goto telemarket-poli-Constit|s|begin; - 3 => goto telemarket-poli-FamVal|s|begin; - 4 => goto telemarket-poli-FreedSoc|s|begin; - 5 => goto telemarket-poli-Grassroot|s|begin; - 6 => goto telemarket-poli-Green|s|begin; - 7 => goto telemarket-poli-Greens|s|begin; - 8 => goto telemarket-poli-Independence|s|begin; - 9 => goto telemarket-political3|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - -context telemarket-political3 { - s => { - begin: - Playback(telemark-politx-intro); - Playback(telemark-polit3-choices); - // if You represent the Independant American Party, dial 1. - // if You represent the Labor Party, dial 2. - // if You represent the Libertarian Party, dial 3. - // if You represent the Light Party, dial 4. - // if You represent the Natural Law Party, dial 5. - // if You represent the New Party, dial 6. - // if You represent the New Union Party, dial 7. - // if You represent the Peace and Freedom Party, dial 8. - // all others, hang on, dial 9. - } - 1 => goto telemarket-poli-IndAm|s|begin; - 2 => goto telemarket-poli-Labor|s|begin; - 3 => goto telemarket-poli-Liber|s|begin; - 4 => goto telemarket-poli-Light|s|begin; - 5 => goto telemarket-poli-NatLaw|s|begin; - 6 => goto telemarket-poli-New|s|begin; - 7 => goto telemarket-poli-NewUn|s|begin; - 8 => goto telemarket-poli-PeaceFree|s|begin; - 9 => goto telemarket-political4|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-political4 { - s => { - begin: - Playback(telemark-politx-intro); - Playback(telemark-polit4-choices); - // if You represent the Prohibition Party, dial 1. - // if You represent the Reform Party, dial 2. - // if You represent the Revolution , dial 3. - // if You represent the Socialist Party USA, dial 4. - // if You represent the Socialist Action Party, dial 5. - // if You represent the Socialist Equality Party, dial 6. - // if You represent the Socialist Labor Party, dial 7. - // if You represent the Socialist Workers Party, dial 8. - // all others, hang on, and dial 9. - } - 1 => goto telemarket-poli-Prohib|s|begin; - 2 => goto telemarket-poli-Ref|s|begin; - 3 => goto telemarket-poli-Revol|s|begin; - 4 => goto telemarket-poli-SocPart|s|begin; - 5 => goto telemarket-poli-SocAct|s|begin; - 6 => goto telemarket-poli-SocEq|s|begin; - 7 => goto telemarket-poli-SocLab|s|begin; - 8 => goto telemarket-poli-SocWork|s|begin; - 9 => goto telemarket-political5|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-political5 { - s => { - begin: - Playback(telemark-politx-intro); - Playback(telemark-polit5-choices); - // if You represent the Southern Party, dial 1. - // if You represent the Southern Independence Party, dial 2. - // if You represent the US Pacifist Party, dial 3. - // if You represent the We the People Party, dial 4. - // if You represent the Workers World Party, dial 5. - // if You represent the Democratic Party, dial 6. - // if You represent the Republican Party, dial 7. - // all others, may dial 8. - } - 1 => goto telemarket-poli-South|s|begin; - 2 => goto telemarket-poli-SoInd|s|begin; - 3 => goto telemarket-poli-USPac|s|begin; - 4 => goto telemarket-poli-WTP|s|begin; - 5 => goto telemarket-poli-WWP|s|begin; - 6 => goto telemarket-poli-Democrat|s|begin; - 7 => goto telemarket-poli-Repub|s|begin; - 8 => goto telemarket-poli-other|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-poli-other { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Repub { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Democrat { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-WWP { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-WTP { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-USPac { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SoInd { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-South { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SocWork { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SocLab { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SocEq { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SocAct { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SocPart { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Revol { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Ref { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Prohib { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-PeaceFree { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-NewUn { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-New { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-NatLaw { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Light { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Liber { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Labor { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-IndAm { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Independence { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Greens { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Green { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Grassroot { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-FreedSoc { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-FamVal { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Constit { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Communist { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-CFP { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-AmRef { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -// BAD DESIGN: Putting in infinite loops in the menus, whether by design or mistake is not nice! -context telemarket-poli-Pot { - s => { - begin: - goto telemarket-political|s|begin; // will the Pot Party Guys even notice an infinite loop? - } -} - -context telemarket-poli-AmNaz { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-AmInd { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-AmHer { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-American { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Am1st { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - - -context telemarket-pollster { - s => { - begin: - Playback(telemark-poll-intro); - // I'm sorry-- We are just not available for doing any polling at the moment. So, - // please remove us from your list. - goto telemarket-sorry|s|begin; - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-research { - s => { - begin: - Playback(telemark-research-intro); - // I'd like to say I'd love to help you with your market survey, but that would be a complete - // and total lie. I am not interested in helping you with Market Surveys. - // - // Please remove me from your call list. It just doesn't pay enough. But Thank you. - goto telemarket-sorry|s|begin; - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-magazine { - s => { - begin: - Playback(telemark-mag-choices); - // If you are calling to see if I would like a NEW free subscription - // to your magazine or newsletter, please dial 1. - // If you are calling to see if I want to Renew an existing subscription, please dial 2. - // If you are representing some publisher, and want my opinion about something, or are doing - // some kind of survey, please dial 3. - // If you are calling to verify that some previous caller actually called me, and the - // verification information is correct, please dial 4. - // and if your call purpose doesn't match any of the above, please dial 5. - } - 1 => goto telemark-mag-new|s|begin; - 2 => goto telemark-mag-renew|s|begin; - 3 => goto telemark-mag-survey|s|begin; - 4 => goto telemark-mag-verify|s|begin; - 5 => goto telemark-mag-other|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemark-mag-new { - s => { - begin: - Playback(telemark-mag-new); - // I'm sorry, I'm maxed out, and the answer is NO. - // If you really think I'd LOVE to add your publication to the pile I already get, - // Send something via the post. Don't call me. - // Thank you. bye. - Hangup(); - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemark-mag-renew { - s => { - begin: - Playback(telemark-mag-renew); - // So, you want to see if I want to Renew, do you? The answer is most likely "YES". - // - // But, I will not answer a long list of questions over the phone. Send such - // categorization info via the post, and stop bothering me over the phone, - // if this is what you want. - // Do you need verification information? Normally I opt out of such nonsense, if possible. - // If not, use whatever of the following you can: - // My birth month is October. - // My birthplace is Kigali, in Rwanda, in Afica. - // My eye color is orange. - // All of these are wonderfully false, but I use them regularly for such purposes. Thank you. - Hangup(); - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemark-mag-survey { - s => { - begin: - Playback(telemark-mag-survey); - // Sorry, I don't have time to answer survey or opinion questions. Find someone - // else to help build your marketing database, I guess. Good Luck. - Hangup(); - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemark-mag-verify { - s => { - begin: - Playback(telemark-mag-verify); - // If you are calling to verify that your own agents aren't ripping you off, - // sorry, I can't help you. I opt out whenever I can, mainly because I'm not - // paid enough for this kind of thing. I always lie, and I can't remember - // what I might have said. Sorry. Goodbye. - Hangup(); - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemark-mag-other { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - - - -// BAD DESIGN: Is it entrapment, when you lure telemarketers to reveal their contact information, -// Just so you can report them to the FTC/FCC? If it is, isn't it unethical for them -// to hide their CID (via Anonymous, usually), to hide their identities from the public? - -// BTW -- What telemarketer would be stupid enough to fall for this? I'll bet not a single one! -// For that matter, what telemarketer will be stupid enough to even enter any of this? I'll bet not a single one! -// (but it was fun messing around). - -context telemarket-commercial { - s => { - begin: - Playback(telemark-comm-intro); // Script: Please leave your name, organization, and phone number, plus - // a short description of the purpose of your call, at the prompt. - // We will do our best to respond to your call! And, in the mean time, - // do not forget to add us to your no-call list! - Voicemail(u82); - goto telemarket-sorry|s|begin; - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-other { - s => { - begin: - Playback(telemark-other-intro); - // Please review the previous menu options, and see if you really don't - // fit in one of the previous categories. - // If you do not, go ahead, and call me again, and let me know what category - // I should have included in the above list. I appreciate this. Thank you much! - Hangup(); - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} diff --git a/trunk/pbx/ael/ael-test/ael-test4/apptest.ael2 b/trunk/pbx/ael/ael-test/ael-test4/apptest.ael2 deleted file mode 100644 index c477d8531..000000000 --- a/trunk/pbx/ael/ael-test/ael-test4/apptest.ael2 +++ /dev/null @@ -1,146 +0,0 @@ -// this is a quick test to see how many of the apps we can spot j options in -// include this in a macro or extension -// at this moment, there are 18 apps that accept the j option. - - AddQueueMember(zork,iface,20,j); - ADSIProg(sfile); - AgentCallbackLogin(agent,s,30@cont); - AgentLogin(agent,s); - AgentMonitorOutgoing(dcn); - AGI(whatever); - AlarmReceiver(); - Answer(2); - AppendCDRUserField(value); - Authenticate(pword,adjmr); - BackGround(filename,snm,eng); - BackgroundDetect(filename,20,2,10); - Busy(10); - ChangeMonitor(fnamebase); - ChanIsAvail(Zap/5,sj); - ChanSpy(prefix,bg()qrv); - Congestion(5); - ControlPlayback(filename,10,6,4,0,5,7,j); - DateTime(unixtime,tz,fmt); - DBdel(fam/key); - DBdeltree(fam); - DeadAGI(command); - Dial(zap/1,45,A()CdD()fgG()hHjL()m()M()nNoprS()tTwW); - Dictate(basedir); - Directory(cont,dcont,f); - DISA(68986869876,context); - DumpChan(verblev); - DUNDiLookup(90709780978,context,bj); - EAGI(command); - Echo(); - EndWhile(); - Exec(appname,args); - ExecIf(expr,app,data); - ExecIfTime(*,*,*,*,appname); - ExternalIVR(command,arg1); - Festival(text); - Flash(); - ForkCDR(v); - GetCPEID(); - Gosub(cont,exten,priority); - GosubIf(cond?label); - Goto(cont,exten,prior); - GotoIf(cond?t:f); - GotoIfTime(*,*,*,*?cont,ext,prior); - Hangup(); - HasNewVoicemail(vmbox,var,j); - HasVoicemail(vmbox,var,j); - IAX2Provision(template); - ICES(xmlconfig); - ImportVar(nevar@chann,var); - Log(NOTICE,message); - LookupBlacklist(j); - LookupCIDName(); - Macro(macro,arg1); - MacroExit(); - MacroIf(expr?etc); - MailboxExists(mbox@cont,j); - Math(v,2+2); - MeetMe(5555,aAbcdDeimMpPqrstTovwxX); - MeetMeAdmin(5555,e,user); - MeetMeCount(5555,var); - Milliwatt(); - MixMonitor(filename,abv()V()W(),command); - Monitor(file.fmt,base,mb); - MP3Player(location); - MusicOnHold(class); - NBScat(); - NoCDR(); - NoOp(ignored); - Page(Zap/1,dq); - Park(exten); - ParkAndAnnounce(template,5,238,retcont); - ParkedCall(exten); - PauseQueueMember(queue,zap,j); - Pickup(ext@cont); - Playback(file,j); - PlayTones(arg); - PrivacyManager(3,4,j); - Progress(); - Queue(queuename,dhHnrtTwW,http://www.where.what,over,5); - Random(30,cont,ext,pri); - Read(var,fname,10,skip,2,5); - ReadFile(var=file,10); - RealTime(fam,2,val,prefix); - RealTimeUpdate(fam,2,val,2,newval); - Record(file,2,10,anqst); - RemoveQueueMember(queuename,iface,j); - ResetCDR(wav); - RetryDial(annound,4,2); - Return(); - Ringing(); - RxFAX(fname,caller); - SayAlpha(string); - SayDigits(string); - SayNumber(digits); - SayPhonetic(string); - SayUnixTime(unixtime,tz,fmt); - SendDTMF(digits,10); - SendImage(filename); - SendText(text,j); - SendURL(URL); - Set(a=b); - SetAMAFlags(); - SetCallerID(clid,a); - SetCallerPres(allowed_passed_screen); - SetCDRUserField(value); - SetGlobalVar(var=val); - SetMusicOnHold(class); - SetTransferCapability(SPEECH); - SIPAddHeader(header); - SIPDtmfMode(inband,info,rfc); - SIPGetHeader(var@headername); - SMS(name); - SoftHangup(zap/1,a); - StackPop(); - StartMusicOnHold(class); - StopMonitor(); - StopMusicOnHold(); - StopPlayTones(); - System(command); - TestClient(testid); - TestServer(); - Transfer(zap/1,j); - TrySystem(command); - TxFAX(filename,caller,debug); - UnpauseQueueMember(queuename,iface,j); - UserEvent(eventanme,body); - Verbose(5,message); - VMAuthenticate(mailbox@cont,s); - VoiceMail(mailbox@cont,bg()suj); - VoiceMailMain(mailbox@cont,pg()s); - Wait(2); - WaitExten(3,m()); - WaitForRing(2); - WaitForSilence(2,y); - WaitMusicOnHold(2); - While(expr); - Zapateller(answer,5); - ZapBarge(channel); - ZapRAS(arg); - ZapScan(group); - ZapSendKeypadFacility(); diff --git a/trunk/pbx/ael/ael-test/ael-test4/extensions.ael b/trunk/pbx/ael/ael-test/ael-test4/extensions.ael deleted file mode 100644 index 838aa2489..000000000 --- a/trunk/pbx/ael/ael-test/ael-test4/extensions.ael +++ /dev/null @@ -1,8 +0,0 @@ -context test1 -{ - test2 => - { - #include "apptest.ael2"; - } -} - diff --git a/trunk/pbx/ael/ael-test/ael-test5/extensions.ael b/trunk/pbx/ael/ael-test/ael-test5/extensions.ael deleted file mode 100644 index e4f703b86..000000000 --- a/trunk/pbx/ael/ael-test/ael-test5/extensions.ael +++ /dev/null @@ -1,838 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////// -// Helpdesk Queue - -context hd-queue { - s => { - NoOp(Add a background sound to tell the user their options); - Queue(helpdesk|t); - NoOp(Put in options to apologize and send user to voicemail); - }; - - 0 => goto default|0|1; - 1 => { - Dial(u41950@ixtlchochitl.zvbwu.edu); - Congestion(10); - Hangup; - }; -}; - - -context l903-calling { - _9903NXXXXXX => { - Realtime(l903_ext,exchange,${EXTEN:4:3},l903_); - if ("${l903_exchange}foo" = "foo") { - Playback(num-outside-area); - SayDigits(1); - Playback(and-area-code); - Playback(before-the-number); - Hangup; - }; - &dialout(${EXTEN}); - Congestion(10); - Hangup; - }; -}; -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from houston.conf -// Converted the extension list to the database - -context houston-calling { - _9713NXXXXXX => { - Realtime(hou_713_ext,exchange,${EXTEN:4:3},hou_713_); - if ("${hou_713_exchange}foo" = "foo") { - Playback(num-outside-area); - SayDigits(1); - Playback(and-area-code); - Playback(before-the-number); - Hangup; - }; - &dialout(${EXTEN}); - Congestion(10); - Hangup; - }; - - _9281NXXXXXX => { - Realtime(hou_281_ext,exchange,${EXTEN:4:3},hou_281_); - if ("${hou_281_exchange}foo" = "foo") { - Playback(num-outside-area); - SayDigits(1); - Playback(and-area-code); - Playback(before-the-number); - Hangup; - }; - &dialout(${EXTEN}); - Congestion(10); - Hangup; - }; - - _9832NXXXXXX => { - Realtime(hou_832_ext,exchange,${EXTEN:4:3},hou_832_); - if ("${hou_832_exchange}foo" = "foo") { - Playback(num-outside-area); - SayDigits(1); - Playback(and-area-code); - Playback(before-the-number); - Hangup; - }; - &dialout(${EXTEN}); - Congestion(10); - Hangup; - }; -}; - - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from huntsville.conf -// Converted the extension list to the database - -context huntsville-calling { - _9NXXXXXX => { - Realtime(hv_ext,exchange,${EXTEN:1:3},hv_); - if ("${hv_exchange}foo" = "foo") { - Playback(num-outside-area); - SayDigits(1); - Playback(and-area-code); - Playback(before-the-number); - Hangup; - }; - &dialout(${EXTEN}); - Congestion(10); - Hangup; - }; - - _NXXXXXX => { - NoOp(Stripping last four to see what extension we're dialing); - Set(LAST4=${EXTEN:3}); - StripLSD(4); - }; - - i => Playback(pbx-invalid); - h => Hangup; -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from macros.conf - -macro dialout( number ) { - Realtime(call_info,exten,${CALLERIDNUM:5},mon_); - if ("${mon_monitor}" = "YES") { - Dial(SIP/${number}@zgw1.zvbwu.edu,,wW); - Dial(SIP/${number}@zgw2.zvbwu.edu,,wW); - } else { - Dial(SIP/${number}@zgw1.zvbwu.edu); - Dial(SIP/${number}@zgw2.zvbwu.edu); - }; - return; -}; - -// Standard extension macro: -// ${ext} - Extension -macro stdexten( ext ) { - Realtime(sipusers,name,${ext},sip_user_); - Realtime(call_info,exten|${ext},info_); - if ("${sip_user_name}foo" = "foo") { - Wait(1); - &dialout(${ext}); - Congestion(10); - Hangup; - }; - NoOp(${CALLERIDNUM}); - RealtimeUpdate(call_info,exten,${ext},calltrace,${CALLERIDNUM}); - System(/usr/local/bin/db_update.sh call_info calltrace ${CALLERIDNUM} exten ${ext} &); - &checkdnd(${ext}); - &checkcf(${ext}); - Realtime(call_info,exten,${CALLERIDNUM:5},mon_); - if ("${mon_monitor}" = "YES") { - Dial(SIP/${info_forwardto},25,wW); - } else { - Dial(SIP/${info_forwardto},25); - }; - switch ("${DIALSTATUS}") { - case "BUSY": - &checkcfb(${ext}); - break; - case "CHANUNAVAIL": - Dial(IAX2/asterisk:password@ixtlchochitl.zvbwu.edu/${info_forwardto},25,wW); - MailboxExists(${ext}); -// if ("${VMBOXEXISTSSTATUS}" = "FAILED") { -// Congestion(10); -// Hangup; -// }; - &uvm(${ext}); - Hangup; - break; - case "CONGESTION": - MailboxExists(${ext}); - if ("${VMBOXEXISTSSTATUS}" = "FAILED") { - Congestion(10); - Hangup; - }; - &bvm(${ext}); - Hangup; - break; - default: - MailboxExists(${ext}); - if ("${VMBOXEXISTSSTATUS}" = "FAILED") { - Congestion(10); - Hangup; - }; - &uvm(${ext}); - Hangup; - }; - Hangup; -}; - -macro uvm( ext ) { - Dial(SIP/u${ext}@ixtlchochitl.zvbwu.edu); - Playback(im-sorry); - Playback(voice-mail-system); - Playback(down); - Congestion(10); - Hangup; -}; - -macro bvm( ext ) { - Dial(SIP/b${ext}@ixtlchochitl.zvbwu.edu); - Playback(im-sorry); - Playback(voice-mail-system); - Playback(down); - Congestion(10); - Hangup; -}; - -macro checkdnd( ext ) { - if ("${info_donotdisturb}foo" = "foo") { - NoOp(Do Not Disturb is not active); - } else - &uvm(${ext}); - return; -}; - -macro checkcf( ext ) { - if ("${info_forwardto}foo" = "foo") - if ("${ext}" = "43974") { - Set(info_forwardto=${ext}&SCCP/${ext}); - } else { - Set(info_forwardto=${ext}&SIP/${ext}w); - }; - return; -}; - -macro checkcfb( ext ) { - if ("${info_forwardbusy}foo" = "foo") { - Wait(1); - MailboxExists(${ext}); - if ("${VMBOXEXISTSSTATUS}" = "FAILED") { - &dialout(${ext}); - Hangup; - }; - &bvm(${ext}); - Hangup; - }; - &stdexten(${info_forwardbusy}); - return; -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from test.conf - -context test-include { - includes { - test-digium; - test-sounds; - test-phinfo; - }; -}; - -context test-digium { - *500 => { - Dial(IAX2/guest@misery.digium.com/s@default); - Playback(demo-nogo); - Hangup; - }; -}; - -context test-sounds { - *501 => { - Answer; - Musiconhold; - Wait(1); - Hangup; - }; -}; - -context test-phinfo { - *505 => { - Answer; - NoOp(${CALLERIDNUM:5}); - SayDigits(${CALLERIDNUM:5}); - Hangup; - }; -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from external.conf - -context long-distance { - includes { - local1; - }; - - _91XXXXXXXXXX => &dialout(${EXTEN}); - _9011. => &dialout(${EXTEN}); -}; - -context local1 { - includes { - default; - }; - - 911 => &dialout(911); - 9911 => &dialout(9911); - - _9NXXXXXX => goto huntsville-calling|${EXTEN}|1; - _936NXXXXXX => { - goto 9${EXTEN:3}|1; - Congestion(10); - Hangup; - }; - - _832NXXXXXX => { - goto 9${EXTEN}|1; - Congestion(10); - Hangup; - }; - - _713NXXXXXX => { - goto 9${EXTEN}|1 ; - Congestion(10); - Hangup; - }; - - _281NXXXXXX => { - goto 9${EXTEN}|1; - Congestion(10); - Hangup; - - }; - - _NXXNXXXXXX => { - goto 9${EXTEN}|1; - goto 91${EXTEN}|1; - Congestion(10); - Hangup; - }; - - _91800NXXXXXX => &dialout(${EXTEN}); - _91866NXXXXXX => &dialout(${EXTEN}); - _91877NXXXXXX => &dialout(${EXTEN}); - _91888NXXXXXX => &dialout(${EXTEN}); - _91900NXXXXXX => &dialout(${EXTEN}); - _91976NXXXXXX => &dialout(${EXTEN}); - _9713NXXXXXX => goto houston-calling|${EXTEN}|1; - _9281NXXXXXX => goto houston-calling|${EXTEN}|1; - _9832NXXXXXX => goto houston-calling|${EXTEN}|1; - _9903NXXXXXX => goto l903-calling|${EXTEN}|1; - - _31NXXNXXXXXX => &dialout(${EXTEN}); - - h => Hangup; -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from internal.conf - -context from-scm2 { - _4XXXX => { - NoOp(DIALING SIP EXTENSION ${EXTEN} - FROM ${CALLERIDNUM}); - Dial(SIP/${EXTEN},20,wW); - Hangup; - }; - - _6XXXX => { - NoOp(DIALING SIP EXTENSION ${EXTEN} - FROM ${CALLERIDNUM}); - Dial(SIP/${EXTEN},20,wW); - Hangup; - }; -}; - -/////////////////////////////////////////////////////////// -// All internal extensions work through the default context -// Phones that can only make internal calls should be in -// this context. -/////////////////////////////////////////////////////////// - -context default { -// Include the contexts in the files that allow us to make these phone calls - includes { - vm-include; - apps-include; - test-include; - }; - -// ALWAYS have an 'h' extension - h => { - NoOp(Hangup cause was: ${HANGUPCAUSE}); - Hangup; - }; - -// We like to hear that we dialed an invalid extension - i => Playback(pbx-invalid); - -// Dial the operator - 0 => &dialout(0); - -// Send voicemail calls to the vm-* contexts to be handled - voicemail => goto vm-direct|s|1; - 5555 => goto vm-direct|s|1; - 62100 => goto vm-extension|s|1; - -// These are our campus extensions, send them to the macro - _6XXXX => &stdexten(${EXTEN}); - _4XXXX => &stdexten(${EXTEN}); -// These are campus extensions as well, might need to take this out though. - _9294XXXX => goto _4XXXX|1; - _9496XXXX => goto _6XXXX|1; - -// These allows us to dial from the directory in our phone without worrying about dialing 9 - _936294XXXX => { - goto ${EXTEN:5}|1; - goto 9${EXTEN:3}|1; - Congestion(10); - Hangup; - }; - - _936496XXXX => { - goto ${EXTEN:5}|1; - goto 9${EXTEN:3}|1; - Congestion(10); - Hangup; - }; -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from apps.conf - -context apps-include { - includes { - app-agents; - app-dnd; - app-callforward; - app-calltrace; - app-conferences; - app-ssd; - app-psd; - app-idblock; - app-helpdesk; - app-dictate; - app-set-monitor; - }; -}; - -context app-agents { - *54 => { - Answer; - Wait(1); - Read(agent_no|agent-user); - AgentCallbackLogin(${agent_no}|s${CALLERIDNUM:5}); - Playback(agent-loginok); - Hangup; - }; - - *55 => { - Answer; - Wait(1); - AgentCallbackLogin(${agent_no}); - Hangup; - }; -}; - -context app-calltrace { -// caller dials this to find out the last call missed and possibly call back - *69 => goto app-calltrace-perform|s|1; -}; - -context app-calltrace-perform { - s => { - Answer; - Wait(1); - Background(info-about-last-call); - Background(telephone-number); - RealTime(call_info|exten|${CALLERIDNUM:5}|ct_); - if ("${ct_calltrace}foo" = "foo") { - Playback(loligo/from-unknown-caller); - Hangup; - } else { - SayDigits("${ct_calltrace}"); - Set(TIMEOUT(digit)=3); - Set(TIMEOUT(response)=7); - Background(loligo/to-call-this-number); - Background(press-1); - Background(loligo/silence/5); - }; - }; - - 1 => goto local1|${ct_calltrace}|1; - - i => { - Playback(vm-goodbye); - Hangup; - }; - - t => { - Playback(vm-goodbye); - Hangup; - }; -}; - -context app-set-monitor { - *50 => { - Realtime(call_info,exten,${CALLERIDNUM:5},mon_set_); - if ("${mon_set_monitor}" = "YES") { - RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},monitor|); - System(/usr/local/bin/db_update.sh call_info monitor '' exten ${CALLERIDNUM:5} &); - } else { - RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},monitor,YES); - System(/usr/local/bin/db_update.sh call_info monitor YES exten ${CALLERIDNUM:5} &); - }; - NoOp(${mon_set_monitor}); - Hangup; - }; -}; - -context app-dnd { - *78 => { - Answer; - Wait(1); - RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},donotdisturb,YES); - System(/usr/local/bin/db_update.sh call_info donotdisturb YES exten ${CALLERIDNUM:5} &); - Playback(do-not-disturb); - Playback(loligo/activated); - Hangup; - }; - - *79 => { - Answer; - Wait(1); - RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},donotdisturb|); - System(/usr/local/bin/db_update.sh call_info donotdisturb '' exten ${CALLERIDNUM:5} &); - Playback(do-not-disturb); - Playback(loligo/de-activated); - Hangup; - }; -}; - -context app-callforward { - // forwards calling extension to input number *72{EXTEN} - _*72. => { - RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},forwardto,${EXTEN:3}); - System(/usr/local/bin/db_update.sh call_info forwardto ${EXTEN:3} exten ${CALLERIDNUM:5} &); - Answer; - Wait(1); - Playback(loligo/call-fwd-unconditional); - Playback(loligo/for); - Playback(loligo/extension); - SayDigits(${CALLERIDNUM:5}); - Playback(loligo/is-set-to); - SayDigits(${EXTEN:3}); - Hangup; - }; - - // prompts for extension to forward to - *72 => { - Answer; - Wait(1); - Playback(please-enter-your); - Playback(extension); - Background(then-press-pound); - VMAuthenticate(|s); - Background(loligo/ent-target-attendant); - Read(toext,loligo/then-press-pound); - Wait(1); - RealtimeUpdate(call_info,exten,${AUTH_MAILBOX},forwardto,${toext}); - System(/usr/local/bin/db_update.sh call_info forwardto ${toext} exten ${AUTH_MAILBOX} &); - Playback(loligo/call-fwd-unconditional); - Playback(loligo/for); - Playback(loligo/extension); - SayDigits(${AUTH_MAILBOX}); - Playback(loligo/is-set-to); - SayDigits(${toext}); - Hangup; - }; - - // cancels dialed extension call forward - _*73. => { - Realtime(voicemail,mailbox,${EXTEN:3},auth_); - Answer; - Wait(1); - Authenticate(${auth_password}); - RealtimeUpdate(call_info,exten,${EXTEN:3},forwardto,); - System(/usr/local/bin/db_update.sh call_info forwardto '' exten ${EXTEN:3} &); - Wait(1); - SayDigits(${EXTEN:3}); - Playback(loligo/call-fwd-cancelled); - Hangup; - }; - - // cancels call forward for calling extension - *73 => { - RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},forwardto,); - System(/usr/local/bin/db_update.sh call_info forwardto '' exten ${CALLERIDNUM:5} &); - Answer; - Wait(1); - Playback(loligo/call-fwd-cancelled); - Hangup; - }; - - // dialed call forward on busy - _*90. => { - RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},forwardbusy,${EXTEN:3}); - System(/usr/local/bin/db_update.sh call_info forwardbusy ${EXTEN:3} exten ${CALLERIDNUM:5} &); - Answer; - Wait(1); - Playback(loligo/call-fwd-on-busy); - Playback(loligo/for); - Playback(loligo/extension); - SayDigits(${CALLERIDNUM:5}); - Playback(loligo/is-set-to); - SayDigits(${EXTEN:3}); - Hangup; - }; - - // cancels call forward on busy for calling extension - *91 => { - RealtimeUpdate(call_info,exten,${CALLERIDNUM:5},forwardbusy|); - System(/usr/local/bin/db_update.sh call_info forwardbusy '' exten ${CALLERIDNUM:5} &); - Answer; - Wait(1); - Playback(loligo/call-fwd-on-busy); - Playback(loligo/de-activated); - Hangup; - }; - - h => Hangup; -}; - -context app-idblock { - _*67. => { - Set(CALLERID(name)=Anonymous); - &stdexten(${EXTEN:3}); - }; -}; - -context app-dictate { - *1 => { - Dictate(); - Hangup; - }; -}; - -context app-ssd { -// *59 <xx> <y.> - Set system speed dial <xx> to digits <y.> -// *59 <xx> 0 - Delete system speed dial <xx> -// *59 <xx> - Review system speed dial <xx> -// *1xx - Dial speed dial <xx> - _*59XXX. => { - Answer; - RealtimeUpdate(ssd,sd,${EXTEN:3:2},extension,${EXTEN:5}); - System(/usr/local/bin/db_update.sh systemsd extension ${EXTEN:5} sd ${EXTEN:3:2} &); - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/has-been-set-to); - SayDigits(${EXTEN:5}); - Hangup; - }; - - _*59XX0 => { - Answer; - RealtimeUpdate(ssd,sd,${EXTEN:3:2},extension,); - System(/usr/local/bin/db_update.sh systemsd extension '' sd ${EXTEN:3:2} &); - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/has-been-cleared); - Hangup; - }; - - _*59XX => { - Answer; - Realtime(ssd,sd,${EXTEN:3},ssd_); - if ("${ssd_extension}foo" = "foo") { - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/is-not-set); - Hangup; - }; - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/is-set-to); - SayDigits(${ssd_extension}); - Hangup; - }; - - // NTC = number to call - _*1XX => { - Realtime(ssd,sd,${EXTEN:2},ssd_); - if ("${ssd_extension}foo" = "foo") { - Answer; - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:2}); - Playback(loligo/is-not-set); - Hangup; - }; - &stdexten(${ssd_extension}); - Congestion(10); - Hangup; - }; -}; - -macro check-psd-exists ( ext ) { - Realtime(psd,extension,${ext},psd_); - if ("${psd_extension}foo" = "foo") { - System(/usr/local/bin/create_psd.sh ${ext}); - } else - NoOp(PSD set for ${ext}); - return; -}; - -context app-psd { -// *89 <xx> <y.> - Set personal speed dial <xx> to digits <y.> -// *89 <xx> 0 - Delete personal speed dial <xx> -// *89 <xx> - Review personal speed dial <xx> -// *2xx - Dial personal speed dial <xx> - _*89XXX. => { - &check-psd-exists(${CALLERIDNUM:5}); - Answer; - RealtimeUpdate(psd,extension,${CALLERIDNUM:5},s${EXTEN:3:2},${EXTEN:5}); - System(/usr/local/bin/db_update.sh personalsd s${EXTEN:3:2} ${EXTEN:5} extension ${CALLERIDNUM:5} &); - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/has-been-set-to); - SayDigits(${EXTEN:5}); - Hangup; - }; - - _*89XX0 => { - &check-psd-exists(${CALLERIDNUM:5}); - Answer; - RealtimeUpdate(psd|extension|${CALLERIDNUM:5}|s${EXTEN:3:2}|); - System(/usr/local/bin/db_update.sh personalsd s${EXTEN:3:2} '' extension ${CALLERIDNUM:5} &); - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/has-been-cleared); - Hangup; - }; - - _*89XX => { - &check-psd-exists(${CALLERIDNUM:5}); - Answer; - Realtime(psd|extension|${CALLERIDNUM:5}|psd_); - Wait(1); - if ("${psd_s${EXTEN:3:2}}foo" = "foo") { - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/is-not-set); - Hangup; - }; - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/is-set-to); - SayDigits(${psd_s${EXTEN:3:2}}); - Hangup; - }; - - // NTC = number to call - _*2XX => { - &check-psd-exists(${CALLERIDNUM:5}); - Realtime(psd|extension|${CALLERIDNUM:5}|psd_); - if ("${psd_s${EXTEN:2}}foo" = "foo") { - Answer; - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:2}); - Playback(loligo/is-not-set); - Hangup; - }; - &stdexten(${psd_s${EXTEN:2}}); - Congestion(10); - Hangup; - }; -}; - -context app-helpdesk { - *4357 => { - &stdexten(41950); - Congestion; - }; -}; - -context app-conferences { -// waiting for room number announcement - *86 => goto app-conf-hidden|s|1; -}; - -context app-conf-hidden { - s => { - Wait(1); - Playback(loligo/please-enter-the); - Playback(loligo/extension); - read(roomtoenter,loligo/then-press-pound); - Meetme(${roomtoenter}); - Waitexten(8); - Hangup; - }; - - _1. => Meetme(${EXTEN}); -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from vm.conf: - -context vm-include { - includes { - vm-direct; - vm-extension; - vm-directory; - }; -}; - -context vm-direct { - s => { - Dial(SIP/5555@ixtlchochitl.zvbwu.edu,20); - Playback(im-sorry); - Playback(voice-mail-system); - Playback(down); - Playback(extra/pls-try-call-later); - Congestion(10); - Hangup; - }; -}; - -context vm-extension { - s => { - Dial(SIP/62100@ixtlchochitl.zvbwu.edu,20); - Playback(im-sorry); - Playback(voice-mail-system); - Playback(down); - Playback(extra/pls-try-call-later); - Congestion(10); - Hangup; - }; -}; - -context vm-directory { - 5556 => { - Dial(SIP/5556@ixtlchochitl.zvbwu.edu); - Playback(im-sorry); - Playback(voice-mail-system); - Playback(down); - Playback(extra/pls-try-call-later); - Congestion(10); - Hangup; - }; -}; diff --git a/trunk/pbx/ael/ael-test/ael-test6/extensions.ael b/trunk/pbx/ael/ael-test/ael-test6/extensions.ael deleted file mode 100644 index 13ebf67fd..000000000 --- a/trunk/pbx/ael/ael-test/ael-test6/extensions.ael +++ /dev/null @@ -1,833 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////// -// Helpdesk Queue - -context hd-queue { - s => { - NoOp(Add a background sound to tell the user their options); - Queue(helpdesk|t); - NoOp(Put in options to apologize and send user to voicemail); - }; - - 0 => goto default|0|1; - 1 => { - Dial(u41950@svm1.shsu.edu); - Congestion(10); - Hangup; - }; -}; - - -context l903-calling { - _9903NXXXXXX => { - Realtime(l903_ext|exchange|${EXTEN:4:3}|l903_); - if ("${l903_exchange}foo" = "foo") { - Playback(num-outside-area); - SayDigits(1); - Playback(and-area-code); - Playback(before-the-number); - Hangup; - }; - &dialout(${EXTEN}); - Congestion(10); - Hangup; - }; -}; -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from houston.conf -// Converted the extension list to the database - -context houston-calling { - _9713NXXXXXX => { - Realtime(hou_713_ext|exchange|${EXTEN:4:3}|hou_713_); - if ("${hou_713_exchange}foo" = "foo") { - Playback(num-outside-area); - SayDigits(1); - Playback(and-area-code); - Playback(before-the-number); - Hangup; - }; - &dialout(${EXTEN}); - Congestion(10); - Hangup; - }; - - _9281NXXXXXX => { - Realtime(hou_281_ext|exchange|${EXTEN:4:3}|hou_281_); - if ("${hou_281_exchange}foo" = "foo") { - Playback(num-outside-area); - SayDigits(1); - Playback(and-area-code); - Playback(before-the-number); - Hangup; - }; - &dialout(${EXTEN}); - Congestion(10); - Hangup; - }; - - _9832NXXXXXX => { - Realtime(hou_832_ext|exchange|${EXTEN:4:3}|hou_832_); - if ("${hou_832_exchange}foo" = "foo") { - Playback(num-outside-area); - SayDigits(1); - Playback(and-area-code); - Playback(before-the-number); - Hangup; - }; - &dialout(${EXTEN}); - Congestion(10); - Hangup; - }; -}; - - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from huntsville.conf -// Converted the extension list to the database - -context huntsville-calling { - _9NXXXXXX => { - Realtime(hv_ext|exchange|${EXTEN:1:3}|hv_); - if ("${hv_exchange}foo" = "foo") { - Playback(num-outside-area); - SayDigits(1); - Playback(and-area-code); - Playback(before-the-number); - Hangup; - }; - &dialout(${EXTEN}); - Congestion(10); - Hangup; - }; - - _NXXXXXX => { - NoOp(Stripping last four to see what extension we're dialing); - Set(LAST4=${EXTEN:3}); - StripLSD(4); - }; - - i => Playback(pbx-invalid); - h => Hangup; -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from macros.conf - -macro dialout( number ) { - Realtime(call_info|exten|${CALLERIDNUM:5}|mon_); - if ("${mon_monitor}" = "YES") { - Dial(SIP/${number}@sgw1.shsu.edu,,wW); - Dial(SIP/${number}@sgw2.shsu.edu,,wW); - } else { - Dial(SIP/${number}@sgw1.shsu.edu); - Dial(SIP/${number}@sgw2.shsu.edu); - }; -}; - -// Standard extension macro: -// ${ext} - Extension -macro stdexten( ext ) { - Realtime(sipusers|name|${ext}|sip_user_); - Realtime(call_info|exten|${ext}|info_); - if ("${sip_user_name}foo" = "foo") { - Wait(1); - &dialout(${ext}); - Congestion(10); - Hangup; - }; - NoOp(${CALLERIDNUM}); - RealtimeUpdate(call_info|exten|${ext}|calltrace|${CALLERIDNUM}); - System(/usr/local/bin/db_update.sh call_info calltrace ${CALLERIDNUM} exten ${ext} &); - &checkdnd(${ext}); - &checkcf(${ext}); - Realtime(call_info|exten|${CALLERIDNUM:5}|mon_); - if ("${mon_monitor}" = "YES") { - Dial(SIP/${info_forwardto},25,wW); - } else { - Dial(SIP/${info_forwardto},25); - }; - switch ("${DIALSTATUS}") { - case "BUSY": - &checkcfb(${ext}); - break; - case "CHANUNAVAIL": - Dial(IAX2/asterisk:password@scm2.shsu.edu/${info_forwardto},25,wW); - MailboxExists(${ext}); -// if ("${VMBOXEXISTSSTATUS}" = "FAILED") { -// Congestion(10); -// Hangup; -// }; - &uvm(${ext}); - Hangup; - break; - case "CONGESTION": - MailboxExists(${ext}); - if ("$(VMBOXEXISTSSTATUS}" = "FAILED") { - Congestion(10); - Hangup; - }; - &bvm(${ext}); - Hangup; - break; - default: - MailboxExists(${ext}); - if ("$(VMBOXEXISTSSTATUS}" = "FAILED") { - Congestion(10); - Hangup; - }; - &uvm(${ext}); - Hangup; - }; - Hangup; -}; - -macro uvm( ext ) { - Dial(SIP/u${ext}@svm1.shsu.edu); - Playback(im-sorry); - Playback(voice-mail-system); - Playback(down); - Congestion(10); - Hangup; -}; - -macro bvm( ext ) { - Dial(SIP/b${ext}@svm1.shsu.edu); - Playback(im-sorry); - Playback(voice-mail-system); - Playback(down); - Congestion(10); - Hangup; -}; - -macro checkdnd( ext ) { - if ("${info_donotdisturb}foo" = "foo") { - NoOp(Do Not Disturb is not active); - } else - &uvm(${ext}); -}; - -macro checkcf( ext ) { - if ("${info_forwardto}foo" = "foo") - if ("${ext}" = "43974") { - Set(info_forwardto=${ext}&SCCP/${ext}); - } else { - Set(info_forwardto=${ext}&SIP/${ext}w); - }; -}; - -macro checkcfb( ext ) { - if ("${info_forwardbusy}foo" = "foo") { - Wait(1); - MailboxExists(${ext}); - if ("$(VMBOXEXISTSSTATUS}" = "FAILED") { - &dialout(${ext}); - Hangup; - }; - &bvm(${ext}); - Hangup; - }; - &stdexten(${info_forwardbusy}); -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from test.conf - -context test-include { - includes { - test-digium; - test-sounds; - test-phinfo; - }; -}; - -context test-digium { - *500 => { - Dial(IAX2/guest@misery.digium.com/s@default); - Playback(demo-nogo); - Hangup; - }; -}; - -context test-sounds { - *501 => { - Answer; - Musiconhold; - Wait(1); - Hangup; - }; -}; - -context test-phinfo { - *505 => { - Answer; - NoOp(${CALLERIDNUM:5}); - SayDigits(${CALLERIDNUM:5}); - Hangup; - }; -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from external.conf - -context long-distance { - includes { - local1; - }; - - _91XXXXXXXXXX => &dialout(${EXTEN}); - _9011. => &dialout(${EXTEN}); -}; - -context local1 { - includes { - default; - }; - - 911 => &dialout(911); - 9911 => &dialout(9911); - - _9NXXXXXX => goto huntsville-calling|${EXTEN}|1; - _936NXXXXXX => { - Goto 9${EXTEN:3}|1; - Congestion(10); - Hangup; - }; - - _832NXXXXXX => { - goto 9${EXTEN}|1; - Congestion(10); - Hangup; - }; - - _713NXXXXXX => { - goto 9${EXTEN}|1 ; - Congestion(10); - Hangup; - }; - - _281NXXXXXX => { - goto 9${EXTEN}|1; - Congestion(10); - Hangup; - - }; - - _NXXNXXXXXX => { - goto 9${EXTEN}|1; - goto 91${EXTEN}|1; - Congestion(10); - Hangup; - }; - - _91800NXXXXXX => &dialout(${EXTEN}); - _91866NXXXXXX => &dialout(${EXTEN}); - _91877NXXXXXX => &dialout(${EXTEN}); - _91888NXXXXXX => &dialout(${EXTEN}); - _91900NXXXXXX => &dialout(${EXTEN}); - _91976NXXXXXX => &dialout(${EXTEN}); - _9713NXXXXXX => goto houston-calling|${EXTEN}|1; - _9281NXXXXXX => goto houston-calling|${EXTEN}|1; - _9832NXXXXXX => goto houston-calling|${EXTEN}|1; - _9903NXXXXXX => goto l903-calling|${EXTEN}|1; - - _31NXXNXXXXXX => &dialout(${EXTEN}); - - h => Hangup; -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from internal.conf - -context from-scm2 { - _4XXXX => { - NoOp(DIALING SIP EXTENSION ${EXTEN} - FROM ${CALLERIDNUM}); - Dial(SIP/${EXTEN},20,wW); - Hangup; - }; - - _6XXXX => { - NoOp(DIALING SIP EXTENSION ${EXTEN} - FROM ${CALLERIDNUM}); - Dial(SIP/${EXTEN},20,wW); - Hangup; - }; -}; - -/////////////////////////////////////////////////////////// -// All internal extensions work through the default context -// Phones that can only make internal calls should be in -// this context. -/////////////////////////////////////////////////////////// - -context default { -// Include the contexts in the files that allow us to make these phone calls - includes { - vm-include; - apps-include; - test-include; - }; - -// ALWAYS have an 'h' extension - h => { - NoOp(Hangup cause was: ${HANGUPCAUSE}); - Hangup; - }; - -// We like to hear that we dialed an invalid extension - i => Playback(pbx-invalid); - -// Dial the operator - 0 => &dialout(0); - -// Send voicemail calls to the vm-* contexts to be handled - voicemail => goto vm-direct|s|1; - 5555 => goto vm-direct|s|1; - 62100 => goto vm-extension|s|1; - -// These are our campus extensions, send them to the macro - _6XXXX => &stdexten(${EXTEN}); - _4XXXX => &stdexten(${EXTEN}); -// These are campus extensions as well, might need to take this out though. - _9294XXXX => goto _4XXXX|1; - _9496XXXX => goto _6XXXX|1; - -// These allows us to dial from the directory in our phone without worrying about dialing 9 - _936294XXXX => { - goto ${EXTEN:5}|1; - goto 9${EXTEN:3}|1; - Congestion(10); - Hangup; - }; - - _936496XXXX => { - goto ${EXTEN:5}|1; - goto 9${EXTEN:3}|1; - Congestion(10); - Hangup; - }; -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from apps.conf - -context apps-include { - includes { - app-agents; - app-dnd; - app-callforward; - app-calltrace; - app-conferences; - app-ssd; - app-psd; - app-idblock; - app-helpdesk; - app-dictate; - app-set-monitor; - }; -}; - -context app-agents { - *54 => { - Answer; - Wait(1); - Read(agent_no|agent-user); - AgentCallbackLogin(${agent_no}|s${CALLERIDNUM:5}); - Playback(agent-loginok); - Hangup; - }; - - *55 => { - Answer; - Wait(1); - AgentCallbackLogin(${agent_no}); - Hangup; - }; -}; - -context app-calltrace { -// caller dials this to find out the last call missed and possibly call back - *69 => goto app-calltrace-perform|s|1; -}; - -context app-calltrace-perform { - s => { - Answer; - Wait(1); - Background(info-about-last-call); - Background(telephone-number); - RealTime(call_info|exten|${CALLERIDNUM:5}|ct_); - if ("${ct_calltrace}foo" = "foo") { - Playback(loligo/from-unknown-caller); - Hangup; - } else { - SayDigits("${ct_calltrace}"); - Set(TIMEOUT(digit)=3); - Set(TIMEOUT(response)=7); - Background(loligo/to-call-this-number); - Background(press-1); - Background(loligo/silence/5); - }; - }; - - 1 => goto local1|${ct_calltrace}|1; - - i => { - Playback(vm-goodbye); - Hangup; - }; - - t => { - Playback(vm-goodbye); - Hangup; - }; -}; - -context app-set-monitor { - *50 => { - Realtime(call_info|exten|${CALLERIDNUM:5}|mon_set_); - if ("${mon_set_monitor}" = "YES") { - RealtimeUpdate(call_info|exten|${CALLERIDNUM:5}|monitor|); - System(/usr/local/bin/db_update.sh call_info monitor '' exten ${CALLERIDNUM:5} &); - } else { - RealtimeUpdate(call_info|exten|${CALLERIDNUM:5}|monitor|YES); - System(/usr/local/bin/db_update.sh call_info monitor YES exten ${CALLERIDNUM:5} &); - }; - NoOp(${mon_set_monitor}); - Hangup; - }; -}; - -context app-dnd { - *78 => { - Answer; - Wait(1); - RealtimeUpdate(call_info|exten|${CALLERIDNUM:5}|donotdisturb|YES); - System(/usr/local/bin/db_update.sh call_info donotdisturb YES exten ${CALLERIDNUM:5} &); - Playback(do-not-disturb); - Playback(loligo/activated); - Hangup; - }; - - *79 => { - Answer; - Wait(1); - RealtimeUpdate(call_info|exten|${CALLERIDNUM:5}|donotdisturb|); - System(/usr/local/bin/db_update.sh call_info donotdisturb '' exten ${CALLERIDNUM:5} &); - Playback(do-not-disturb); - Playback(loligo/de-activated); - Hangup; - }; -}; - -context app-callforward { - // forwards calling extension to input number *72{EXTEN} - _*72. => { - RealtimeUpdate(call_info|exten|${CALLERIDNUM:5}|forwardto|${EXTEN:3}); - System(/usr/local/bin/db_update.sh call_info forwardto ${EXTEN:3} exten ${CALLERIDNUM:5} &); - Answer; - Wait(1); - Playback(loligo/call-fwd-unconditional); - Playback(loligo/for); - Playback(loligo/extension); - SayDigits(${CALLERIDNUM:5}); - Playback(loligo/is-set-to); - SayDigits(${EXTEN:3}); - Hangup; - }; - - // prompts for extension to forward to - *72 => { - Answer; - Wait(1); - Playback(please-enter-your); - Playback(extension); - Background(then-press-pound); - VMAuthenticate(|s); - Background(loligo/ent-target-attendant); - Read(toext,loligo/then-press-pound); - Wait(1); - RealtimeUpdate(call_info|exten|${AUTH_MAILBOX}|forwardto|${toext}); - System(/usr/local/bin/db_update.sh call_info forwardto ${toext} exten ${AUTH_MAILBOX} &); - Playback(loligo/call-fwd-unconditional); - Playback(loligo/for); - Playback(loligo/extension); - SayDigits(${AUTH_MAILBOX}); - Playback(loligo/is-set-to); - SayDigits(${toext}); - Hangup; - }; - - // cancels dialed extension call forward - _*73. => { - Realtime(voicemail|mailbox|${EXTEN:3}|auth_); - Answer; - Wait(1); - Authenticate(${auth_password}); - RealtimeUpdate(call_info|exten|${EXTEN:3}|forwardto|); - System(/usr/local/bin/db_update.sh call_info forwardto '' exten ${EXTEN:3} &); - Wait(1); - SayDigits(${EXTEN:3}); - Playback(loligo/call-fwd-cancelled); - Hangup; - }; - - // cancels call forward for calling extension - *73 => { - RealtimeUpdate(call_info|exten|${CALLERIDNUM:5}|forwardto|); - System(/usr/local/bin/db_update.sh call_info forwardto '' exten ${CALLERIDNUM:5} &); - Answer; - Wait(1); - Playback(loligo/call-fwd-cancelled); - Hangup; - }; - - // dialed call forward on busy - _*90. => { - RealtimeUpdate(call_info|exten|${CALLERIDNUM:5}|forwardbusy|${EXTEN:3}); - System(/usr/local/bin/db_update.sh call_info forwardbusy ${EXTEN:3} exten ${CALLERIDNUM:5} &); - Answer; - Wait(1); - Playback(loligo/call-fwd-on-busy); - Playback(loligo/for); - Playback(loligo/extension); - SayDigits(${CALLERIDNUM:5}); - Playback(loligo/is-set-to); - SayDigits(${EXTEN:3}); - Hangup; - }; - - // cancels call forward on busy for calling extension - *91 => { - RealtimeUpdate(call_info|exten|${CALLERIDNUM:5}|forwardbusy|); - System(/usr/local/bin/db_update.sh call_info forwardbusy '' exten ${CALLERIDNUM:5} &); - Answer; - Wait(1); - Playback(loligo/call-fwd-on-busy); - Playback(loligo/de-activated); - Hangup; - }; - - h => Hangup; -}; - -context app-idblock { - _*67. => { - Set(CALLERID(name)=Anonymous); - &stdexten(${EXTEN:3}); - }; -}; - -context app-dictate { - *1 => { - Dictate(); - Hangup; - }; -}; - -context app-ssd { -// *59 <xx> <y.> - Set system speed dial <xx> to digits <y.> -// *59 <xx> 0 - Delete system speed dial <xx> -// *59 <xx> - Review system speed dial <xx> -// *1xx - Dial speed dial <xx> - _*59XXX. => { - Answer; - RealtimeUpdate(ssd|sd|${EXTEN:3:2}|extension|${EXTEN:5}); - System(/usr/local/bin/db_update.sh systemsd extension ${EXTEN:5} sd ${EXTEN:3:2} &); - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/has-been-set-to); - SayDigits(${EXTEN:5}); - Hangup; - }; - - _*59XX0 => { - Answer; - RealtimeUpdate(ssd|sd|${EXTEN:3:2}|extension|); - System(/usr/local/bin/db_update.sh systemsd extension '' sd ${EXTEN:3:2} &); - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/has-been-cleared); - Hangup; - }; - - _*59XX => { - Answer; - Realtime(ssd|sd|${EXTEN:3}|ssd_); - if ("${ssd_extension}foo" = "foo") { - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/is-not-set); - Hangup; - }; - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/is-set-to); - SayDigits(${ssd_extension}); - Hangup; - }; - - // NTC = number to call - _*1XX => { - Realtime(ssd|sd|${EXTEN:2}|ssd_); - if ("${ssd_extension}foo" = "foo") { - Answer; - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:2}); - Playback(loligo/is-not-set); - Hangup; - }; - &stdexten(${ssd_extension}); - Congestion(10); - Hangup; - }; -}; - -macro check-psd-exists ( ext ) { - Realtime(psd|extension|${ext}|psd_); - if ("${psd_extension}foo" = "foo") { - System(/usr/local/bin/create_psd.sh ${ext}); - } else - NoOp(PSD set for ${ext}); -}; - -context app-psd { -// *89 <xx> <y.> - Set personal speed dial <xx> to digits <y.> -// *89 <xx> 0 - Delete personal speed dial <xx> -// *89 <xx> - Review personal speed dial <xx> -// *2xx - Dial personal speed dial <xx> - _*89XXX. => { - &check-psd-exists(${CALLERIDNUM:5}); - Answer; - RealtimeUpdate(psd|extension|${CALLERIDNUM:5}|s${EXTEN:3:2}|${EXTEN:5}); - System(/usr/local/bin/db_update.sh personalsd s${EXTEN:3:2} ${EXTEN:5} extension ${CALLERIDNUM:5} &); - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/has-been-set-to); - SayDigits(${EXTEN:5}); - Hangup; - }; - - _*89XX0 => { - &check-psd-exists(${CALLERIDNUM:5}); - Answer; - RealtimeUpdate(psd|extension|${CALLERIDNUM:5}|s${EXTEN:3:2}|); - System(/usr/local/bin/db_update.sh personalsd s${EXTEN:3:2} '' extension ${CALLERIDNUM:5} &); - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/has-been-cleared); - Hangup; - }; - - _*89XX => { - &check-psd-exists(${CALLERIDNUM:5}); - Answer; - Realtime(psd|extension|${CALLERIDNUM:5}|psd_); - Wait(1); - if ("${psd_s${EXTEN:3:2}}foo" = "foo") { - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/is-not-set); - Hangup; - }; - Playback(loligo/speed-dial); - SayDigits(${EXTEN:3:2}); - Playback(loligo/is-set-to); - SayDigits(${psd_s${EXTEN:3:2}}); - Hangup; - }; - - // NTC = number to call - _*2XX => { - &check-psd-exists(${CALLERIDNUM:5}); - Realtime(psd|extension|${CALLERIDNUM:5}|psd_); - if ("${psd_s${EXTEN:2}}foo" = "foo") { - Answer; - Wait(1); - Playback(loligo/speed-dial); - SayDigits(${EXTEN:2}); - Playback(loligo/is-not-set); - Hangup; - }; - &stdexten(${psd_s${EXTEN:2}}); - Congestion(10); - Hangup; - }; -}; - -context app-helpdesk { - *4357 => { - &stdexten(41950); - Congestion; - }; -}; - -context app-conferences { -// waiting for room number announcement - *86 => goto app-conf-hidden|s|1; -}; - -context app-conf-hidden { - s => { - Wait(1); - Playback(loligo/please-enter-the); - Playback(loligo/extension); - read(roomtoenter,loligo/then-press-pound); - Meetme(${roomtoenter}); - Waitexten(8); - Hangup; - }; - - _1. => Meetme(${EXTEN}); -}; - -/////////////////////////////////////////////////////////////////////////////// -// Extensions pulled from vm.conf: - -context vm-include { - includes { - vm-direct; - vm-extension; - vm-directory; - }; -}; - -context vm-direct { - s => { - Dial(SIP/5555@svm1.shsu.edu,20); - Playback(im-sorry); - Playback(voice-mail-system); - Playback(down); - Playback(extra/pls-try-call-later); - Congestion(10); - Hangup; - }; -}; - -context vm-extension { - s => { - Dial(SIP/62100@svm1.shsu.edu,20); - Playback(im-sorry); - Playback(voice-mail-system); - Playback(down); - Playback(extra/pls-try-call-later); - Congestion(10); - Hangup; - }; -}; - -context vm-directory { - 5556 => { - Dial(SIP/5556@svm1.shsu.edu); - Playback(im-sorry); - Playback(voice-mail-system); - Playback(down); - Playback(extra/pls-try-call-later); - Congestion(10); - Hangup; - }; -}; diff --git a/trunk/pbx/ael/ael-test/ael-test7/extensions.ael b/trunk/pbx/ael/ael-test/ael-test7/extensions.ael deleted file mode 100644 index 27ed374f5..000000000 --- a/trunk/pbx/ael/ael-test/ael-test7/extensions.ael +++ /dev/null @@ -1,460 +0,0 @@ -// -// Example AEL config file -// - -globals { - CONSOLE=Console/dsp; - TRUNKMSD=0; //MSD digits to strip (usually 1 or 0) - TRUNCPROTO=SIP; - TRUNK=sunrocket; - PSTN=pstn-spa3k; - PSTNPROTO=SIP; - TARIOPROTO=SIP; - TARIO=tario; - CPPROTO=SIP; - CPACKET1=callpacket1; - CPACKET2=callpacket2; - SELLVOIP=1577040314; - SVPROTO=IAX2; -}; - - -macro stdexten (ext , dev ) { - PrivacyManager(3,10); - if("${PRIVACYMGRSTATUS}" = "FAILED") { - Playback(vm-goodbye); - Hangup(); - }; - - AGI(calleridnamelookup.agi); - Dial(${dev}/${ext},30,t); - switch(${DIALSTATUS}) { - case BUSY: - Voicemail(b${ext}); - break; - default: - Voicemail(u${ext}); - }; - catch a { - VoiceMailMain(${ext}); - return; - }; -}; - -macro announce_minutes(minutes) { - Playback(vm-youhave); - SayNumber(${minutes}); - Playback(vm-minutes); - Wait(1); -}; - -// Check if given provider allows only some free minutes per month -// and announce number of free minutes remaining. -// The limit will be reset monthly by cron job. -// The macro sets the following variables: -// MINUTES_LIMIT - number of free minutes per month -// MINUTES_USED - number of free minutes used in the current month -// PROVIDER - provider name - -macro checkanddial(prov,proto,ext,arg1,arg2,arg3,arg4) { - Set(MINUTES_LIMIT=0); - Set(MINUTES_USED=0); - Set(PROVIDER=${prov}); - - if(${DB_EXISTS(Provider/${prov}/used)}) - Set(MINUTES_USED=${DB_RESULT}); - - country_c = 0; - switch(${LEN(${ext})}) { //assuming all international numbers are 11 digits long. - case 10: //NXXNXXXXXX - country_c=1; - break; - case 11: //XNXXNXXXXXX - country_c = ${ext:0:1}; - break; - default: //011XNXXNXXXXXX - country_c = ${ext:3:1}; - break; - }; - - if("${prov}" = "${TRUNK}" & ${country_c} != 1) { // SunRocket international calls - Set(MINUTES_LIMIT=${DB(Provider/${prov}/limit)}); - &announce_minutes($[${MINUTES_LIMIT} - ${MINUTES_USED}]); - }; - if("${prov}" = "${CPACKET1}" | "${prov}" = "${CPACKET2}") { // Callpacket has a limit on domestic calls - Set(MINUTES_LIMIT=${DB(Provider/${prov}/limit)}); - &announce_minutes($[${MINUTES_LIMIT} - ${MINUTES_USED}]); - }; - DeadAGI(dial.agi,${proto}/${ext}@${prov},${arg1},${arg2},${arg3},${arg4}); -}; - -macro trunkdial(ext) { // Dial sunrocket and set correct collerid - if("${CALLERID(num)}" = "1") { - Set(CALLERID(num)=7322271653); - } else { - Set(CALLERID(num)=7326260100); - }; - Set(CALLERID(name)=Sergey Okhapkin); - &checkanddial(${TRUNK},${TRUNCPROTO},${ext},60,T); - Hangup; -}; - -macro checklocal(ext) { // lookup the number in DB and call the number via pstn or sunrocket - Set(AREACODE=${ext:0:3}); - Set(EXCHANGE=${ext:3:3}); - Set(IS_LOCAL=${DB_EXISTS(localnum/${AREACODE}/${EXCHANGE})}); - if(${IS_LOCAL}) { - &checkanddial(${PSTN},${PSTNPROTO},${ext},60,T); - if ("${DIALSTATUS}" = "BUSY") - &trunkdial(${ext}); - } else - &trunkdial(${ext}); -}; - -macro autodial(ext) { // Find Least Cost Route - LCDial(${ext},60,T); - if("${DIALSTATUS}" = "NOPROVIDER") - Playback(invalid); - Hangup(); -}; - -context default { // Calls to us - s => { - Wait(1); - Answer; -start: - Set(TIMEOUT(digit)=3); - Set(TIMEOUT(response)=10); -repeat: - for (x=0; ${x} < 5; x=${x} + 1) { - Background(home/greeting); - WaitExten(); - }; - }; - t => jump *; - i => { // invalid extension - Playback(invalid); - goto s|repeat; - }; - _* => { - Playback(vm-goodbye); - Wait(1); - Hangup; - }; - 1 => &stdexten(1,SIP/1); - 2 => &stdexten(2,SIP/2); - 3 => &stdexten(3,SIP/3); - - 2271653 => jump 1; - 7322271653 => jump 1; - 17322271653 => jump 1; - - 6260100 => jump 2; - 7326260100 => jump 2; - 17326260100 => jump 2; - 8058701100 => jump 2; - 3103622835 => jump 2; - sos => jump 2; - 1400898 => jump 2; - - 6260101 => jump s; - 7326260101 => jump s; - 17326260101 => jump s; - - 2271677 => jump 3; - 7322271677 => jump 3; - 17322271677 => jump 3; - galka => jump 3; - 911 => Dial(${PSTNPROTO}/911@${PSTN},60,); - 380 => Dial(SIP/topspeen@212.40.38.70,60,T); - - // Fun stuff - 100 => { - SayUnixTime(); - goto s|start; - }; - 101 => { // Voicemail - VoicemailMain(${CALLERID(num)}); - Hangup; - }; - 102 => MusicOnHold(); -// 103 => { -// Wait(1); -//start: -// Read(NUMBER,vm-enter-num-to-call); -// LCDial(${NUMBER},T); -// goto start; -// }; - 105 => jump s@phrase-menu; - 7312 => { - ForkCDR; - Set(CALLERID(name)=Sergey Okhapkin); - Set(CALLERID(num)=7326260100); - DISA(1111|home); - }; -}; - -context goiax { - s => { - Answer(); - Ringing(); - Wait(1); -start: - Read(NUMBER,vm-enter-num-to-call); - Set(CALLERID(name)=Central NJ); - Dial(IAX2/14301@fwdOUT/q${NUMBER},60,T); - goto start; - }; - -}; - -context phrase-menu { - - s => { - Answer; // Answer the line - TIMEOUT(digit)=2; // Set Digit Timeout to 5 seconds - TIMEOUT(response)=10; // Set Response Timeout to 10 seconds - BackGround(custom/phrase-menu); // Play main menu. - }; - 1 => { // Phrase Recording - Wait(1); - Read(PHRASEID|custom/enter-phrase-num); - Wait(2); // give yourself 2 secs to take a breath and wait for beep - Record(custom/${PHRASEID}:gsm); - Wait(2); - Playback(custom/${PHRASEID}); - Wait(1); - jump s; - }; - 2 => { // Phrase review - Wait(1); - Read(PHRASEID|custom/enter-phrase-num); - Wait(1); - Playback(custom/${PHRASEID}); - Wait(1); - jump s; - }; - t => Hangup; - i => { - Playback(custom/invalid-option); - jump s; - }; -}; - -context outbound { - // North America seven-, ten- and eleven digits - _NXXXXXX => &autodial(1732${EXTEN}); - _NXXNXXXXXX => &autodial(1${EXTEN}); - _ZNXXNXXXXX. => &autodial(${EXTEN}); - // Toll free numbers via PSTN -// _1800NXXXXXX => &checkanddial(${PSTN},${PSTNPROTO},${EXTEN},60,T); -// _1888NXXXXXX => &checkanddial(${PSTN},${PSTNPROTO},${EXTEN},60,T); -// _1877NXXXXXX => &checkanddial(${PSTN},${PSTNPROTO},${EXTEN},60,T); -// _1866NXXXXXX => &checkanddial(${PSTN},${PSTNPROTO},${EXTEN},60,T); - - _011. => { //International context accessed through trunk - &trunkdial(${EXTEN}); - }; - _012. => { //fwdOUT - Set(CALLERID(name)=Central NJ); - Dial(IAX2/14301@fwdOUT/q${EXTEN:3},60,T); - }; - _013X. => { //NECC - Dial(${PSTNPROTO}/011${EXTEN:3}@${PSTN},60,T); - }; - _0131. => { //NECC to US - Dial(${PSTNPROTO}/${EXTEN:3}@${PSTN},60,T); - }; - _014. => { //TARIO by SIP ID - Set(CALLERID(name)=Sergey Okhapkin); - Set(CALLERID(num)=1400898); - Dial(${TARIOPROTO}/${EXTEN:3}@${TARIO},60,T); - }; - _0157. => { //TARIO outbound Russia - Set(CALLERID(name)=Sergey Okhapkin); - Set(CALLERID(num)=1400898); - Dial(${TARIOPROTO}/8${EXTEN:4}@${TARIO},60,T); - }; -// _015. => { //TARIO outbound international -// CALLERID(name)="Sergey Okhapkin"; -// CALLERID(num)=1400898; -// Dial(${TARIOPROTO}/810${EXTEN:3}@${TARIO},60,T); -// }; - _0161NXXNXXXXXX => { //Callpacket outbound USA/Canada - &checkanddial(${CPACKET1},${CPPROTO},${EXTEN:3},60,T); - }; - _0171NXXNXXXXXX => { //Callpacket outbound USA/Canada - &checkanddial(${CPACKET2},${CPPROTO},${EXTEN:3},60,T); - }; - _0181NXXNXXXXXX => { //sellvoip outbound USA/Canada - Dial(${SVPROTO}/${SELLVOIP}@${SELLVOIP}/${EXTEN:3},60,T); - }; - _019. => { //Voipbuster - Dial(IAX2/sokhapkin@voipbuster/00${EXTEN:3},60,T); - }; -}; - -context home { //calls from us - includes { - default; - outbound; - }; -}; - -context sunrocket-in { - 7322271653 => jump s; - 7326260100 => jump 2@default; - s => { - if("${CALLERID(num)}" = "sunrocketcom") - Set(CALLERID(num)=); - switch(${CALLERID(RDNIS)}) { - case 7326260100: - jump 2@default; - break; - case 7326260101: - jump s@default; - break; - default: - jump 1@default; - break; - }; - }; -}; - -context pstn-in { - 3 => { - if ("${CALLERID(num)}" = "7322271677") - Set(CALLERID(num)=); - jump 3@default; - }; -}; - -context tario.net-in { - _X. => { - Set(CALLERID(name)=); - if("${CALLERID(num):-11:1}" = "8") - Set(CALLERID(num)=7${CALLERID(num):1}); - if("${SIP_HEADER(To)}" = "<sip:2271677@sipnet.ru>") { - jump 3@default; - } else if("${SIP_HEADER(To)}" = "<sip:2271653@sipnet.ru>") { - jump 1@default; - } else - jump 2@default; - }; -}; - -context from-callpacket { - 8058701100 => jump 2@default; - 3103622835 => { - Answer; - Ringing; - Wait(10); - Voicemail(b3103622835); - Hangup; - }; - a => Hangup; -}; - -context fromfwdOUT { // make sure we only accept US and Canada calls, limit to 30 minutes - includes { - fromfwdOUT-catchbad; - fromfwdOUT-isgood; - fromfwdOUT-catchall; - }; -}; - -context fromfwdOUT-isgood { - _17326260100 => jump 2@default; - _17326260101 => jump s@default; - _17322271653 => jump 1@default; - _17322271677 => jump 3@default; - _1NXXNXXXXXX => { - Set(CALLERID(name)=Sergey Okhapkin); -// Set(CALLERID(num)=7326260100); -// Dial(${TRUNCPROTO}/*67${EXTEN:${TRUNKMSD}}@${TRUNK},60,,L(1800000:60000)); - Dial(${CPPROTO}/${EXTEN}@${CPACKET2},60,,L(1800000:60000)); - }; -}; - -context fromfwdOUT-catchbad { //block bahamas, etc - _1900. => congestion ; //N11 - _1XXX976. => congestion ; //N11 - _1XXX555. => congestion ; //N11 - _1X11. => congestion ; //N11 - _1867. => congestion ; //Yukon (sorry mike) - - // exten => _1NPA Country - _1242. => congestion; //BAHAMAS - _1246. => congestion; //BARBADOS - _1264. => congestion; //ANGUILLA - _1268. => congestion; //ANTIGUA/BARBUDA - _1284. => congestion; //BRITISH VIRGIN ISLANDS - _1345. => congestion; //CAYMAN ISLANDS - _1441. => congestion; //BERMUDA - _1473. => congestion; //GRENADA - _1649. => congestion; //TURKS & CAICOS ISLANDS - _1664. => congestion; //MONTSERRAT - _1758. => congestion; //ST. LUCIA - _1767. => congestion; //DOMINICA - _1784. => congestion; //ST. VINCENT & GRENADINES - _1809. => congestion; //DOMINICAN REPUBLIC - _1829. => congestion; //DOMINICAN REPUBLIC - _1868. => congestion; //TRINIDAD AND TOBAGO - _1869. => congestion; //ST. KITTS AND NEVIS - _1876. => congestion; //JAMAICA - _1787. => congestion; //Puerto Rico 787, 939 $0.07 - _1939. => congestion; //Puerto Rico 787, 939 $0.07 - _1671. => congestion; //Guam 671 $0.08 - _1340. => congestion; //U.S. Virgin Islands 340 $0.06 -}; - -context fromfwdOUT-catchall { - _X. => Congestion; - h => Hangup ; //hangup event - i => Hangup ; //invalid event - t => Hangup ; //timeout event -}; - -context ael-demo { - s => { - Wait(1); - Answer(); - TIMEOUT(digit)=5; - TIMEOUT(response)=10; -restart: - Background(demo-congrats); -instructions: - for (x=0; ${x} < 3; x=${x} + 1) { - Background(demo-instruct); - WaitExten(); - }; - }; - 2 => { - Background(demo-moreinfo); - goto s|instructions; - }; - 3 => { - LANGUAGE()=fr; - goto s|restart; - }; - 500 => { - Playback(demo-abouttotry); - Dial(IAX2/guest@misery.digium.com); - Playback(demo-nogo); - goto s|instructions; - }; - 600 => { - Playback(demo-echotest); - Echo(); - Playback(demo-echodone); - goto s|instructions; - }; - _1234 => &std-exten-ael(${EXTEN}, "IAX2"); - # => { - Playback(demo-thanks); - Hangup(); - }; - t => jump #; - i => Playback(invalid); -}; - diff --git a/trunk/pbx/ael/ael-test/ael-test8/extensions.ael b/trunk/pbx/ael/ael-test/ael-test8/extensions.ael deleted file mode 100644 index 17bc74e6f..000000000 --- a/trunk/pbx/ael/ael-test/ael-test8/extensions.ael +++ /dev/null @@ -1,27 +0,0 @@ -context default -{ - -706/3077610011 => { - JabberStatus(asterisk|jmls@mike,StatusCode); - - switch(${StatusCode}) { - case 1: - Dial(SIP/706,12); - switch(${DIALSTATUS}) { - case BUSY: - Voicemail(b706); - break; - default: - Voicemail(u706); - }; - BackGround(hello); - break; - default: - Voicemail(u706); - }; - - Hangup(); - }; - -} - diff --git a/trunk/pbx/ael/ael-test/ael-vtest13/extensions.ael b/trunk/pbx/ael/ael-test/ael-vtest13/extensions.ael deleted file mode 100755 index b7e953e62..000000000 --- a/trunk/pbx/ael/ael-test/ael-vtest13/extensions.ael +++ /dev/null @@ -1,3183 +0,0 @@ -globals -{ - static=yes; - writeprotect=yes; - CONSOLE=Console/dsp; // Console interface for demo - IAXINFO=murf:tlhfckoct; // IAXtel username/password - FWDNUMBER=544788 ; // your calling number - FWDCIDNAME="Joe-Worker"; // your caller id - FWDPASSWORD=zingledoodle ; // your password - FWDRINGS=Zap/6 ; // the phone to ring - FWDVMBOX=1 ; // the VM box for this user -} - -macro std-exten( ext , dev ) -{ - Dial(${dev}/${ext},20); - switch(${DIALSTATUS}) - { - case BUSY: - Voicemail(b${ext}); - break; - case NOANSWER: - Voicemail(u${ext}); - break; - case ANSWER: - break; - default: - Voicemail(u${ext}); - } - catch a { - VoiceMailMain(${ext}); - } -} - -macro std-priv-exten_1( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_2( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_3( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_4( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_5( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_6( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_7( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_8( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_9( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_10( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_11( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_12( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_13( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_14( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_15( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_16( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_17( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_18( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_19( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_20( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_21( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_22( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_23( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_24( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_25( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_26( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_27( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_28( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_29( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_30( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_31( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_32( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_33( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_34( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_35( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_36( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_37( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_38( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_39( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_40( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_41( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_42( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_43( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_44( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_45( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_46( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_47( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_48( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_49( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_50( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_51( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_52( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_53( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_54( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_55( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_56( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_57( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_58( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_59( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_60( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_61( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_62( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_63( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_64( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_65( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_66( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_67( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_68( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_69( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_70( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_71( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_72( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten_73( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - - -macro std-priv-exten( dev, ext , timeout, opts, torcont, dontcont ) -{ - Dial(${dev},${timeout},${opts}); - NoOp(${DIALSTATUS} was chosen); - switch(${DIALSTATUS}) - { - case TORTURE: - goto ${torcont}|s|begin; - break; - case DONTCALL: - goto ${dontcont}|s|begin; - break; - case BUSY: - Voicemail(b${ext}); - break; - case ANSWER: - break; - case NOANSWER: - Voicemail(u${ext}); - break; - default: - Voicemail(u${ext}); - } -} - -macro fillcidname() -{ - if( "${CALLERID(num)}" = "" ) // nothing to work with, quit!!! - return; - Set(cidn=${DB(cidname/${CALLERID(num)})}); - if( "${CALLERID(name)}" != "" ) - { - if( ("${cidn}" = "Privacy Manager" & "${CALLERID(name)}" != "Privacy Manager") | "${cidn}" = "" ) // if the entry isn't in the database, - // or if an entry exists, and it's "Privacy Manager", empty, (or add other useless possibilities). - { - Set(DB(cidname/${CALLERID(num)})=${CALLERID(name)}); // then set or override what's in the DB - } - } - // Now, we fill in the callerid info from the incoming entry, if it's stuff worth using - // Ignore fundamentally semi-anonymous information from local cell phones - // if the db has an entry for this number, and it's not a canned string from a cell phone company - if( ( "${cidn}" != "" ) & ( "${CALLERID(name)}" = "" - | "${CALLERID(name)}" = "CODY,WY " - | "${CALLERID(name)}" = "POWELL,WY " - | "${CALLERID(name)}" = "WIRELESS CALLER" - | "${CALLERID(name)}" = "SUBSCRIBER,WIRE" - | "${CALLERID(name)}" = "CELLULAR ONE" - | "${CALLERID(name)}" = "Cellular One Customer" - | "${CALLERID(name)}" = "CELLULAR ONE " - | "${CALLERID(name)}" = "Privacy Manager" - | "${CALLERID(name)}" = "RIVERTON,WY " - | "${CALLERID(name)}" = "BASIN,WY " - | "${CALLERID(name)}" = "BILLINGS,MT " - | "${CALLERID(name)}" = "PROVO,UT " - | "${CALLERID(name)}" = "TOLL FREE " ) ) // put stuff in the above, that the phone company tends to put in your callerid, - // that you would rather override with DB info - // there's no way to guess them all, but you can get the most popular ones... - // why cell phones can't do CID like everybody else, ....? - { - Set(CALLERID(name)=${cidn}); // Override what the phone company provides with what's in the DB for this number. - } -} - -macro ciddial(dialnum, lookup, waittime, dialopts, ddev) -{ - Set(cidnu=${CALLERID(num)}); - Set(cidn=${DB(cidname/${lookup})}); - Set(CALLERID(name)=${cidn}); - Dial(${ddev}/${dialnum}|${waittime}|${dialopts}); - if( "${DIALSTATUS}" = "CHANUNAVAIL" ) - { - BackGround(try_voip); - CALLERID(num)=7075679201; - Dial(SIP/1${lookup}@tctwest,${waittime},${dialopts}); - if( "${DIALSTATUS}" = "CHANUNAVAIL" ) - { - BackGround(try_cell); - CALLERID(num)=${cidnu}; // put the original number back - Dial(Zap/2/${lookup},${waittime},${dialopts}); - } - } -} - -macro ciddial3(dialnum, lookup, waittime, dialopts, ddev) -{ - Set(cidnu=${CALLERID(num)}); - Set(cidn=${DB(cidname/${lookup})}); - Set(CALLERID(name)=${cidn}); - Dial(${ddev}/${dialnum}|${waittime}|${dialopts}); - if( "${DIALSTATUS}" = "CHANUNAVAIL" ) - { - BackGround(try_cell); - Dial(Zap/2/${lookup},${waittime},${dialopts}); - } -} - -macro ciddial2(dialnum, lookup, waittime, dialopts, ddev) // give priority to tctwest, then the ZAP in emergencies -{ - Set(cidn=${DB(cidname/${lookup})}); - Set(cidnu=${CALLERID(num)}); - Set(CALLERID(name)=${cidn}); - Set(CALLERID(num)=7075679201); - Dial(SIP/1${lookup}@tctwest,${waittime},${dialopts}); - if( "${DIALSTATUS}" = "CHANUNAVAIL" ) - { - Set(CALLERID(num)=${cidnu}); // put the original number back - BackGround(try_zap); - Dial(${ddev}/${dialnum},${waittime}|${dialopts}); - if( "${DIALSTATUS}" = "CHANUNAVAIL" ) - { - BackGround(try_cell); - Dial(Zap/2/${lookup},${waittime},${dialopts}); - } - } -} - -macro callerid-liar() -{ - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/priv-callerintros/LIAR.gsm&); - Background(priv-liar); // Script: OOOps! Sorry! I don't allow men with ski masks pulled over their - // faces to get in the front door, and unidentified callers won't fair - // any better. You entered *MY* phone number. That won't work. - // If you are telemarketing, cross me off the list, and don't call again. - // If you did this by mistake, forgive my defenses, and call again. - // Alternate: (priv-liar2) - // Script: You have chosen to try to deceive my system and withold your CallerID, - // by entering my own phone number as YOUR CallerID. I find this - // offensive because you are being dishonest. I will not do business nor - // waste my time talking to anyone who is less than honest and forthcoming. - // Take me off your call list and do not call me again. - Hangup(); -} - -macro callerid-bad() -{ - mycid=${CALLERID(num)}:"1([0-9]+)"; - Set(CALLERID(num)=${mycid}); - Wait(0); -} - -context privacyManagerFailed { - s => { - begin: - Background(PrivManInstructions); // Script: OOps, that didn't go well. You need to enter *your* area code, and *your* 7 digit - // phone number, for a total of 10 digits, or you'll be handed over to the monkeys. Let's - // try this again, and hopefully you can get past our front-line defenses! - PrivacyManager(); - if( "${PRIVACYMGRSTATUS}" = "FAILED" ) - { - Background(tt-allbusy); - Background(tt-somethingwrong); - Background(tt-monkeysintro); - Background(tt-monkeys); - Background(tt-weasels); - Hangup(); - } - else - { - goto homeline|s|postPriv; - } - } -} - -// Some comments -// Some more comments - -context homeline { - s => { - begin: - Answer(); - Set(repeatcount=0); - Zapateller(nocallerid); - PrivacyManager(); - if( "${PRIVACYMGRSTATUS}" = "FAILED" ) - { - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/privmanfailed.gsm); - &std-priv-exten(Zap/3r1&Zap/5r1,2,25,mtw,telemarket,telemarket); - Hangup(); - return; -// goto privacyManagerFailed|s|begin; - } - postPriv: - &fillcidname(); - Set(CONFCIDNA=${CALLERID(name)}); - Set(CONFCIDNU=${CALLERID(num)}); - AGI(callall); - AGI(submit-announce.agi); - if( "${CALLERID(num)}" : "1" ) - { - &callerid-bad(); - } - if( "${CALLERID(num)}" = "7077577685" & "${CALLERID(name)}" : "Privacy Manager" ) - { - &callerid-liar(); - } - TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&); - Set(lds=${DB(playlds/${CALLERID(num)})}); - if( "${lds}" = "1" ) - { - SetMusicOnHold(mohlds); - } - direct=${DB(DirectCall/${CALLERID(num)})}; - if( "${direct}" != "" & ${direct} != 0 ) - { - verbose(direct is XXX#${direct}XXXX); - Playback(greetings/direct); // Welcome to the Murphy residence. This system will automatically try to connect you to... - Playback(/var/spool/asterisk/voicemail/default/${direct}/greet); - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/${direct}/greet.wav&); - switch(${direct}) - { - case 1: //Steve - &std-priv-exten(Zap/6r3&Sip/murf,1,25,mpA(beep)tw,telemarket,telemarket); - goto s|loopback; - case 2: //Sonya - &std-priv-exten(Zap/3r1&Zap/5r1,2,25,mtw,telemarket,telemarket); - goto s|loopback; - default: // all the kids - Set(z=${direct}-2); - goto homeline-kids|${z}|1; - } - } - loopback: - ifTime(*|*|20-25|dec) - { - Playback(greetings/christmas); - } - else ifTime(*|*|31|dec) - { - Playback(greetings/newyear); - } - else ifTime(*|*|1|jan) - { - Playback(greetings/newyear); - } - else ifTime(*|*|14|feb) - { - Playback(greetings/valentines); - } - else ifTime(*|*|17|mar) - { - Playback(greetings/stPat); - } - else ifTime(*|*|31|oct) - { - Playback(greetings/halloween); - } - else ifTime(*|mon|15-21|jan) - { - Playback(greetings/mlkDay); - } - else ifTime(*|thu|22-28|nov) - { - Playback(greetings/thanksgiving); - } - else ifTime(*|mon|25-31|may) - { - Playback(greetings/memorial); - } - else ifTime(*|mon|1-7|sep) - { - Playback(greetings/labor); - } - else ifTime(*|mon|15-21|feb) - { - Playback(greetings/president); - } - else ifTime(*|sun|8-14|may) - { - Playback(greetings/mothers); - } - else ifTime(*|sun|15-21|jun) - { - Playback(greetings/fathers); - } - else - { - Playback(greetings/hello); // None of the above? Just a plain hello will do - } - Background(murphy-homeline-intro1); // Script: Hello-- Welcome to the Murphy's! If you already know what - // option you want, you don't have to wait for this entire spiel-- just - // have at it. - // If you are calling because this number is on a list of some sort, dial 6. - // If you want Sonya, dial 1. - // If you want one of the kids, dial 2. - // If you want Steve, dial 3. - // to play with your introduction, dial 5. - // If we don't seem to be giving you the time of day, try 7. - // Have a good day! - - } - 1 => { // Sonya - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/2/greet.wav&); - &std-priv-exten(Zap/3r1&Zap/5r1,2,25,mtw,telemarket,telemarket); - goto s|loopback; - } - 2 => { // Kids - goto homeline-kids|s|begin; - } - 21 => { - Dial(IAX2/seaniax,20,T); - } - 3 => { // Steve - &std-priv-exten(Zap/6r3&Sip/murf,1,25,mpA(beep)tw,telemarket,telemarket); - goto s|loopback; - } - 4 => { // Voicemail - VoicemailMain(); - goto s|loopback; - } - 5 => { // play with intro - goto home-introduction|s|begin; - } - 6 => { // Telemarketers - goto telemarket|s|begin; - } - 7 => { // time of day, riddle - agi(tts-riddle.agi); - Background(gsm/what-time-it-is2); - SayUnixTime(); - goto s|loopback; - } - 792 => { // Page All - goto pageall|s|begin; - } - 793 => { // check the tone recognition - Read(zz,,0,,1,0); - SayDigits(${zz}); - } - t => { - Set(repeatcount=${repeatcount} + 1); - if( ${repeatcount} < 3 ) - { - goto s|loopback; // just loopback isn't enough - } - Hangup(); - } - i => { - Background(invalid); - goto s|loopback; - } - o => { - Congestion(); - } - fax => { - Dial(Zap/4); - } -} - -// Some comments -// Some more comments - -context pageall { - s => { - begin: - AGI(callall); - MeetMe(5555,dtqp); - MeetMeAdmin(5555,K); - Hangup(); - } - - h => { - begin: - MeetMeAdmin(5555,K); - Background(conf-muted); - Hangup(); - } -} - -// Some comments -// Some more comments - -context add-to-conference { - start => { - NoCDR(); - MeetMe(5555,dmqp); - } - h => { - Hangup(); - } -} - -context home-introduction { - s => { - begin: - Background(intro-options); // Script: To hear your Introduction, dial 1. - // to record a new introduction, dial 2. - // to return to the main menu, dial 3. - // to hear what this is all about, dial 4. - } - 1 => { - Playback(priv-callerintros/${CALLERID(num)}); - goto s|begin; - } - 2 => { - goto home-introduction-record|s|begin; - } - 3 => { - goto homeline|s|loopback; - } - 4 => { - Playback(intro-intro); // Script: - // This may seem a little strange, but it really is a neat - // thing, both for you and for us. I've taped a short introduction - // for many of the folks who normally call us. Using the Caller ID - // from each incoming call, the system plays the introduction - // for that phone number over a speaker, just as the call comes in. - // This helps the folks - // here in the house more quickly determine who is calling. - // and gets the right ones to gravitate to the phone. - // You can listen to, and record a new intro for your phone number - // using this menu. - goto s|begin; - } - t => { - goto s|begin; - } - i => { - Background(invalid); - goto s|begin; - } - o => { - goto s|begin; - } -} - -context home-introduction-record { - s => { - begin: - Background(intro-record-choices); // Script: - // If you want some advice about recording your - // introduction, dial 1. - // otherwise, dial 2, and introduce yourself after - // the beep. - } - 1 => { - Playback(intro-record); - // Your introduction should be short and sweet and crisp. - // Your introduction will be limited to 10 seconds. - // This is NOT meant to be a voice mail message, so - // please, don't say anything about why you are calling. - // After we are done making the recording, your introduction - // will be saved for playback. - // If you are the only person that would call from this number, - // please state your name. Otherwise, state your business - // or residence name instead. For instance, if you are - // friend of the family, say, Olie McPherson, and both - // you and your kids might call here a lot, you might - // say: "This is the distinguished Olie McPherson Residence!" - // If you are the only person calling, you might say this: - // "This is the illustrious Kermit McFrog! Pick up the Phone, someone!!" - // If you are calling from a business, you might pronounce a more sedate introduction,like, - // "Fritz from McDonalds calling.", or perhaps the more original introduction: - // "John, from the Park County Morgue. You stab 'em, we slab 'em!". - // Just one caution: the kids will hear what you record every time - // you call. So watch your language! - // I will begin recording after the tone. - // When you are done, hit the # key. Gather your thoughts and get - // ready. Remember, the # key will end the recording, and play back - // your intro. Good Luck, and Thank you!" - goto 2|begin; - } - 2 => { - begin: - Background(intro-start); - // OK, here we go! After the beep, please give your introduction. - Background(beep); - Record(priv-callerintros/${CALLERID(num)}:gsm,3); - Background(priv-callerintros/${CALLERID(num)}); - goto home-introduction|s|begin; - } - t => { - goto s|begin; - } - i => { - Background(invalid); - goto s|begin; - } - o => { - goto s|begin; - } -} - -context homeline-kids { - s => { - begin: - Background(murphy-homeline-kids); // Which Kid? 1=Sean, 2:Eric, 3:Ryan, 4:Kyle, 5:Amber, 6:Alex, 7:Neal - } - 1 => { // SEAN - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/3/greet.wav&); - // &std-priv-exten(Zap/3r2&Zap/5r2,3,35,mtw,telemarket,telemarket); - &std-priv-exten(IAX2/seaniax&Zap/5r2,3,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - } - 2 => { // ERIC - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/4/greet.wav&); - Voicemail(u4); - goto homeline|s|loopback; - - // SetMusicOnHold(erics); - // TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - // TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/4/greet.wav&); - // &std-priv-exten(Zap/3r2&Zap/5r2,4,35,mtw,telemarket,telemarket); - // goto homeline|s|loopback; - } - 3 => { // RYAN - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/5/greet.wav&); - &std-priv-exten(Zap/3r2&Zap/5r2,5,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - } - 4 => { // KYLE - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/6/greet.wav&); - &std-priv-exten(Zap/3r2&Zap/5r2,6,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - } - 5 => { - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/7/greet.wav&); - &std-priv-exten(Zap/3r2&Zap/5r2,7,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - - } - 6 => { - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/8/greet.wav&); - &std-priv-exten(Zap/3r2&Zap/5r2,8,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - } - 7 => { - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/9/greet.wav&); - &std-priv-exten(Zap/3r2&Zap/5r2,9,35,mtw,telemarket,telemarket); - goto homeline|s|loopback; - } - t => { - goto s|begin; - } - i => { - Background(invalid); - goto s|begin; - } - o => { - goto s|begin; - } -} - -context voipworkline { - s => { - begin: - Answer(); - TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&); - goto workline|s|loopback; - } - 7075679201 => { - Answer(); - TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&); - goto workline|s|loopback; - } -} - -context workline { - s => { - begin: - Answer(); - Wait(1); - Set(repeatcount=0); - Zapateller(nocallerid); -// PrivacyManager(); -// if( "${PRIVACYMGRSTATUS}" = "FAILED" ) -// { -// goto privacyManagerFailed|s|begin; -// } - &fillcidname(); - TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&); - loopback: - Background(greetings/greeting); //script: Hello - Background(murphy-office-intro1); //script: welcome to Steve Murphy's office. If you are dialing - // this number because it was on a calling list of any sort, dial 6. - // Otherwise, dial 1, and hopefully, you will reach Steve. - } - 1 => { - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm); - TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/1/greet.wav&); - - &std-priv-exten(Zap/6&Sip/murf,1,30,mtw,telemarket,telemarket); - goto s|loopback; - } - 4 => { - VoicemailMain(); - goto s|loopback; - } - 6 => { - goto telemarket|s|begin; - } - 793 => { // check the tone recognition - Read(zz,,0,,1,0); - SayDigits(${zz}); - } - t => { - repeatcount=${repeatcount} + 1; - if( ${repeatcount} < 3 ) - { - goto s|loopback; // just loopback isn't enough - } - Hangup(); - } - i => { - Background(invalid); - goto s|loopback; - } - o => { - Congestion(); - } - fax => { - Answer(); - Dial(Zap/4); - } -} - -context dialFWD { - ignorepat => 8; - ignorepat => 9; - _83. => { - Set(CALLERID(name)=${FWDCIDNAME}); - Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:2},60,r); - Congestion(); - } - _82NXX => { - Set(CALLERID(name)=${FWDCIDNAME}); - Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:2},60,r); - Congestion(); - } - _92NXX => { - Set(CALLERID(name)=${FWDCIDNAME}); - Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:2},60,r); - Congestion(); - } -} - -context dialiaxtel { - ignorepat => 8; - ignorepat => 9; - _81700NXXXXXX => { - Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel); - } - _81800NXXXXXX => { - Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel); - } - _91700NXXXXXX => { - Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel); - } - _91800NXXXXXX => { - Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel); - } - -} - -context dialgoiax { - ignorepat => 9; - _93. => { - Set(CALLERID(name)="Joe Worker"); - Dial(IAX2/878201007658:stickyfinger295@server1.goiax.com/${EXTEN:2},60,r); - Congestion(); - } - -} - -context homefirst { - ignorepat => 9; - _91NXXNXXXXXX => { - &ciddial(${EXTEN:1},${EXTEN:2},30,TW,Zap/1); - } - _9754XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9574XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9202XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9219XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9254XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9716XXXX => { - &ciddial(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9NXXXXXX => { - &ciddial(1707${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9011. => { - &ciddial(${EXTEN:1},${EXTEN:1},30,TW,Zap/1); - } - _9911 => { - Dial(Zap/1/911,30,T); - } - _9411 => { - Dial(Zap/1/411,30,T); - } -} - -context workfirst { - ignorepat => 9; - _91NXXNXXXXXX => { - &ciddial2(${EXTEN:1},${EXTEN:2},30,TW,Zap/1); - } - _9754XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9574XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9202XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9219XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9254XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9716XXXX => { - &ciddial2(${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9NXXXXXX => { - &ciddial2(1707${EXTEN:1},707${EXTEN:1},30,TW,Zap/1); - } - _9911 => { - Dial(Zap/1/911,30,T); - } - _9411 => { - Dial(Zap/1/411,30,T); - } -} - -context force_cell { - ignorepat => 8; - _81NXXNXXXXXX => { - &ciddial(${EXTEN:1}#,${EXTEN:2},30,TW,Zap/2); - } - _8754XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8574XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8202XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8219XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8254XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8716XXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8NXXXXXX => { - &ciddial(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/2); - } - _8911 => { - Dial(Zap/1/911|30|T); - } - _8411 => { - Dial(Zap/1/411|30|T); - } -} - -context force_home { - ignorepat => 8; - _81NXXNXXXXXX => { - &ciddial3(${EXTEN:1}#,${EXTEN:2},30,TW,Zap/1); - } - _8754XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8574XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8202XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8219XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8254XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8716XXXX => { - &ciddial3(${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8NXXXXXX => { - &ciddial3(1707${EXTEN:1}#,707${EXTEN:1},30,TW,Zap/1); - } - _8911 => { - Dial(Zap/1/911|30|T); - } - _8411 => { - Dial(Zap/1/411|30|T); - } -} - -context homeext { - ignorepat => 8; - ignorepat => 9; - includes { - parkedcalls; - homefirst; - force_cell; - } - s => { - loopback: - Wait(0); - } - 1 => { - &std-priv-exten(Zap/3&Zap/5,2,35,mtw,telemarket,telemarket); - goto s|loopback; - } - 2 => { - &std-priv-exten(Zap/6&Zap/5,1,35,mpA(beep3)Tt,telemarket,telemarket); - goto s|loopback; - } - 4 => { - VoicemailMain(); - } - 5 => { - Record(recording:gsm); - Background(recording); - } - 6 => { - Background(recording); - } - 760 => { - DateTime(); - goto s|loopback; - } - 761 => { - Record(announcement:gsm); - TrySystem(/usr/bin/play /var/lib/asterisk/sounds/announcement.gsm&); - goto s|loopback; - } - 762 => { - agi(tts-riddle.agi); - Background(gsm/what-time-it-is2); - SayUnixTime(); - goto s|loopback; - } - 763 => { - Set(CALLERID(num)=); - Dial(Zap/6r3,35,mptA(beep3)); //results: it should ALWAYS ask for an intro; the intro should not be left behind - Hangup(); - } - 764 => { - Set(CALLERID(num)=); - Dial(Zap/6r3,35,mptnA(beep3)); //results: Don't save the intro; shouldn't anyway if no callerid - Hangup(); - } - 765 => { - Set(CALLERID(num)=); - Dial(Zap/6r3,35,mptNA(beep3)); //results: Don't screen if there's CALLERID; it should screen the call. - Hangup(); - } - 766 => { - Dial(Zap/6r3,35,mptNA(beep3)); //results: Don't screen if there's CALLERID; it should screen the call. - Hangup(); - } - 767 => { - Dial(Zap/6r3,35,mptnA(beep3)); //results: Don't save the intro; the interesting case, because callerID should be present. - Hangup(); - } - 769 => { - Playtones(dial); - Wait(2); - Playtones(busy); - Wait(2); - Playtones(ring); - Wait(2); - Playtones(congestion); - Wait(2); - Playtones(callwaiting); - Wait(2); - Playtones(dialrecall); - Wait(2); - Playtones(record); - Wait(2); - Playtones(info); - Wait(5); - Hangup(); - } - 790 => { - MeetMe(790,p); - } - 792 => { - goto pageall|s|begin; - } - 795 => { - AGI(wakeup.agi);Congestion(); - } - 544716 => { // Incoming call from FWD - TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&); - goto s|loopback; - } - - i => { - Background(invalid); - goto s|loopback; - } - o => { - goto s|loopback; - } - t => { - Congestion(); - } -} - -context fromvmhome { - 1 => { - Dial(Zap/6&Sip/murf|20|Tt); - } - 2 => { - Dial(Zap/3&Zap/5|20|Tt); - } - _707202XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707219XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707254XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707716XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707754XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707574XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _NXXNXXXXXX => { - &ciddial(1${EXTEN},${EXTEN},30,TW,Zap/1); - } - _1NXXNXXXXXX => { // HAND DIALING - &ciddial(${EXTEN},${EXTEN:1},30,TW,Zap/1); - } - _754XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _574XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _NXXXXXX => { - &ciddial(1707${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _911 => { - &ciddial(911,911,30,TW,Zap/1); - } - _411 => { - &ciddial(411,411,30,TW,Zap/1); - } -} - -context fromvmwork { - 1 => { - Dial(Zap/6&Sip/murf|20|Tt); - } - 2 => { - Dial(Zap/3&Zap/5|20|Tt); - } - _707202XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707219XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707254XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707716XXXX => { - &ciddial(1${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707754XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707574XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _NXXNXXXXXX => { - &ciddial(1${EXTEN},${EXTEN},30,TW,Zap/1); - } - _1NXXNXXXXXX => { // HAND DIALING - &ciddial(${EXTEN},${EXTEN:1},30,TW,Zap/1); - } - _754XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _574XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _NXXXXXX => { - &ciddial(1707${EXTEN},707${EXTEN},30,TW,Zap/1); - } - 911 => { - &ciddial(911,911,30,TW,Zap/1); - } - 411 => { - &ciddial(411,411,30,TW,Zap/1); - } -} - -context fromSeanUniden { - includes - { - parkedcalls; - } - 21 => { - Dial(IAX2/seaniax,20,T); - } - _707202XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707219XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707254XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707716XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707754XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _707574XXXX => { - &ciddial(${EXTEN:3},${EXTEN},30,TW,Zap/1); - } - _NXXNXXXXXX => { - &ciddial(1${EXTEN},${EXTEN},30,TW,Zap/1); - } - _1NXXNXXXXXX => { - &ciddial(${EXTEN},${EXTEN:1},30,TW,Zap/1); - } - _754XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _574XXXX => { - &ciddial(${EXTEN},707${EXTEN},30,TW,Zap/1); - } - _NXXXXXX => { - &ciddial(1707${EXTEN},707${EXTEN},30,TW,Zap/1); - } - 911 => { - &ciddial(911,911,30,TW,Zap/1); - } - 411 => { - &ciddial(411,411,30,TW,Zap/1); - } -} - -context workext { - ignorepat => 8; - ignorepat => 9; - includes { - parkedcalls; - workfirst; - force_home; - dialFWD; - dialiaxtel; - dialgoiax; - } - s => { - loopback: - Wait(0); - } - 1 => { - Dial(Zap/3&Zap/5,20,tT); - } - 2 => { - Dial(Zap/5&Zap/6,20,tT); - } - 21 => { - Dial(IAX2/seaniax,20,T); - } - 22 => { - Set(CALLERID(num)=1234567890); - Set(CALLERID(name)=TestCaller); - Dial(Zap/5,20,mP()A(beep)tw); - NoOp(here is dialstatus: ${DIALSTATUS}...); - goto s|loopback; - } - 4 => { - VoicemailMain(); - goto s|loopback; - } - 5 => { - Record(recording:gsm); - Background(recording); - } - 6 => { - ZapBarge(); - } - 760 => { - DateTime(); - goto s|loopback; - } - 761 => { - ZapBarge(); - goto s|loopback; - } - 765 => { - Playback(demo-echotest); - Echo(); - Playback(demo-echodone); - goto s|loopback; - } - 766 => { - Festival(The other thing to watch is neuro-electronics: the ability to interface technology with our neural system: My wife: Sigrid: has had a cochlear implant since 1996. This once profoundly deaf person now uses the phone: recognizes accents: and listens to movies and recorded books.); - goto s|loopback; - } - 767 => { - agi(tts-riddle.agi); - Background(gsm/what-time-it-is2); - SayUnixTime(); - goto s|loopback; - } - 768 => { - agi(tts-computer.agi); - } - 771 => { - eagi(eagi-test); - agi(my-agi-test); - } - 772 => { - agi(wakeup.agi); - } - 775 => { - if( ${EXTEN}=${EXTEN} ) - { - BackGround(digits/1); - } - else - { - BackGround(digits/0); - } - if( ${EXTEN}=${LANGUAGE} ) - { - BackGround(digits/1); - } - else - { - BackGround(digits/0); - } - BackGround(digits/2); - } - 776 => { - Set(TEST=00359889811777); - if( ${TEST}= 00359889811777 ) - { - BackGround(digits/1); - } - else - { - BackGround(digits/0); - } - if( ${TEST}= 00359889811888 ) - { - BackGround(digits/1); - } - else - { - BackGround(digits/0); - } - Hangup(); - } - 790 => { - MeetMe(790,p); - } - 792 => { - goto pageall|s|begin; - } - 793 => { - #include "include1.ael2" - } - 795 => { - AGI(wakeup.agi); - Congestion(); - } - 797 => { - Set(CONFCIDNA=${CALLERID(name)}); - Set(CONFCIDNU=${CALLERID(num)}); - AGI(callall); - AGI(submit-announce.agi); - Hangup(); - } -} - -context wakeup { - 3 => { - Dial(Zap/3|30); - } - 4 => { - Dial(Zap/4|30); - - } - 5 => { - Dial(Zap/5|30); - - } - 6 => { - Dial(Zap/6|30); - - } - 99 => { - Dial(IAX2/murfiaxphone|30); - } - 97 => { - Dial(IAX2/ryaniax|30); - } - 94 => { - Dial(IAX2/seaniax|30); - } -} - -context announce-all { - s => { - begin: - MeetMe(5555,dtqp); - MeetMeAdmin(5555,K); - Hangup(); - } - h => { - MeetMeAdmin(5555,K); - Hangup(); - } -} - -// now include the telemarketer torture scripts! - -#include "telemarket_torture.ael2" - - diff --git a/trunk/pbx/ael/ael-test/ael-vtest13/include1.ael2 b/trunk/pbx/ael/ael-test/ael-vtest13/include1.ael2 deleted file mode 100644 index 80c562cb2..000000000 --- a/trunk/pbx/ael/ael-test/ael-vtest13/include1.ael2 +++ /dev/null @@ -1,3 +0,0 @@ - NoOp(Hello, this is included from include1.ael2); - #include "include2.ael2" - diff --git a/trunk/pbx/ael/ael-test/ael-vtest13/include2.ael2 b/trunk/pbx/ael/ael-test/ael-vtest13/include2.ael2 deleted file mode 100644 index 8d892fb0c..000000000 --- a/trunk/pbx/ael/ael-test/ael-vtest13/include2.ael2 +++ /dev/null @@ -1,4 +0,0 @@ - NoOp(This was included from include2.ael2); - #include "include3.ael2" - #include "include4.ael2" - diff --git a/trunk/pbx/ael/ael-test/ael-vtest13/include3.ael2 b/trunk/pbx/ael/ael-test/ael-vtest13/include3.ael2 deleted file mode 100644 index 3c6c1e3dd..000000000 --- a/trunk/pbx/ael/ael-test/ael-vtest13/include3.ael2 +++ /dev/null @@ -1,2 +0,0 @@ - NoOp(This is include3.ael2!); - #include "include5.ael2" diff --git a/trunk/pbx/ael/ael-test/ael-vtest13/include4.ael2 b/trunk/pbx/ael/ael-test/ael-vtest13/include4.ael2 deleted file mode 100644 index 7d3703a5e..000000000 --- a/trunk/pbx/ael/ael-test/ael-vtest13/include4.ael2 +++ /dev/null @@ -1,2 +0,0 @@ - NoOp(This is include4.ael2! Isn't it cool!?!?!?!); - NoOp(4 doesn't include anything); diff --git a/trunk/pbx/ael/ael-test/ael-vtest13/include5.ael2 b/trunk/pbx/ael/ael-test/ael-vtest13/include5.ael2 deleted file mode 100644 index 0e18983ef..000000000 --- a/trunk/pbx/ael/ael-test/ael-vtest13/include5.ael2 +++ /dev/null @@ -1 +0,0 @@ - NoOp(Include5.ael2 doesn't include anything, either!); diff --git a/trunk/pbx/ael/ael-test/ael-vtest13/telemarket_torture.ael2 b/trunk/pbx/ael/ael-test/ael-vtest13/telemarket_torture.ael2 deleted file mode 100755 index ebd8e9f2f..000000000 --- a/trunk/pbx/ael/ael-test/ael-vtest13/telemarket_torture.ael2 +++ /dev/null @@ -1,812 +0,0 @@ -// -// AN EXCERSIZE IN BAD DIALPLAN DESIGN -// (What better testing ground than on telemarketers?) -// - - -// BAD DESIGN: long, boring introductions followed by long, drawn out menus of choices. -// if they survive to the last option, how will they remember the choices? -// - -// BAD DESIGN: Amateur Recording. Poor voice quality, too quiet. -// Also, the announcer is definitely not vocally gifted. -// Also, the long pauses and clicks between the intro -// and menu choices might lead some to think that -// the announcements are over, and hang up. Too bad! - -// WORSE DESIGN: Instead of using the Background application, the Playback -// application is used. After taking so much time and trouble -// to record this material, the caller must listen and enjoy -// every syllable before they can make an option choice. None -// of that interrupting with a choice. We want them to savour -// every word! - -// GOOD/BAD, ER INSIDIOUS -- DANGLE A CARROT-- GIVE THE LISTENER A GOOD REASON TO -// HANG ON AND VOLUNTARILY LISTEN TO THE TORTURE. -// BUT, DON'T MAKE PROMISES YOU WON'T KEEP! - - -context telemarket { - s => { - begin: - Playback(telemarketer-intro); // ; Script: - // Due to the extremely high volume of calls from everything from telemarketers - // to Septic System Bacteria vendors, we are asking all such organizations - // to remove this number from their call list, or as need be, to add this - // number to their No-Call list, whichever is relevent. - - // [THE CARROT:] - // We HAVE made some exceptions, and if you wish to see if your organization - // has been exempted, please listen to and follow the following prompts. - // - // Otherwise, please Cease calling this number! - // - Playback(telemarketer-choices); - // if you represent a charitable organization, please dial 1, - // if you represent a political organization, please dial 2. - // if you represent a polling company, please dial 3, - // if you represent a market research organization, please dial 4. - // if you represent a magazine or newsletter, please dial 5. - // if you represent a commercial organization, please dial 6. - } - 1 => goto telemarket-charity|s|begin; - 2 => goto telemarket-political|s|begin; - 3 => goto telemarket-pollster|s|begin; - 4 => goto telemarket-research|s|begin; - 5 => goto telemarket-magazine|s|begin; - 6 => goto telemarket-commercial|s|begin; - 7 => goto telemarket-other|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - -context telemarket-charity { - s => { - begin: - Playback(telemark-charity-intro); - // We have contributed generously to many worthy causes in the past, and will - // continue to do so in the future. But we suspect that such organizatons - // have sold our name and phone number to each other until we are now hounded - // day and night by literally hundreds of such organizations. - // Enough is Enough! - // - // If we have contributed to your cause in the past, we may, perhaps, be disposed to - // do so in the future, at our option, - // we give no pledges nor make any commitments here. - // Send us material via the post if you feel this necessary - // but do not even consider email. Any email or further phone calls from your organization - // in the future, will be considered an act of aggression, and we will - // blacklist your organization for the rest of our natural lives. - // - // To see if your organization is exempt from these prohibitions, please - // comply with the following options. - Playback(telemark-charity-choices); - // If your organization is disease or genetic defect related, dial 1, - // If your organization is handicap related, dial 2. - // If your organization is a police or fireman or other similar support entity, please dial 3. - // If your organization is a grade school to high school related - // fund raiser or other type of activity, please dial 4. - // If your organization is a college or univerity or alumnis organization, please dial 5. - // If your organization is animal rights or ecology related organization, please dial 6. - // If your organization is a political action or candidate support related, please dial 7. - // If your organization is a substance abuse related organization or cause, please dial 8. - // And any other charity or tax exempt organization should dial 9. - } - 1 => goto telemarket-char-disease|s|begin; - 2 => goto telemarket-char-handicap|s|begin; - 3 => goto telemarket-char-police|s|begin; - 4 => goto telemarket-char-school|s|begin; - 5 => goto telemarket-char-college|s|begin; - 6 => goto telemarket-char-animal|s|begin; - 7 => goto telemarket-char-candidate|s|begin; - 8 => goto telemarket-char-abuse|s|begin; - 9 => goto telemarket-char-other|s|begin; -// BAD DESIGN: referring all timeouts,invalid choices, etc, back to the root of the menu tree will frustrate users no end! -// WORSE DESIGN: How about having the user have to push a button to repeat the current menu? When a time out could just -// automatically do it for the user? - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - -context telemarket-char-disease { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-handicap { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-police { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-school { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-college { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-animal { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-candidate { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-abuse { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-char-other { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-sorry { - s => { - begin: - Playback(telemarket-sorry); - // Sorry -- your organization is not exempt. Please stop calling us. - // Thank you. goodbye. - Hangup(); - } -} - - -// BAD DESIGN: Hanging up on your audience, no matter what the outcome, is not a nice thing to do! - -context telemarket-exception { - s => { - begin: - Playback(telemarket-success); - // Congratulations. Your organization IS exempt. Please call us back, - // but this time, just act like a normal caller. Thank you. Goodbye. - Hangup(); - } -} - - -// BAD DESIGN: Making long cascading menu choices is a nasty thing to do to callers! -// BAD DESIGN: Putting the most frequently encountered items at the end of a list is also a nasty thing to do! - - -// GOOD DESIGN: All rejection notices use a single context. All Acceptance also. To change a rejection to an -// acceptance, just change the reference from telemarket-sorry to telemarket-exception - - -context telemarket-political { - s => { - begin: - Playback(telemark-polit-intro); - // To see if your organization is exempt from our prohibitions, - // please follow the following prompts. - // please note that they are not in alphabetical order, and you will have to - // give them your full attention. - Playback(telemark-polit-choices); - // if You represent the America First Party, dial 1. - // if You represent the American Party, dial 2. - // if You represent the American Heritage Party, dial 3. - // if You represent the American Independent Party, dial 4. - // if You represent the American Nazi Party, dial 5. - // if You represent the Pot Party, dial 6. - // if You represent the American Reform Party, dial 7. - // if You represent the Christian Falenqist Party of America, dial 8. - // all others, please dial 9. - } - 1 => goto telemarket-poli-Am1st|s|begin; - 2 => goto telemarket-poli-American|s|begin; - 3 => goto telemarket-poli-AmHer|s|begin; - 4 => goto telemarket-poli-AmInd|s|begin; - 5 => goto telemarket-poli-AmNaz|s|begin; - 6 => goto telemarket-poli-Pot|s|begin; - 7 => goto telemarket-poli-AmRef|s|begin; - 8 => goto telemarket-poli-CFP|s|begin; - 9 => goto telemarket-political2|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - -context telemarket-political2 { - s => { - begin: - Playback(telemark-politx-intro); - // Thank you for your patience, and I congratulate you for your persistence. - // Just a few more options! - // - Playback(telemark-polit2-choices); - // if You represent the Communist Party USA, dial 1. - // if You represent the Constitution Party, dial 2. - // if You represent the Family Values Party, dial 3. - // if You represent the Freedom Socialist Party, dial 4. - // if You represent the Grass Roots Party, dial 5. - // if You represent the Green Party, dial 6. - // if You represent the Greens Party, dial 7. - // if You represent the Independence Party, dial 8. - // all others, goto 9. - } - 1 => goto telemarket-poli-Communist|s|begin; - 2 => goto telemarket-poli-Constit|s|begin; - 3 => goto telemarket-poli-FamVal|s|begin; - 4 => goto telemarket-poli-FreedSoc|s|begin; - 5 => goto telemarket-poli-Grassroot|s|begin; - 6 => goto telemarket-poli-Green|s|begin; - 7 => goto telemarket-poli-Greens|s|begin; - 8 => goto telemarket-poli-Independence|s|begin; - 9 => goto telemarket-political3|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - -context telemarket-political3 { - s => { - begin: - Playback(telemark-politx-intro); - Playback(telemark-polit3-choices); - // if You represent the Independant American Party, dial 1. - // if You represent the Labor Party, dial 2. - // if You represent the Libertarian Party, dial 3. - // if You represent the Light Party, dial 4. - // if You represent the Natural Law Party, dial 5. - // if You represent the New Party, dial 6. - // if You represent the New Union Party, dial 7. - // if You represent the Peace and Freedom Party, dial 8. - // all others, hang on, dial 9. - } - 1 => goto telemarket-poli-IndAm|s|begin; - 2 => goto telemarket-poli-Labor|s|begin; - 3 => goto telemarket-poli-Liber|s|begin; - 4 => goto telemarket-poli-Light|s|begin; - 5 => goto telemarket-poli-NatLaw|s|begin; - 6 => goto telemarket-poli-New|s|begin; - 7 => goto telemarket-poli-NewUn|s|begin; - 8 => goto telemarket-poli-PeaceFree|s|begin; - 9 => goto telemarket-political4|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-political4 { - s => { - begin: - Playback(telemark-politx-intro); - Playback(telemark-polit4-choices); - // if You represent the Prohibition Party, dial 1. - // if You represent the Reform Party, dial 2. - // if You represent the Revolution , dial 3. - // if You represent the Socialist Party USA, dial 4. - // if You represent the Socialist Action Party, dial 5. - // if You represent the Socialist Equality Party, dial 6. - // if You represent the Socialist Labor Party, dial 7. - // if You represent the Socialist Workers Party, dial 8. - // all others, hang on, and dial 9. - } - 1 => goto telemarket-poli-Prohib|s|begin; - 2 => goto telemarket-poli-Ref|s|begin; - 3 => goto telemarket-poli-Revol|s|begin; - 4 => goto telemarket-poli-SocPart|s|begin; - 5 => goto telemarket-poli-SocAct|s|begin; - 6 => goto telemarket-poli-SocEq|s|begin; - 7 => goto telemarket-poli-SocLab|s|begin; - 8 => goto telemarket-poli-SocWork|s|begin; - 9 => goto telemarket-political5|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-political5 { - s => { - begin: - Playback(telemark-politx-intro); - Playback(telemark-polit5-choices); - // if You represent the Southern Party, dial 1. - // if You represent the Southern Independence Party, dial 2. - // if You represent the US Pacifist Party, dial 3. - // if You represent the We the People Party, dial 4. - // if You represent the Workers World Party, dial 5. - // if You represent the Democratic Party, dial 6. - // if You represent the Republican Party, dial 7. - // all others, may dial 8. - } - 1 => goto telemarket-poli-South|s|begin; - 2 => goto telemarket-poli-SoInd|s|begin; - 3 => goto telemarket-poli-USPac|s|begin; - 4 => goto telemarket-poli-WTP|s|begin; - 5 => goto telemarket-poli-WWP|s|begin; - 6 => goto telemarket-poli-Democrat|s|begin; - 7 => goto telemarket-poli-Repub|s|begin; - 8 => goto telemarket-poli-other|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-poli-other { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Repub { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Democrat { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-WWP { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-WTP { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-USPac { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SoInd { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-South { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SocWork { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SocLab { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SocEq { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SocAct { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-SocPart { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Revol { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Ref { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Prohib { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-PeaceFree { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-NewUn { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-New { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-NatLaw { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Light { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Liber { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Labor { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-IndAm { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Independence { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Greens { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Green { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Grassroot { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-FreedSoc { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-FamVal { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Constit { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Communist { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-CFP { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-AmRef { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -// BAD DESIGN: Putting in infinite loops in the menus, whether by design or mistake is not nice! -context telemarket-poli-Pot { - s => { - begin: - goto telemarket-political|s|begin; // will the Pot Party Guys even notice an infinite loop? - } -} - -context telemarket-poli-AmNaz { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-AmInd { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-AmHer { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-American { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - -context telemarket-poli-Am1st { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - - -context telemarket-pollster { - s => { - begin: - Playback(telemark-poll-intro); - // I'm sorry-- We are just not available for doing any polling at the moment. So, - // please remove us from your list. - goto telemarket-sorry|s|begin; - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-research { - s => { - begin: - Playback(telemark-research-intro); - // I'd like to say I'd love to help you with your market survey, but that would be a complete - // and total lie. I am not interested in helping you with Market Surveys. - // - // Please remove me from your call list. It just doesn't pay enough. But Thank you. - goto telemarket-sorry|s|begin; - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-magazine { - s => { - begin: - Playback(telemark-mag-choices); - // If you are calling to see if I would like a NEW free subscription - // to your magazine or newsletter, please dial 1. - // If you are calling to see if I want to Renew an existing subscription, please dial 2. - // If you are representing some publisher, and want my opinion about something, or are doing - // some kind of survey, please dial 3. - // If you are calling to verify that some previous caller actually called me, and the - // verification information is correct, please dial 4. - // and if your call purpose doesn't match any of the above, please dial 5. - } - 1 => goto telemark-mag-new|s|begin; - 2 => goto telemark-mag-renew|s|begin; - 3 => goto telemark-mag-survey|s|begin; - 4 => goto telemark-mag-verify|s|begin; - 5 => goto telemark-mag-other|s|begin; - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemark-mag-new { - s => { - begin: - Playback(telemark-mag-new); - // I'm sorry, I'm maxed out, and the answer is NO. - // If you really think I'd LOVE to add your publication to the pile I already get, - // Send something via the post. Don't call me. - // Thank you. bye. - Hangup(); - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemark-mag-renew { - s => { - begin: - Playback(telemark-mag-renew); - // So, you want to see if I want to Renew, do you? The answer is most likely "YES". - // - // But, I will not answer a long list of questions over the phone. Send such - // categorization info via the post, and stop bothering me over the phone, - // if this is what you want. - // Do you need verification information? Normally I opt out of such nonsense, if possible. - // If not, use whatever of the following you can: - // My birth month is October. - // My birthplace is Kigali, in Rwanda, in Afica. - // My eye color is orange. - // All of these are wonderfully false, but I use them regularly for such purposes. Thank you. - Hangup(); - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemark-mag-survey { - s => { - begin: - Playback(telemark-mag-survey); - // Sorry, I don't have time to answer survey or opinion questions. Find someone - // else to help build your marketing database, I guess. Good Luck. - Hangup(); - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemark-mag-verify { - s => { - begin: - Playback(telemark-mag-verify); - // If you are calling to verify that your own agents aren't ripping you off, - // sorry, I can't help you. I opt out whenever I can, mainly because I'm not - // paid enough for this kind of thing. I always lie, and I can't remember - // what I might have said. Sorry. Goodbye. - Hangup(); - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemark-mag-other { - s => { - begin: - goto telemarket-sorry|s|begin; - } -} - - - -// BAD DESIGN: Is it entrapment, when you lure telemarketers to reveal their contact information, -// Just so you can report them to the FTC/FCC? If it is, isn't it unethical for them -// to hide their CID (via Anonymous, usually), to hide their identities from the public? - -// BTW -- What telemarketer would be stupid enough to fall for this? I'll bet not a single one! -// For that matter, what telemarketer will be stupid enough to even enter any of this? I'll bet not a single one! -// (but it was fun messing around). - -context telemarket-commercial { - s => { - begin: - Playback(telemark-comm-intro); // Script: Please leave your name, organization, and phone number, plus - // a short description of the purpose of your call, at the prompt. - // We will do our best to respond to your call! And, in the mean time, - // do not forget to add us to your no-call list! - Voicemail(u82); - goto telemarket-sorry|s|begin; - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} - - -context telemarket-other { - s => { - begin: - Playback(telemark-other-intro); - // Please review the previous menu options, and see if you really don't - // fit in one of the previous categories. - // If you do not, go ahead, and call me again, and let me know what category - // I should have included in the above list. I appreciate this. Thank you much! - Hangup(); - } - t => goto telemarket|s|begin; - i => goto telemarket|s|begin; - o => goto telemarket|s|begin; -} diff --git a/trunk/pbx/ael/ael-test/ael-vtest17/extensions.ael b/trunk/pbx/ael/ael-test/ael-vtest17/extensions.ael deleted file mode 100644 index d13fe99d7..000000000 --- a/trunk/pbx/ael/ael-test/ael-vtest17/extensions.ael +++ /dev/null @@ -1,116 +0,0 @@ -context dialextens -{ - /* - 101 thru 123, 149 thru 152 - */ - _10X => Dial(Zap/${EXTEN:2},30,tw); - _1ZX => Dial(Zap/${EXTEN:1},30,tw); -} -/* - Due to extenal wiring: - - dialing 125 will ring 101 - dialing 126 will ring 102 - and so on until - dialing 147 will ring 123 - -We can dial out on zap 69 thru 72; and 25-47 - -*/ - -context dialthrus -{ - /* 369-372; 325-347 */ - _3XX => Dial(Zap/${EXTEN:1},30,tw); -} - -context t1incoming -{ - includes - { - dialextens; - parkedcalls; - } - s => { - Answer(); - Background(welcome-to-test-machine); - } - -} - -context t1extension -{ - includes - { - dialextens; - dialthrus; - } - -} - -context incoming -{ - includes - { - dialextens; - parkedcalls; - } - s => { - Answer(); - Background(welcome-to-test-machine); - } -} - -context extension -{ - includes - { - dialextens; - dialthrus; - } - 5 => { - Record(recording:gsm); - Background(recording); - } - - 81 => { - iterations=1000000; - Set(time1=${EPOCH}); - for(i=1; ${i}<${iterations}; i=${i}+1) - { - NoOp(Hello); - } - Set(time2=${EPOCH}); - Verbose(The time diff is $[${time2} - ${time1} ] seconds); - Verbose(Which means that the priorities/sec = $[4* ${iterations} / (${time2} - ${time1}) ]); - SayNumber($[4 * ${iterations} / (${time2} - ${time1}) ]); - } - 82 => { - &ndeep(100000); - Verbose(Finished 100000 levels deep call!); - } - 83 => { - switch (${EXTEN}) - { - pattern 8X: - Verbose(do something to prepare it); - pattern 9X: - Verbose(handle both 8x and 9x calls); - pattern [4-7]X: - Verbose(and this too!); - - } - - } -} - -macro ndeep(level) -{ - if( ${level} == 0) - { - Verbose(2|Got to Level 0); - return; - } - &ndeep($[${level}-1]); - return; -} diff --git a/trunk/pbx/ael/ael-test/ael-vtest21/extensions.ael b/trunk/pbx/ael/ael-test/ael-vtest21/extensions.ael deleted file mode 100644 index 95f25302a..000000000 --- a/trunk/pbx/ael/ael-test/ael-vtest21/extensions.ael +++ /dev/null @@ -1,14 +0,0 @@ -globals { - AXLHAFT=wow-to-the-tenth-power; - JibberWorthy=zinger3; - OFFICE_CODE=503; -} - -context from-enum { - - _${OFFICE_CODE}XXXX => { - Answer(); - goto ${EXTEN:3}|1; - } -} - diff --git a/trunk/pbx/ael/ael-test/ref.ael-ntest10 b/trunk/pbx/ael/ael-test/ref.ael-ntest10 deleted file mode 100644 index 9eb8ac989..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-ntest10 +++ /dev/null @@ -1,171 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -n option if you aren't interested in seeing all the instructions generated by the compiler) - - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1-4: The macro endsess does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 6-9: The macro nullchk does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 11-26: The macro endcall does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 13-13: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 28-44: The macro endcall2 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 36-36: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 46-68: The macro endcall3 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 48-48: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 60-60: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 70-96: The macro endcall4 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 72-72: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 84-84: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 87-87: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 98-131: The macro endcall5 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 106-106: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 119-119: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 122-122: A default case was automatically added to the switch. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -Executed ast_context_create(conts, name=endsess, registrar=pbx_ael); -Executed ast_context_create(conts, name=nullchk, registrar=pbx_ael); -Executed ast_context_create(conts, name=endcall, registrar=pbx_ael); -Executed ast_context_create(conts, name=endcall2, registrar=pbx_ael); -Executed ast_context_create(conts, name=endcall3, registrar=pbx_ael); -Executed ast_context_create(conts, name=endcall4, registrar=pbx_ael); -Executed ast_context_create(conts, name=endcall5, registrar=pbx_ael); -Executed ast_add_extension2(context=endsess, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=NoOp, data=hithere, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endsess, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Return, data=, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=nullchk, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=LOCAL(type)=${ARG1}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=nullchk, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=NoOp, data=${type} is this, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=nullchk, rep=0, exten=s, priority=3, label=(null), callerid=(null), appl=Return, data=, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=LOCAL(type)=${ARG1}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-1-${type},10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=s, priority=3, label=(null), callerid=(null), appl=NoOp, data=Finish switch-endcall-1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=s, priority=4, label=(null), callerid=(null), appl=Return, data=, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=_sw-1-., priority=10, label=(null), callerid=(null), appl=Goto, data=s,3, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-1-.|10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-out, priority=10, label=(null), callerid=(null), appl=Gosub, data=nullchk,s,1(callid), FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-out, priority=11, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?12:15, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-out, priority=12, label=(null), callerid=(null), appl=Gosub, data=endsess,s,1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-out, priority=13, label=(null), callerid=(null), appl=Goto, data=sw-1-out,ptr1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-out, priority=14, label=(null), callerid=(null), appl=Goto, data=17, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-out, priority=15, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-out, priority=16, label=(null), callerid=(null), appl=Goto, data=s,3, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-out, priority=17, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall-out-1-2, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-out, priority=18, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall, rep=0, exten=sw-1-out, priority=19, label=(null), callerid=(null), appl=Goto, data=sw-1-.,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=LOCAL(type)=${ARG1}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-3-${type},10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=s, priority=3, label=(null), callerid=(null), appl=NoOp, data=Finish switch-endcall2-3, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=s, priority=4, label=(null), callerid=(null), appl=Return, data=, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=_sw-3-., priority=10, label=(null), callerid=(null), appl=Goto, data=s,3, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-3-.|10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-out2, priority=10, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-out2, priority=11, label=(null), callerid=(null), appl=Goto, data=s,3, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-out2, priority=12, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-out2, priority=13, label=(null), callerid=(null), appl=Goto, data=sw-3-.,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-out, priority=10, label=(null), callerid=(null), appl=Gosub, data=nullchk,s,1(callid), FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-out, priority=11, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?12:14, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-out, priority=12, label=(null), callerid=(null), appl=Gosub, data=endsess,s,1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-out, priority=13, label=(null), callerid=(null), appl=Goto, data=sw-3-out2,ptr1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-out, priority=14, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall2-out-3-4, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall2, rep=0, exten=sw-3-out, priority=15, label=(null), callerid=(null), appl=Goto, data=sw-3-out2,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=LOCAL(type)=${ARG1}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-5-${type},10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=s, priority=3, label=(null), callerid=(null), appl=NoOp, data=Finish switch-endcall3-5, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=s, priority=4, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?5:6, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=s, priority=5, label=(null), callerid=(null), appl=Goto, data=sw-8-out,ptr1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=s, priority=6, label=(null), callerid=(null), appl=NoOp, data=Finish if-endcall3-7, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=s, priority=7, label=(null), callerid=(null), appl=Goto, data=sw-8-${type},10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=s, priority=8, label=(null), callerid=(null), appl=NoOp, data=Finish switch-endcall3-8, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=s, priority=9, label=(null), callerid=(null), appl=Return, data=, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=_sw-8-., priority=10, label=(null), callerid=(null), appl=Goto, data=s,8, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-8-, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-8-.|10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-8-out, priority=10, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?11:13, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-8-out, priority=11, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-8-out, priority=12, label=(null), callerid=(null), appl=Goto, data=s,8, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-8-out, priority=13, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall3-out-8-9, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-8-out, priority=14, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-8-out, priority=15, label=(null), callerid=(null), appl=Goto, data=sw-8-.,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=_sw-5-., priority=10, label=(null), callerid=(null), appl=Goto, data=s,3, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-5-, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-5-.|10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-5-out, priority=10, label=(null), callerid=(null), appl=Gosub, data=nullchk,s,1(callid), FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-5-out, priority=11, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?12:14, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-5-out, priority=12, label=(null), callerid=(null), appl=Gosub, data=endsess,s,1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-5-out, priority=13, label=(null), callerid=(null), appl=Goto, data=sw-8-out,ptr1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-5-out, priority=14, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall3-out-5-6, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-5-out, priority=15, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall3, rep=0, exten=sw-5-out, priority=16, label=(null), callerid=(null), appl=Goto, data=sw-5-.,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=LOCAL(type)=${ARG1}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-10-${type},10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=s, priority=3, label=(null), callerid=(null), appl=NoOp, data=Finish switch-endcall4-10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=s, priority=4, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?5:6, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=s, priority=5, label=(null), callerid=(null), appl=Goto, data=sw-14-in,ptr1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=s, priority=6, label=(null), callerid=(null), appl=NoOp, data=Finish if-endcall4-12, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=s, priority=7, label=(null), callerid=(null), appl=Goto, data=sw-13-${type},10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=s, priority=8, label=(null), callerid=(null), appl=NoOp, data=Finish switch-endcall4-13, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=s, priority=9, label=(null), callerid=(null), appl=Return, data=, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=_sw-13-., priority=10, label=(null), callerid=(null), appl=Goto, data=s,8, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-13-, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-13-.|10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-13-out, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-14-${type},10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-13-out, priority=11, label=(null), callerid=(null), appl=NoOp, data=Finish switch-sw-endcall4-out-13-14, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-13-out, priority=12, label=(null), callerid=(null), appl=Goto, data=sw-13-.,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=_sw-14-., priority=10, label=(null), callerid=(null), appl=Goto, data=sw-13-out,11, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-14-, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-14-.|10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-14-in, priority=10, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?11:13, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-14-in, priority=11, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-14-in, priority=12, label=(null), callerid=(null), appl=Goto, data=sw-13-out,11, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-14-in, priority=13, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-sw-endcall4-out-13-in-14-15, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-14-in, priority=14, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-14-in, priority=15, label=(null), callerid=(null), appl=Goto, data=sw-14-.,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=_sw-10-., priority=10, label=(null), callerid=(null), appl=Goto, data=s,3, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-10-, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-10-.|10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-10-out, priority=10, label=(null), callerid=(null), appl=Gosub, data=nullchk,s,1(callid), FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-10-out, priority=11, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?12:14, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-10-out, priority=12, label=(null), callerid=(null), appl=Gosub, data=endsess,s,1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-10-out, priority=13, label=(null), callerid=(null), appl=Goto, data=sw-14-in,ptr1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-10-out, priority=14, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall4-out-10-11, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-10-out, priority=15, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall4, rep=0, exten=sw-10-out, priority=16, label=(null), callerid=(null), appl=Goto, data=sw-10-.,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=LOCAL(type)=${ARG1}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-16-${type},10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=s, priority=3, label=(null), callerid=(null), appl=NoOp, data=Finish switch-endcall5-16, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=s, priority=4, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?5:6, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=s, priority=5, label=(null), callerid=(null), appl=Goto, data=sw-21-in,ptr1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=s, priority=6, label=(null), callerid=(null), appl=NoOp, data=Finish if-endcall5-19, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=s, priority=7, label=(null), callerid=(null), appl=Goto, data=sw-20-${type},10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=s, priority=8, label=(null), callerid=(null), appl=NoOp, data=Finish switch-endcall5-20, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=s, priority=9, label=(null), callerid=(null), appl=Return, data=, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=_sw-20-., priority=10, label=(null), callerid=(null), appl=Goto, data=s,8, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-20-, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-20-.|10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-20-out, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-21-${type},10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-20-out, priority=11, label=(null), callerid=(null), appl=NoOp, data=Finish switch-sw-endcall5-out-20-21, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-20-out, priority=12, label=(null), callerid=(null), appl=Goto, data=sw-20-.,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=_sw-21-., priority=10, label=(null), callerid=(null), appl=Goto, data=sw-20-out,11, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-21-, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-21-.|10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-21-in, priority=10, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?11:13, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-21-in, priority=11, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-21-in, priority=12, label=(null), callerid=(null), appl=Goto, data=sw-20-out,11, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-21-in, priority=13, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-sw-endcall5-out-20-in-21-22, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-21-in, priority=14, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-21-in, priority=15, label=(null), callerid=(null), appl=Goto, data=sw-21-.,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=_sw-16-., priority=10, label=(null), callerid=(null), appl=Goto, data=s,3, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-, priority=10, label=(null), callerid=(null), appl=Goto, data=sw-16-.|10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-in, priority=10, label=(null), callerid=(null), appl=Gosub, data=nullchk,s,1(callid), FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-in, priority=11, label=ptr2, callerid=(null), appl=GotoIf, data=$[${testnotnull}]?12:14, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-in, priority=12, label=(null), callerid=(null), appl=Gosub, data=endsess,s,1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-in, priority=13, label=(null), callerid=(null), appl=Goto, data=sw-21-in,ptr1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-in, priority=14, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall5-in-16-18, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-in, priority=15, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-in, priority=16, label=(null), callerid=(null), appl=Goto, data=sw-16-.,10, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-out, priority=10, label=(null), callerid=(null), appl=Gosub, data=nullchk,s,1(callid), FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-out, priority=11, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?12:14, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-out, priority=12, label=(null), callerid=(null), appl=Gosub, data=endsess,s,1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-out, priority=13, label=(null), callerid=(null), appl=Goto, data=sw-21-in,ptr1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-out, priority=14, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall5-out-16-17, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=endcall5, rep=0, exten=sw-16-out, priority=15, label=(null), callerid=(null), appl=Goto, data=sw-16-in,10, FREE, registrar=pbx_ael); -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -Executed ast_merge_contexts_and_delete(); -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -Executed ast_walk_contexts(); -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 7 contexts, 37 extensions, 131 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-ntest12 b/trunk/pbx/ael/ael-test/ref.ael-ntest12 deleted file mode 100644 index 184ce2d6c..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-ntest12 +++ /dev/null @@ -1,30 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -n option if you aren't interested in seeing all the instructions generated by the compiler) - - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -Executed ast_context_find_or_create(conts, name=test1, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=771, priority=1, label=(null), callerid=(null), appl=Set, data=i=$[0], FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=771, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[ - ${i} <= 3]?3:6, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=771, priority=3, label=(null), callerid=(null), appl=NoOp, data=i is '${i}', FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=771, priority=4, label=(null), callerid=(null), appl=Set, data=i=$[ ${i} + 1 ], FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=771, priority=5, label=(null), callerid=(null), appl=Goto, data=2, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=771, priority=6, label=(null), callerid=(null), appl=NoOp, data=Finish for-test1-1, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=772, priority=1, label=(null), callerid=(null), appl=Set, data=i=$[0], FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=772, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[ ${i} <= 3]?3:6, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=772, priority=3, label=(null), callerid=(null), appl=NoOp, data=i is '${i}', FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=772, priority=4, label=(null), callerid=(null), appl=Set, data=i=$[ ${i} + 1 ], FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=772, priority=5, label=(null), callerid=(null), appl=Goto, data=2, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=test1, rep=0, exten=772, priority=6, label=(null), callerid=(null), appl=NoOp, data=Finish for-test1-2, FREE, registrar=pbx_ael); -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -Executed ast_merge_contexts_and_delete(); -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -Executed ast_walk_contexts(); -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 1 contexts, 2 extensions, 12 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-ntest22 b/trunk/pbx/ael/ael-test/ref.ael-ntest22 deleted file mode 100644 index c9317f64e..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-ntest22 +++ /dev/null @@ -1,54 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -n option if you aren't interested in seeing all the instructions generated by the compiler) - - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././t1/a.ael, 41 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././t1/b.ael, 42 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././t1/c.ael, 106 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././t2/d.ael, 41 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././t2/e.ael, 42 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././t2/f.ael, 82 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././qq.ael, 45 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././t3/g.ael, 41 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././t3/h.ael, 42 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././t3/i.ael, 41 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././t3/j.ael, 43 chars -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -Executed ast_context_find_or_create(conts, name=a, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=b, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=c, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=d, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=e, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=qq, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=f, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=g, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=h, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=i, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=j, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=w, registrar=pbx_ael); -Executed ast_context_find_or_create(conts, name=z, registrar=pbx_ael); -Executed ast_add_extension2(context=a, rep=0, exten=134, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, a, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=b, rep=0, exten=456, priority=1, label=(null), callerid=(null), appl=NoOp, data=hithere, b, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=c, rep=0, exten=567, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, c, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=d, rep=0, exten=134, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, d, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=e, rep=0, exten=456, priority=1, label=(null), callerid=(null), appl=NoOp, data=hithere, e, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=qq, rep=0, exten=567, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, qq, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=f, rep=0, exten=567, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, f, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=g, rep=0, exten=134, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, g, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=h, rep=0, exten=456, priority=1, label=(null), callerid=(null), appl=NoOp, data=hithere, h, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=i, rep=0, exten=134, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, i, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=j, rep=0, exten=567, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, j, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=w, rep=0, exten=890, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, w, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=z, rep=0, exten=123, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, z, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=z, rep=0, exten=124, priority=1, label=(null), callerid=(null), appl=NoOp, data=hi there, z, FREE, registrar=pbx_ael); -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -Executed ast_merge_contexts_and_delete(); -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -Executed ast_walk_contexts(); -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 13 contexts, 13 extensions, 14 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-ntest9 b/trunk/pbx/ael/ael-test/ref.ael-ntest9 deleted file mode 100644 index e40790e59..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-ntest9 +++ /dev/null @@ -1,23 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -n option if you aren't interested in seeing all the instructions generated by the compiler) - - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -Executed ast_context_find_or_create(conts, name=workext, registrar=pbx_ael); -Executed ast_context_add_ignorepat2(con, value=8, registrar=pbx_ael); -Executed ast_context_add_ignorepat2(con, value=9, registrar=pbx_ael); -Executed ast_add_extension2(context=workext, rep=0, exten=793, priority=1, label=(null), callerid=(null), appl=Set, data=QUERYSTRING=SELECT\ foo\,\ bar\ FROM\ foobar, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=workext, rep=0, exten=793, priority=2, label=(null), callerid=(null), appl=Verbose, data=2|${QUERYSTRING}, FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=workext, rep=0, exten=793, priority=3, label=(null), callerid=(null), appl=Set, data=query=$["SELECT foo\, bar FROM foobar" ], FREE, registrar=pbx_ael); -Executed ast_add_extension2(context=workext, rep=0, exten=793, priority=4, label=(null), callerid=(null), appl=Verbose, data=2|${query}, FREE, registrar=pbx_ael); -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -Executed ast_merge_contexts_and_delete(); -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -Executed ast_walk_contexts(); -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 1 contexts, 1 extensions, 4 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test1 b/trunk/pbx/ael/ael-test/ref.ael-test1 deleted file mode 100644 index 5538514fe..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test1 +++ /dev/null @@ -1,18 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 2-16: The macro testdial does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 18-25: The macro exten-gen does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:1362 func: check_goto Warning: file ./extensions.ael, line 21-21: It's bad form to have a goto in a macro to a target outside the macro! -LOG: lev:3 file:pval.c line:1362 func: check_goto Warning: file ./extensions.ael, line 23-23: It's bad form to have a goto in a macro to a target outside the macro! -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 58-58: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:922 func: check_dow Warning: file ./extensions.ael, line 67-67: The day (m0n) must be one of 'sun', 'mon', 'tue', 'wed', 'thu', 'fri', or 'sat'! -LOG: lev:3 file:pval.c line:880 func: check_timerange Warning: file ./extensions.ael, line 78-78: The end time (25:00) is out of range! -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 5 contexts, 16 extensions, 157 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test11 b/trunk/pbx/ael/ael-test/ref.ael-test11 deleted file mode 100644 index c47f2b8bf..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test11 +++ /dev/null @@ -1,13 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:4 file:pval.c line:1147 func: check_label Error: file ./extensions.ael, line 13-13: Duplicate label lab1! Previously defined at file ./extensions.ael, line 8. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 32-32: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 44-44: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 47-47: A default case was automatically added to the switch. -LOG: lev:4 file:pval.c line:1147 func: check_label Error: file ./extensions.ael, line 49-49: Duplicate label ptr1! Previously defined at file ./extensions.ael, line 33. -LOG: lev:4 file:pbx_ael.c line:139 func: pbx_load_module Sorry, but 0 syntax errors and 2 semantic errors were detected. It doesn't make sense to compile. -LOG: lev:4 file:ael2_parse line:531 func: main 0 contexts, 0 extensions, 0 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test14 b/trunk/pbx/ael/ael-test/ref.ael-test14 deleted file mode 100644 index 2cd4ed1b1..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test14 +++ /dev/null @@ -1,11 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 13-13: A default case was automatically added to the switch. -LOG: lev:4 file:pval.c line:1071 func: check_continue Error: file ./extensions.ael, line 15-15: 'continue' not in 'for' or 'while' statement! -LOG: lev:4 file:pval.c line:1052 func: check_break Error: file ./extensions.ael, line 17-17: 'break' not in switch, for, or while statement! -LOG: lev:4 file:pbx_ael.c line:139 func: pbx_load_module Sorry, but 0 syntax errors and 2 semantic errors were detected. It doesn't make sense to compile. -LOG: lev:4 file:ael2_parse line:531 func: main 0 contexts, 0 extensions, 0 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test15 b/trunk/pbx/ael/ael-test/ref.ael-test15 deleted file mode 100644 index 995068563..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test15 +++ /dev/null @@ -1,12 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:4070 func: ast_compile_ael2 Warning: file ./extensions.ael, line 8-13: Empty Extension! -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 1 contexts, 0 extensions, 0 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test16 b/trunk/pbx/ael/ael-test/ref.ael-test16 deleted file mode 100644 index f43257d46..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test16 +++ /dev/null @@ -1,12 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:3786 func: add_extensions This file is Empty! -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 1 contexts, 0 extensions, 0 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test18 b/trunk/pbx/ael/ael-test/ref.ael-test18 deleted file mode 100644 index 072135ef2..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test18 +++ /dev/null @@ -1,11 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 1 contexts, 7 extensions, 27 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test19 b/trunk/pbx/ael/ael-test/ref.ael-test19 deleted file mode 100644 index e093d75e5..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test19 +++ /dev/null @@ -1,18 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:2300 func: check_context_names Warning: file ./extensions.ael, line 49-62: The context name (incoming) is also declared in file ./extensions.ael, line 62-69! (and neither is marked 'extend') -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 71-175: The macro std-priv-exten does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:2284 func: check_switch_expr Warning: file ./extensions.ael, line 245-246: A default case was automatically added to the switch. -LOG: lev:3 file:pval.c line:2426 func: check_pval_item Warning: file ./extensions.ael, line 312-312: macro call to non-existent funcA! (Not even in the extensions.conf stuff!) -LOG: lev:3 file:pval.c line:2426 func: check_pval_item Warning: file ./extensions.ael, line 313-313: macro call to non-existent funcD! (Not even in the extensions.conf stuff!) -LOG: lev:3 file:pval.c line:1346 func: check_goto Warning: file ./extensions.ael, line 319-319: goto: Couldn't find goto target test5|s|1, not even in extensions.conf! -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 363-366: The macro dialoutpstn does not end with a return; I will insert one. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 13 contexts, 57 extensions, 188 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test2 b/trunk/pbx/ael/ael-test/ref.ael-test2 deleted file mode 100644 index 892b63464..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test2 +++ /dev/null @@ -1,28 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././apptest.ael2, 3474 chars -LOG: lev:3 file:ael.y line:546 func: ael_yyparse ==== File: ././apptest.ael2, Line 46, Cols: 8-11: Suggestion: Use the goto statement instead of the Goto() application call in AEL. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 35-35: application call to EndWhile affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 37-37: application call to ExecIf affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 38-38: application call to ExecIfTime affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 44-44: application call to Gosub affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 45-45: application call to GosubIf affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:1346 func: check_goto Warning: file ././apptest.ael2, line 46-46: goto: Couldn't find goto target cont|exten|prior, not even in extensions.conf! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 47-47: application call to GotoIf affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 48-48: application call to GotoIfTime affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 58-58: application call to Macro affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2512 func: check_pval_item Warning: file ././apptest.ael2, line 59-59: I am converting the MacroExit call here to a return statement. -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 60-60: application call to MacroIf affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 85-85: application call to Random affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 94-94: application call to Return affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 119-119: application call to StackPop affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 141-141: application call to While affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 1 contexts, 1 extensions, 142 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test20 b/trunk/pbx/ael/ael-test/ref.ael-test20 deleted file mode 100644 index 065281f94..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test20 +++ /dev/null @@ -1,11 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 1 contexts, 1 extensions, 1 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test3 b/trunk/pbx/ael/ael-test/ref.ael-test3 deleted file mode 100644 index 5ff89ef8b..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test3 +++ /dev/null @@ -1,99 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././include1.ael2, 78 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././include2.ael2, 98 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././include3.ael2, 57 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././include5.ael2, 56 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././include4.ael2, 87 chars -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././telemarket_torture.ael2, 28036 chars -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 14-34: The macro std-exten does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:1362 func: check_goto Warning: file ./extensions.ael, line 17-17: It's bad form to have a goto in a macro to a target outside the macro! -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 36-59: The macro std-priv-exten_1 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 62-85: The macro std-priv-exten_2 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 88-111: The macro std-priv-exten_3 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 114-137: The macro std-priv-exten_4 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 140-163: The macro std-priv-exten_5 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 166-189: The macro std-priv-exten_6 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 192-215: The macro std-priv-exten_7 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 218-241: The macro std-priv-exten_8 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 244-267: The macro std-priv-exten_9 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 270-293: The macro std-priv-exten_10 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 296-319: The macro std-priv-exten_11 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 322-345: The macro std-priv-exten_12 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 348-371: The macro std-priv-exten_13 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 374-397: The macro std-priv-exten_14 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 400-423: The macro std-priv-exten_15 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 426-449: The macro std-priv-exten_16 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 452-475: The macro std-priv-exten_17 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 478-501: The macro std-priv-exten_18 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 504-527: The macro std-priv-exten_19 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 530-553: The macro std-priv-exten_20 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 556-579: The macro std-priv-exten_21 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 582-605: The macro std-priv-exten_22 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 608-631: The macro std-priv-exten_23 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 634-657: The macro std-priv-exten_24 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 660-683: The macro std-priv-exten_25 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 686-709: The macro std-priv-exten_26 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 712-735: The macro std-priv-exten_27 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 738-761: The macro std-priv-exten_28 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 764-787: The macro std-priv-exten_29 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 790-813: The macro std-priv-exten_30 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 816-839: The macro std-priv-exten_31 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 842-865: The macro std-priv-exten_32 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 868-891: The macro std-priv-exten_33 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 894-917: The macro std-priv-exten_34 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 920-943: The macro std-priv-exten_35 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 946-969: The macro std-priv-exten_36 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 972-995: The macro std-priv-exten_37 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 998-1021: The macro std-priv-exten_38 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1024-1047: The macro std-priv-exten_39 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1050-1073: The macro std-priv-exten_40 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1076-1099: The macro std-priv-exten_41 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1102-1125: The macro std-priv-exten_42 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1128-1151: The macro std-priv-exten_43 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1154-1177: The macro std-priv-exten_44 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1180-1203: The macro std-priv-exten_45 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1206-1229: The macro std-priv-exten_46 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1232-1255: The macro std-priv-exten_47 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1258-1281: The macro std-priv-exten_48 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1284-1307: The macro std-priv-exten_49 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1310-1333: The macro std-priv-exten_50 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1336-1359: The macro std-priv-exten_51 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1362-1385: The macro std-priv-exten_52 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1388-1411: The macro std-priv-exten_53 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1414-1437: The macro std-priv-exten_54 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1440-1463: The macro std-priv-exten_55 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1466-1489: The macro std-priv-exten_56 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1492-1515: The macro std-priv-exten_57 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1518-1541: The macro std-priv-exten_58 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1544-1567: The macro std-priv-exten_59 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1570-1593: The macro std-priv-exten_60 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1596-1619: The macro std-priv-exten_61 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1622-1645: The macro std-priv-exten_62 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1648-1671: The macro std-priv-exten_63 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1674-1697: The macro std-priv-exten_64 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1700-1723: The macro std-priv-exten_65 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1726-1749: The macro std-priv-exten_66 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1752-1775: The macro std-priv-exten_67 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1778-1801: The macro std-priv-exten_68 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1804-1827: The macro std-priv-exten_69 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1830-1853: The macro std-priv-exten_70 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1856-1879: The macro std-priv-exten_71 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1882-1905: The macro std-priv-exten_72 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1908-1931: The macro std-priv-exten_73 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1934-1957: The macro std-priv-exten does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1959-1995: The macro fillcidname does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 1997-2015: The macro ciddial does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 2017-2028: The macro ciddial3 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 2030-2048: The macro ciddial2 does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 2050-2065: The macro callerid-liar does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 2067-2072: The macro callerid-bad does not end with a return; I will insert one. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 172 contexts, 934 extensions, 2482 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test4 b/trunk/pbx/ael/ael-test/ref.ael-test4 deleted file mode 100644 index 892b63464..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test4 +++ /dev/null @@ -1,28 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:ael.flex line:662 func: setup_filestack --Read in included file ././apptest.ael2, 3474 chars -LOG: lev:3 file:ael.y line:546 func: ael_yyparse ==== File: ././apptest.ael2, Line 46, Cols: 8-11: Suggestion: Use the goto statement instead of the Goto() application call in AEL. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 35-35: application call to EndWhile affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 37-37: application call to ExecIf affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 38-38: application call to ExecIfTime affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 44-44: application call to Gosub affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 45-45: application call to GosubIf affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:1346 func: check_goto Warning: file ././apptest.ael2, line 46-46: goto: Couldn't find goto target cont|exten|prior, not even in extensions.conf! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 47-47: application call to GotoIf affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 48-48: application call to GotoIfTime affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 58-58: application call to Macro affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2512 func: check_pval_item Warning: file ././apptest.ael2, line 59-59: I am converting the MacroExit call here to a return statement. -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 60-60: application call to MacroIf affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 85-85: application call to Random affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 94-94: application call to Return affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 119-119: application call to StackPop affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:3 file:pval.c line:2507 func: check_pval_item Warning: file ././apptest.ael2, line 141-141: application call to While affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead! -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 1 contexts, 1 extensions, 142 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test5 b/trunk/pbx/ael/ael-test/ref.ael-test5 deleted file mode 100644 index 79c327413..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test5 +++ /dev/null @@ -1,14 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 130-183: The macro stdexten does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 185-192: The macro uvm does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 194-201: The macro bvm does not end with a return; I will insert one. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 38 contexts, 91 extensions, 493 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test6 b/trunk/pbx/ael/ael-test/ref.ael-test6 deleted file mode 100644 index 968c7c71e..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test6 +++ /dev/null @@ -1,24 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:4 file:ael.flex line:288 func: ael_yylex File=./extensions.ael, line=165, column=49: Mismatched '}' in expression! -LOG: lev:4 file:ael.y line:772 func: ael_yyerror ==== File: ./extensions.ael, Line 165, Cols: 51-51: Error: syntax error, unexpected '=', expecting ')' -LOG: lev:4 file:ael.flex line:288 func: ael_yylex File=./extensions.ael, line=174, column=49: Mismatched '}' in expression! -LOG: lev:4 file:ael.y line:772 func: ael_yyerror ==== File: ./extensions.ael, Line 174, Cols: 51-51: Error: syntax error, unexpected '=', expecting ')' -LOG: lev:4 file:ael.flex line:288 func: ael_yylex File=./extensions.ael, line=222, column=41: Mismatched '}' in expression! -LOG: lev:4 file:ael.y line:772 func: ael_yyerror ==== File: ./extensions.ael, Line 222, Cols: 43-43: Error: syntax error, unexpected '=', expecting ')' -LOG: lev:4 file:ael.y line:772 func: ael_yyerror ==== File: ./extensions.ael, Line 291, Cols: 21-28: Error: syntax error, unexpected word, expecting '(' or ';' or '=' or ':' -LOG: lev:4 file:ael.y line:772 func: ael_yyerror ==== File: ./extensions.ael, Line 291, Cols: 32-32: Error: syntax error, unexpected '|', expecting '(' or ';' or '=' or ':' -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 116-125: The macro dialout does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 129-182: The macro stdexten does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 184-191: The macro uvm does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 193-200: The macro bvm does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 202-207: The macro checkdnd does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 209-216: The macro checkcf does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 218-230: The macro checkcfb does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 688-694: The macro check-psd-exists does not end with a return; I will insert one. -LOG: lev:4 file:pbx_ael.c line:139 func: pbx_load_module Sorry, but 5 syntax errors and 0 semantic errors were detected. It doesn't make sense to compile. -LOG: lev:4 file:ael2_parse line:531 func: main 0 contexts, 0 extensions, 0 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test7 b/trunk/pbx/ael/ael-test/ref.ael-test7 deleted file mode 100644 index 69f0c9f91..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test7 +++ /dev/null @@ -1,19 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 22-42: The macro stdexten does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 44-49: The macro announce_minutes does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 59-89: The macro checkanddial does not end with a return; I will insert one. -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 91-100: The macro trunkdial does not end with a return; I will insert one. -LOG: lev:4 file:pval.c line:2468 func: check_pval_item Error: file ./extensions.ael, line 98-98: The macro call to checkanddial has 5 arguments, but the macro definition has 7 arguments -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 102-112: The macro checklocal does not end with a return; I will insert one. -LOG: lev:4 file:pval.c line:2468 func: check_pval_item Error: file ./extensions.ael, line 107-107: The macro call to checkanddial has 5 arguments, but the macro definition has 7 arguments -LOG: lev:3 file:pval.c line:671 func: check_macro_returns Warning: file ./extensions.ael, line 114-119: The macro autodial does not end with a return; I will insert one. -LOG: lev:4 file:pval.c line:2468 func: check_pval_item Error: file ./extensions.ael, line 284-284: The macro call to checkanddial has 5 arguments, but the macro definition has 7 arguments -LOG: lev:4 file:pval.c line:2468 func: check_pval_item Error: file ./extensions.ael, line 287-287: The macro call to checkanddial has 5 arguments, but the macro definition has 7 arguments -LOG: lev:3 file:pval.c line:2426 func: check_pval_item Warning: file ./extensions.ael, line 452-452: macro call to non-existent std-exten-ael! (Not even in the extensions.conf stuff!) -LOG: lev:4 file:pbx_ael.c line:139 func: pbx_load_module Sorry, but 0 syntax errors and 4 semantic errors were detected. It doesn't make sense to compile. -LOG: lev:4 file:ael2_parse line:531 func: main 0 contexts, 0 extensions, 0 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-test8 b/trunk/pbx/ael/ael-test/ref.ael-test8 deleted file mode 100644 index 4e5d0aa37..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-test8 +++ /dev/null @@ -1,11 +0,0 @@ - -(If you find progress and other non-error messages irritating, you can use -q to suppress them) - -(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump) -LOG: lev:2 file:pbx_ael.c line:113 func: pbx_load_module Starting AEL load process. -LOG: lev:2 file:pbx_ael.c line:126 func: pbx_load_module AEL load process: parsed config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:129 func: pbx_load_module AEL load process: checked config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:131 func: pbx_load_module AEL load process: compiled config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:134 func: pbx_load_module AEL load process: merged config file name './extensions.ael'. -LOG: lev:2 file:pbx_ael.c line:137 func: pbx_load_module AEL load process: verified config file name './extensions.ael'. -LOG: lev:4 file:ael2_parse line:531 func: main 1 contexts, 7 extensions, 17 priorities diff --git a/trunk/pbx/ael/ael-test/ref.ael-vtest13 b/trunk/pbx/ael/ael-test/ref.ael-vtest13 deleted file mode 100644 index 989a18258..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-vtest13 +++ /dev/null @@ -1,3030 +0,0 @@ -[globals] -static=yes -writeprotect=yes -CONSOLE=Console/dsp -IAXINFO=murf:tlhfckoct -FWDNUMBER=544788 -FWDCIDNAME="Joe-Worker" -FWDPASSWORD=zingledoodle -FWDRINGS=Zap/6 -FWDVMBOX=1 - - -[std-exten] -exten => s,1,Set(LOCAL(ext)=${ARG1}) -exten => s,2,Set(LOCAL(dev)=${ARG2}) -exten => s,3,Dial(${dev}/${ext}\,20) -exten => s,4,Goto(sw-1-${DIALSTATUS}\,10) -exten => s,5,NoOp(Finish switch-std-exten-1) -exten => s,6,Return() -exten => a,1,VoiceMailMain(${ext}) -exten => _sw-1-.,10,Voicemail(u${ext}) -exten => _sw-1-.,11,Goto(s\,5) -exten => sw-1-,10,Goto(sw-1-.|10) -exten => sw-1-ANSWER,10,Goto(s\,5) -exten => sw-1-NOANSWER,10,Voicemail(u${ext}) -exten => sw-1-NOANSWER,11,Goto(s\,5) -exten => sw-1-BUSY,10,Voicemail(b${ext}) -exten => sw-1-BUSY,11,Goto(s\,5) - - -[std-priv-exten_1] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-3-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_1-3) -exten => s,11,Return() -exten => _sw-3-.,10,Voicemail(u${ext}) -exten => _sw-3-.,11,Goto(s\,10) -exten => sw-3-,10,Goto(sw-3-.|10) -exten => sw-3-NOANSWER,10,Voicemail(u${ext}) -exten => sw-3-NOANSWER,11,Goto(s\,10) -exten => sw-3-ANSWER,10,Goto(s\,10) -exten => sw-3-BUSY,10,Voicemail(b${ext}) -exten => sw-3-BUSY,11,Goto(s\,10) -exten => sw-3-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-3-DONTCALL,11,Goto(s\,10) -exten => sw-3-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-3-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_2] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-4-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_2-4) -exten => s,11,Return() -exten => _sw-4-.,10,Voicemail(u${ext}) -exten => _sw-4-.,11,Goto(s\,10) -exten => sw-4-,10,Goto(sw-4-.|10) -exten => sw-4-NOANSWER,10,Voicemail(u${ext}) -exten => sw-4-NOANSWER,11,Goto(s\,10) -exten => sw-4-ANSWER,10,Goto(s\,10) -exten => sw-4-BUSY,10,Voicemail(b${ext}) -exten => sw-4-BUSY,11,Goto(s\,10) -exten => sw-4-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-4-DONTCALL,11,Goto(s\,10) -exten => sw-4-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-4-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_3] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-5-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_3-5) -exten => s,11,Return() -exten => _sw-5-.,10,Voicemail(u${ext}) -exten => _sw-5-.,11,Goto(s\,10) -exten => sw-5-,10,Goto(sw-5-.|10) -exten => sw-5-NOANSWER,10,Voicemail(u${ext}) -exten => sw-5-NOANSWER,11,Goto(s\,10) -exten => sw-5-ANSWER,10,Goto(s\,10) -exten => sw-5-BUSY,10,Voicemail(b${ext}) -exten => sw-5-BUSY,11,Goto(s\,10) -exten => sw-5-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-5-DONTCALL,11,Goto(s\,10) -exten => sw-5-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-5-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_4] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-6-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_4-6) -exten => s,11,Return() -exten => _sw-6-.,10,Voicemail(u${ext}) -exten => _sw-6-.,11,Goto(s\,10) -exten => sw-6-,10,Goto(sw-6-.|10) -exten => sw-6-NOANSWER,10,Voicemail(u${ext}) -exten => sw-6-NOANSWER,11,Goto(s\,10) -exten => sw-6-ANSWER,10,Goto(s\,10) -exten => sw-6-BUSY,10,Voicemail(b${ext}) -exten => sw-6-BUSY,11,Goto(s\,10) -exten => sw-6-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-6-DONTCALL,11,Goto(s\,10) -exten => sw-6-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-6-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_5] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-7-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_5-7) -exten => s,11,Return() -exten => _sw-7-.,10,Voicemail(u${ext}) -exten => _sw-7-.,11,Goto(s\,10) -exten => sw-7-,10,Goto(sw-7-.|10) -exten => sw-7-NOANSWER,10,Voicemail(u${ext}) -exten => sw-7-NOANSWER,11,Goto(s\,10) -exten => sw-7-ANSWER,10,Goto(s\,10) -exten => sw-7-BUSY,10,Voicemail(b${ext}) -exten => sw-7-BUSY,11,Goto(s\,10) -exten => sw-7-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-7-DONTCALL,11,Goto(s\,10) -exten => sw-7-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-7-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_6] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-8-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_6-8) -exten => s,11,Return() -exten => _sw-8-.,10,Voicemail(u${ext}) -exten => _sw-8-.,11,Goto(s\,10) -exten => sw-8-,10,Goto(sw-8-.|10) -exten => sw-8-NOANSWER,10,Voicemail(u${ext}) -exten => sw-8-NOANSWER,11,Goto(s\,10) -exten => sw-8-ANSWER,10,Goto(s\,10) -exten => sw-8-BUSY,10,Voicemail(b${ext}) -exten => sw-8-BUSY,11,Goto(s\,10) -exten => sw-8-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-8-DONTCALL,11,Goto(s\,10) -exten => sw-8-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-8-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_7] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-9-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_7-9) -exten => s,11,Return() -exten => _sw-9-.,10,Voicemail(u${ext}) -exten => _sw-9-.,11,Goto(s\,10) -exten => sw-9-,10,Goto(sw-9-.|10) -exten => sw-9-NOANSWER,10,Voicemail(u${ext}) -exten => sw-9-NOANSWER,11,Goto(s\,10) -exten => sw-9-ANSWER,10,Goto(s\,10) -exten => sw-9-BUSY,10,Voicemail(b${ext}) -exten => sw-9-BUSY,11,Goto(s\,10) -exten => sw-9-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-9-DONTCALL,11,Goto(s\,10) -exten => sw-9-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-9-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_8] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-10-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_8-10) -exten => s,11,Return() -exten => _sw-10-.,10,Voicemail(u${ext}) -exten => _sw-10-.,11,Goto(s\,10) -exten => sw-10-,10,Goto(sw-10-.|10) -exten => sw-10-NOANSWER,10,Voicemail(u${ext}) -exten => sw-10-NOANSWER,11,Goto(s\,10) -exten => sw-10-ANSWER,10,Goto(s\,10) -exten => sw-10-BUSY,10,Voicemail(b${ext}) -exten => sw-10-BUSY,11,Goto(s\,10) -exten => sw-10-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-10-DONTCALL,11,Goto(s\,10) -exten => sw-10-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-10-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_9] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-11-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_9-11) -exten => s,11,Return() -exten => _sw-11-.,10,Voicemail(u${ext}) -exten => _sw-11-.,11,Goto(s\,10) -exten => sw-11-,10,Goto(sw-11-.|10) -exten => sw-11-NOANSWER,10,Voicemail(u${ext}) -exten => sw-11-NOANSWER,11,Goto(s\,10) -exten => sw-11-ANSWER,10,Goto(s\,10) -exten => sw-11-BUSY,10,Voicemail(b${ext}) -exten => sw-11-BUSY,11,Goto(s\,10) -exten => sw-11-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-11-DONTCALL,11,Goto(s\,10) -exten => sw-11-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-11-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_10] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-12-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_10-12) -exten => s,11,Return() -exten => _sw-12-.,10,Voicemail(u${ext}) -exten => _sw-12-.,11,Goto(s\,10) -exten => sw-12-,10,Goto(sw-12-.|10) -exten => sw-12-NOANSWER,10,Voicemail(u${ext}) -exten => sw-12-NOANSWER,11,Goto(s\,10) -exten => sw-12-ANSWER,10,Goto(s\,10) -exten => sw-12-BUSY,10,Voicemail(b${ext}) -exten => sw-12-BUSY,11,Goto(s\,10) -exten => sw-12-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-12-DONTCALL,11,Goto(s\,10) -exten => sw-12-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-12-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_11] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-13-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_11-13) -exten => s,11,Return() -exten => _sw-13-.,10,Voicemail(u${ext}) -exten => _sw-13-.,11,Goto(s\,10) -exten => sw-13-,10,Goto(sw-13-.|10) -exten => sw-13-NOANSWER,10,Voicemail(u${ext}) -exten => sw-13-NOANSWER,11,Goto(s\,10) -exten => sw-13-ANSWER,10,Goto(s\,10) -exten => sw-13-BUSY,10,Voicemail(b${ext}) -exten => sw-13-BUSY,11,Goto(s\,10) -exten => sw-13-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-13-DONTCALL,11,Goto(s\,10) -exten => sw-13-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-13-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_12] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-14-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_12-14) -exten => s,11,Return() -exten => _sw-14-.,10,Voicemail(u${ext}) -exten => _sw-14-.,11,Goto(s\,10) -exten => sw-14-,10,Goto(sw-14-.|10) -exten => sw-14-NOANSWER,10,Voicemail(u${ext}) -exten => sw-14-NOANSWER,11,Goto(s\,10) -exten => sw-14-ANSWER,10,Goto(s\,10) -exten => sw-14-BUSY,10,Voicemail(b${ext}) -exten => sw-14-BUSY,11,Goto(s\,10) -exten => sw-14-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-14-DONTCALL,11,Goto(s\,10) -exten => sw-14-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-14-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_13] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-15-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_13-15) -exten => s,11,Return() -exten => _sw-15-.,10,Voicemail(u${ext}) -exten => _sw-15-.,11,Goto(s\,10) -exten => sw-15-,10,Goto(sw-15-.|10) -exten => sw-15-NOANSWER,10,Voicemail(u${ext}) -exten => sw-15-NOANSWER,11,Goto(s\,10) -exten => sw-15-ANSWER,10,Goto(s\,10) -exten => sw-15-BUSY,10,Voicemail(b${ext}) -exten => sw-15-BUSY,11,Goto(s\,10) -exten => sw-15-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-15-DONTCALL,11,Goto(s\,10) -exten => sw-15-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-15-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_14] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-16-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_14-16) -exten => s,11,Return() -exten => _sw-16-.,10,Voicemail(u${ext}) -exten => _sw-16-.,11,Goto(s\,10) -exten => sw-16-,10,Goto(sw-16-.|10) -exten => sw-16-NOANSWER,10,Voicemail(u${ext}) -exten => sw-16-NOANSWER,11,Goto(s\,10) -exten => sw-16-ANSWER,10,Goto(s\,10) -exten => sw-16-BUSY,10,Voicemail(b${ext}) -exten => sw-16-BUSY,11,Goto(s\,10) -exten => sw-16-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-16-DONTCALL,11,Goto(s\,10) -exten => sw-16-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-16-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_15] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-17-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_15-17) -exten => s,11,Return() -exten => _sw-17-.,10,Voicemail(u${ext}) -exten => _sw-17-.,11,Goto(s\,10) -exten => sw-17-,10,Goto(sw-17-.|10) -exten => sw-17-NOANSWER,10,Voicemail(u${ext}) -exten => sw-17-NOANSWER,11,Goto(s\,10) -exten => sw-17-ANSWER,10,Goto(s\,10) -exten => sw-17-BUSY,10,Voicemail(b${ext}) -exten => sw-17-BUSY,11,Goto(s\,10) -exten => sw-17-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-17-DONTCALL,11,Goto(s\,10) -exten => sw-17-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-17-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_16] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-18-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_16-18) -exten => s,11,Return() -exten => _sw-18-.,10,Voicemail(u${ext}) -exten => _sw-18-.,11,Goto(s\,10) -exten => sw-18-,10,Goto(sw-18-.|10) -exten => sw-18-NOANSWER,10,Voicemail(u${ext}) -exten => sw-18-NOANSWER,11,Goto(s\,10) -exten => sw-18-ANSWER,10,Goto(s\,10) -exten => sw-18-BUSY,10,Voicemail(b${ext}) -exten => sw-18-BUSY,11,Goto(s\,10) -exten => sw-18-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-18-DONTCALL,11,Goto(s\,10) -exten => sw-18-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-18-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_17] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-19-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_17-19) -exten => s,11,Return() -exten => _sw-19-.,10,Voicemail(u${ext}) -exten => _sw-19-.,11,Goto(s\,10) -exten => sw-19-,10,Goto(sw-19-.|10) -exten => sw-19-NOANSWER,10,Voicemail(u${ext}) -exten => sw-19-NOANSWER,11,Goto(s\,10) -exten => sw-19-ANSWER,10,Goto(s\,10) -exten => sw-19-BUSY,10,Voicemail(b${ext}) -exten => sw-19-BUSY,11,Goto(s\,10) -exten => sw-19-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-19-DONTCALL,11,Goto(s\,10) -exten => sw-19-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-19-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_18] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-20-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_18-20) -exten => s,11,Return() -exten => _sw-20-.,10,Voicemail(u${ext}) -exten => _sw-20-.,11,Goto(s\,10) -exten => sw-20-,10,Goto(sw-20-.|10) -exten => sw-20-NOANSWER,10,Voicemail(u${ext}) -exten => sw-20-NOANSWER,11,Goto(s\,10) -exten => sw-20-ANSWER,10,Goto(s\,10) -exten => sw-20-BUSY,10,Voicemail(b${ext}) -exten => sw-20-BUSY,11,Goto(s\,10) -exten => sw-20-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-20-DONTCALL,11,Goto(s\,10) -exten => sw-20-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-20-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_19] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-21-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_19-21) -exten => s,11,Return() -exten => _sw-21-.,10,Voicemail(u${ext}) -exten => _sw-21-.,11,Goto(s\,10) -exten => sw-21-,10,Goto(sw-21-.|10) -exten => sw-21-NOANSWER,10,Voicemail(u${ext}) -exten => sw-21-NOANSWER,11,Goto(s\,10) -exten => sw-21-ANSWER,10,Goto(s\,10) -exten => sw-21-BUSY,10,Voicemail(b${ext}) -exten => sw-21-BUSY,11,Goto(s\,10) -exten => sw-21-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-21-DONTCALL,11,Goto(s\,10) -exten => sw-21-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-21-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_20] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-22-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_20-22) -exten => s,11,Return() -exten => _sw-22-.,10,Voicemail(u${ext}) -exten => _sw-22-.,11,Goto(s\,10) -exten => sw-22-,10,Goto(sw-22-.|10) -exten => sw-22-NOANSWER,10,Voicemail(u${ext}) -exten => sw-22-NOANSWER,11,Goto(s\,10) -exten => sw-22-ANSWER,10,Goto(s\,10) -exten => sw-22-BUSY,10,Voicemail(b${ext}) -exten => sw-22-BUSY,11,Goto(s\,10) -exten => sw-22-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-22-DONTCALL,11,Goto(s\,10) -exten => sw-22-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-22-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_21] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-23-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_21-23) -exten => s,11,Return() -exten => _sw-23-.,10,Voicemail(u${ext}) -exten => _sw-23-.,11,Goto(s\,10) -exten => sw-23-,10,Goto(sw-23-.|10) -exten => sw-23-NOANSWER,10,Voicemail(u${ext}) -exten => sw-23-NOANSWER,11,Goto(s\,10) -exten => sw-23-ANSWER,10,Goto(s\,10) -exten => sw-23-BUSY,10,Voicemail(b${ext}) -exten => sw-23-BUSY,11,Goto(s\,10) -exten => sw-23-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-23-DONTCALL,11,Goto(s\,10) -exten => sw-23-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-23-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_22] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-24-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_22-24) -exten => s,11,Return() -exten => _sw-24-.,10,Voicemail(u${ext}) -exten => _sw-24-.,11,Goto(s\,10) -exten => sw-24-,10,Goto(sw-24-.|10) -exten => sw-24-NOANSWER,10,Voicemail(u${ext}) -exten => sw-24-NOANSWER,11,Goto(s\,10) -exten => sw-24-ANSWER,10,Goto(s\,10) -exten => sw-24-BUSY,10,Voicemail(b${ext}) -exten => sw-24-BUSY,11,Goto(s\,10) -exten => sw-24-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-24-DONTCALL,11,Goto(s\,10) -exten => sw-24-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-24-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_23] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-25-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_23-25) -exten => s,11,Return() -exten => _sw-25-.,10,Voicemail(u${ext}) -exten => _sw-25-.,11,Goto(s\,10) -exten => sw-25-,10,Goto(sw-25-.|10) -exten => sw-25-NOANSWER,10,Voicemail(u${ext}) -exten => sw-25-NOANSWER,11,Goto(s\,10) -exten => sw-25-ANSWER,10,Goto(s\,10) -exten => sw-25-BUSY,10,Voicemail(b${ext}) -exten => sw-25-BUSY,11,Goto(s\,10) -exten => sw-25-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-25-DONTCALL,11,Goto(s\,10) -exten => sw-25-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-25-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_24] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-26-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_24-26) -exten => s,11,Return() -exten => _sw-26-.,10,Voicemail(u${ext}) -exten => _sw-26-.,11,Goto(s\,10) -exten => sw-26-,10,Goto(sw-26-.|10) -exten => sw-26-NOANSWER,10,Voicemail(u${ext}) -exten => sw-26-NOANSWER,11,Goto(s\,10) -exten => sw-26-ANSWER,10,Goto(s\,10) -exten => sw-26-BUSY,10,Voicemail(b${ext}) -exten => sw-26-BUSY,11,Goto(s\,10) -exten => sw-26-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-26-DONTCALL,11,Goto(s\,10) -exten => sw-26-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-26-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_25] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-27-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_25-27) -exten => s,11,Return() -exten => _sw-27-.,10,Voicemail(u${ext}) -exten => _sw-27-.,11,Goto(s\,10) -exten => sw-27-,10,Goto(sw-27-.|10) -exten => sw-27-NOANSWER,10,Voicemail(u${ext}) -exten => sw-27-NOANSWER,11,Goto(s\,10) -exten => sw-27-ANSWER,10,Goto(s\,10) -exten => sw-27-BUSY,10,Voicemail(b${ext}) -exten => sw-27-BUSY,11,Goto(s\,10) -exten => sw-27-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-27-DONTCALL,11,Goto(s\,10) -exten => sw-27-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-27-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_26] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-28-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_26-28) -exten => s,11,Return() -exten => _sw-28-.,10,Voicemail(u${ext}) -exten => _sw-28-.,11,Goto(s\,10) -exten => sw-28-,10,Goto(sw-28-.|10) -exten => sw-28-NOANSWER,10,Voicemail(u${ext}) -exten => sw-28-NOANSWER,11,Goto(s\,10) -exten => sw-28-ANSWER,10,Goto(s\,10) -exten => sw-28-BUSY,10,Voicemail(b${ext}) -exten => sw-28-BUSY,11,Goto(s\,10) -exten => sw-28-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-28-DONTCALL,11,Goto(s\,10) -exten => sw-28-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-28-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_27] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-29-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_27-29) -exten => s,11,Return() -exten => _sw-29-.,10,Voicemail(u${ext}) -exten => _sw-29-.,11,Goto(s\,10) -exten => sw-29-,10,Goto(sw-29-.|10) -exten => sw-29-NOANSWER,10,Voicemail(u${ext}) -exten => sw-29-NOANSWER,11,Goto(s\,10) -exten => sw-29-ANSWER,10,Goto(s\,10) -exten => sw-29-BUSY,10,Voicemail(b${ext}) -exten => sw-29-BUSY,11,Goto(s\,10) -exten => sw-29-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-29-DONTCALL,11,Goto(s\,10) -exten => sw-29-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-29-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_28] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-30-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_28-30) -exten => s,11,Return() -exten => _sw-30-.,10,Voicemail(u${ext}) -exten => _sw-30-.,11,Goto(s\,10) -exten => sw-30-,10,Goto(sw-30-.|10) -exten => sw-30-NOANSWER,10,Voicemail(u${ext}) -exten => sw-30-NOANSWER,11,Goto(s\,10) -exten => sw-30-ANSWER,10,Goto(s\,10) -exten => sw-30-BUSY,10,Voicemail(b${ext}) -exten => sw-30-BUSY,11,Goto(s\,10) -exten => sw-30-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-30-DONTCALL,11,Goto(s\,10) -exten => sw-30-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-30-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_29] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-31-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_29-31) -exten => s,11,Return() -exten => _sw-31-.,10,Voicemail(u${ext}) -exten => _sw-31-.,11,Goto(s\,10) -exten => sw-31-,10,Goto(sw-31-.|10) -exten => sw-31-NOANSWER,10,Voicemail(u${ext}) -exten => sw-31-NOANSWER,11,Goto(s\,10) -exten => sw-31-ANSWER,10,Goto(s\,10) -exten => sw-31-BUSY,10,Voicemail(b${ext}) -exten => sw-31-BUSY,11,Goto(s\,10) -exten => sw-31-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-31-DONTCALL,11,Goto(s\,10) -exten => sw-31-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-31-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_30] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-32-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_30-32) -exten => s,11,Return() -exten => _sw-32-.,10,Voicemail(u${ext}) -exten => _sw-32-.,11,Goto(s\,10) -exten => sw-32-,10,Goto(sw-32-.|10) -exten => sw-32-NOANSWER,10,Voicemail(u${ext}) -exten => sw-32-NOANSWER,11,Goto(s\,10) -exten => sw-32-ANSWER,10,Goto(s\,10) -exten => sw-32-BUSY,10,Voicemail(b${ext}) -exten => sw-32-BUSY,11,Goto(s\,10) -exten => sw-32-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-32-DONTCALL,11,Goto(s\,10) -exten => sw-32-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-32-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_31] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-33-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_31-33) -exten => s,11,Return() -exten => _sw-33-.,10,Voicemail(u${ext}) -exten => _sw-33-.,11,Goto(s\,10) -exten => sw-33-,10,Goto(sw-33-.|10) -exten => sw-33-NOANSWER,10,Voicemail(u${ext}) -exten => sw-33-NOANSWER,11,Goto(s\,10) -exten => sw-33-ANSWER,10,Goto(s\,10) -exten => sw-33-BUSY,10,Voicemail(b${ext}) -exten => sw-33-BUSY,11,Goto(s\,10) -exten => sw-33-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-33-DONTCALL,11,Goto(s\,10) -exten => sw-33-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-33-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_32] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-34-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_32-34) -exten => s,11,Return() -exten => _sw-34-.,10,Voicemail(u${ext}) -exten => _sw-34-.,11,Goto(s\,10) -exten => sw-34-,10,Goto(sw-34-.|10) -exten => sw-34-NOANSWER,10,Voicemail(u${ext}) -exten => sw-34-NOANSWER,11,Goto(s\,10) -exten => sw-34-ANSWER,10,Goto(s\,10) -exten => sw-34-BUSY,10,Voicemail(b${ext}) -exten => sw-34-BUSY,11,Goto(s\,10) -exten => sw-34-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-34-DONTCALL,11,Goto(s\,10) -exten => sw-34-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-34-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_33] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-35-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_33-35) -exten => s,11,Return() -exten => _sw-35-.,10,Voicemail(u${ext}) -exten => _sw-35-.,11,Goto(s\,10) -exten => sw-35-,10,Goto(sw-35-.|10) -exten => sw-35-NOANSWER,10,Voicemail(u${ext}) -exten => sw-35-NOANSWER,11,Goto(s\,10) -exten => sw-35-ANSWER,10,Goto(s\,10) -exten => sw-35-BUSY,10,Voicemail(b${ext}) -exten => sw-35-BUSY,11,Goto(s\,10) -exten => sw-35-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-35-DONTCALL,11,Goto(s\,10) -exten => sw-35-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-35-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_34] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-36-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_34-36) -exten => s,11,Return() -exten => _sw-36-.,10,Voicemail(u${ext}) -exten => _sw-36-.,11,Goto(s\,10) -exten => sw-36-,10,Goto(sw-36-.|10) -exten => sw-36-NOANSWER,10,Voicemail(u${ext}) -exten => sw-36-NOANSWER,11,Goto(s\,10) -exten => sw-36-ANSWER,10,Goto(s\,10) -exten => sw-36-BUSY,10,Voicemail(b${ext}) -exten => sw-36-BUSY,11,Goto(s\,10) -exten => sw-36-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-36-DONTCALL,11,Goto(s\,10) -exten => sw-36-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-36-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_35] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-37-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_35-37) -exten => s,11,Return() -exten => _sw-37-.,10,Voicemail(u${ext}) -exten => _sw-37-.,11,Goto(s\,10) -exten => sw-37-,10,Goto(sw-37-.|10) -exten => sw-37-NOANSWER,10,Voicemail(u${ext}) -exten => sw-37-NOANSWER,11,Goto(s\,10) -exten => sw-37-ANSWER,10,Goto(s\,10) -exten => sw-37-BUSY,10,Voicemail(b${ext}) -exten => sw-37-BUSY,11,Goto(s\,10) -exten => sw-37-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-37-DONTCALL,11,Goto(s\,10) -exten => sw-37-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-37-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_36] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-38-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_36-38) -exten => s,11,Return() -exten => _sw-38-.,10,Voicemail(u${ext}) -exten => _sw-38-.,11,Goto(s\,10) -exten => sw-38-,10,Goto(sw-38-.|10) -exten => sw-38-NOANSWER,10,Voicemail(u${ext}) -exten => sw-38-NOANSWER,11,Goto(s\,10) -exten => sw-38-ANSWER,10,Goto(s\,10) -exten => sw-38-BUSY,10,Voicemail(b${ext}) -exten => sw-38-BUSY,11,Goto(s\,10) -exten => sw-38-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-38-DONTCALL,11,Goto(s\,10) -exten => sw-38-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-38-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_37] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-39-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_37-39) -exten => s,11,Return() -exten => _sw-39-.,10,Voicemail(u${ext}) -exten => _sw-39-.,11,Goto(s\,10) -exten => sw-39-,10,Goto(sw-39-.|10) -exten => sw-39-NOANSWER,10,Voicemail(u${ext}) -exten => sw-39-NOANSWER,11,Goto(s\,10) -exten => sw-39-ANSWER,10,Goto(s\,10) -exten => sw-39-BUSY,10,Voicemail(b${ext}) -exten => sw-39-BUSY,11,Goto(s\,10) -exten => sw-39-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-39-DONTCALL,11,Goto(s\,10) -exten => sw-39-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-39-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_38] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-40-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_38-40) -exten => s,11,Return() -exten => _sw-40-.,10,Voicemail(u${ext}) -exten => _sw-40-.,11,Goto(s\,10) -exten => sw-40-,10,Goto(sw-40-.|10) -exten => sw-40-NOANSWER,10,Voicemail(u${ext}) -exten => sw-40-NOANSWER,11,Goto(s\,10) -exten => sw-40-ANSWER,10,Goto(s\,10) -exten => sw-40-BUSY,10,Voicemail(b${ext}) -exten => sw-40-BUSY,11,Goto(s\,10) -exten => sw-40-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-40-DONTCALL,11,Goto(s\,10) -exten => sw-40-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-40-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_39] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-41-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_39-41) -exten => s,11,Return() -exten => _sw-41-.,10,Voicemail(u${ext}) -exten => _sw-41-.,11,Goto(s\,10) -exten => sw-41-,10,Goto(sw-41-.|10) -exten => sw-41-NOANSWER,10,Voicemail(u${ext}) -exten => sw-41-NOANSWER,11,Goto(s\,10) -exten => sw-41-ANSWER,10,Goto(s\,10) -exten => sw-41-BUSY,10,Voicemail(b${ext}) -exten => sw-41-BUSY,11,Goto(s\,10) -exten => sw-41-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-41-DONTCALL,11,Goto(s\,10) -exten => sw-41-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-41-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_40] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-42-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_40-42) -exten => s,11,Return() -exten => _sw-42-.,10,Voicemail(u${ext}) -exten => _sw-42-.,11,Goto(s\,10) -exten => sw-42-,10,Goto(sw-42-.|10) -exten => sw-42-NOANSWER,10,Voicemail(u${ext}) -exten => sw-42-NOANSWER,11,Goto(s\,10) -exten => sw-42-ANSWER,10,Goto(s\,10) -exten => sw-42-BUSY,10,Voicemail(b${ext}) -exten => sw-42-BUSY,11,Goto(s\,10) -exten => sw-42-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-42-DONTCALL,11,Goto(s\,10) -exten => sw-42-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-42-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_41] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-43-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_41-43) -exten => s,11,Return() -exten => _sw-43-.,10,Voicemail(u${ext}) -exten => _sw-43-.,11,Goto(s\,10) -exten => sw-43-,10,Goto(sw-43-.|10) -exten => sw-43-NOANSWER,10,Voicemail(u${ext}) -exten => sw-43-NOANSWER,11,Goto(s\,10) -exten => sw-43-ANSWER,10,Goto(s\,10) -exten => sw-43-BUSY,10,Voicemail(b${ext}) -exten => sw-43-BUSY,11,Goto(s\,10) -exten => sw-43-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-43-DONTCALL,11,Goto(s\,10) -exten => sw-43-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-43-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_42] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-44-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_42-44) -exten => s,11,Return() -exten => _sw-44-.,10,Voicemail(u${ext}) -exten => _sw-44-.,11,Goto(s\,10) -exten => sw-44-,10,Goto(sw-44-.|10) -exten => sw-44-NOANSWER,10,Voicemail(u${ext}) -exten => sw-44-NOANSWER,11,Goto(s\,10) -exten => sw-44-ANSWER,10,Goto(s\,10) -exten => sw-44-BUSY,10,Voicemail(b${ext}) -exten => sw-44-BUSY,11,Goto(s\,10) -exten => sw-44-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-44-DONTCALL,11,Goto(s\,10) -exten => sw-44-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-44-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_43] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-45-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_43-45) -exten => s,11,Return() -exten => _sw-45-.,10,Voicemail(u${ext}) -exten => _sw-45-.,11,Goto(s\,10) -exten => sw-45-,10,Goto(sw-45-.|10) -exten => sw-45-NOANSWER,10,Voicemail(u${ext}) -exten => sw-45-NOANSWER,11,Goto(s\,10) -exten => sw-45-ANSWER,10,Goto(s\,10) -exten => sw-45-BUSY,10,Voicemail(b${ext}) -exten => sw-45-BUSY,11,Goto(s\,10) -exten => sw-45-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-45-DONTCALL,11,Goto(s\,10) -exten => sw-45-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-45-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_44] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-46-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_44-46) -exten => s,11,Return() -exten => _sw-46-.,10,Voicemail(u${ext}) -exten => _sw-46-.,11,Goto(s\,10) -exten => sw-46-,10,Goto(sw-46-.|10) -exten => sw-46-NOANSWER,10,Voicemail(u${ext}) -exten => sw-46-NOANSWER,11,Goto(s\,10) -exten => sw-46-ANSWER,10,Goto(s\,10) -exten => sw-46-BUSY,10,Voicemail(b${ext}) -exten => sw-46-BUSY,11,Goto(s\,10) -exten => sw-46-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-46-DONTCALL,11,Goto(s\,10) -exten => sw-46-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-46-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_45] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-47-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_45-47) -exten => s,11,Return() -exten => _sw-47-.,10,Voicemail(u${ext}) -exten => _sw-47-.,11,Goto(s\,10) -exten => sw-47-,10,Goto(sw-47-.|10) -exten => sw-47-NOANSWER,10,Voicemail(u${ext}) -exten => sw-47-NOANSWER,11,Goto(s\,10) -exten => sw-47-ANSWER,10,Goto(s\,10) -exten => sw-47-BUSY,10,Voicemail(b${ext}) -exten => sw-47-BUSY,11,Goto(s\,10) -exten => sw-47-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-47-DONTCALL,11,Goto(s\,10) -exten => sw-47-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-47-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_46] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-48-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_46-48) -exten => s,11,Return() -exten => _sw-48-.,10,Voicemail(u${ext}) -exten => _sw-48-.,11,Goto(s\,10) -exten => sw-48-,10,Goto(sw-48-.|10) -exten => sw-48-NOANSWER,10,Voicemail(u${ext}) -exten => sw-48-NOANSWER,11,Goto(s\,10) -exten => sw-48-ANSWER,10,Goto(s\,10) -exten => sw-48-BUSY,10,Voicemail(b${ext}) -exten => sw-48-BUSY,11,Goto(s\,10) -exten => sw-48-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-48-DONTCALL,11,Goto(s\,10) -exten => sw-48-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-48-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_47] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-49-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_47-49) -exten => s,11,Return() -exten => _sw-49-.,10,Voicemail(u${ext}) -exten => _sw-49-.,11,Goto(s\,10) -exten => sw-49-,10,Goto(sw-49-.|10) -exten => sw-49-NOANSWER,10,Voicemail(u${ext}) -exten => sw-49-NOANSWER,11,Goto(s\,10) -exten => sw-49-ANSWER,10,Goto(s\,10) -exten => sw-49-BUSY,10,Voicemail(b${ext}) -exten => sw-49-BUSY,11,Goto(s\,10) -exten => sw-49-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-49-DONTCALL,11,Goto(s\,10) -exten => sw-49-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-49-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_48] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-50-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_48-50) -exten => s,11,Return() -exten => _sw-50-.,10,Voicemail(u${ext}) -exten => _sw-50-.,11,Goto(s\,10) -exten => sw-50-,10,Goto(sw-50-.|10) -exten => sw-50-NOANSWER,10,Voicemail(u${ext}) -exten => sw-50-NOANSWER,11,Goto(s\,10) -exten => sw-50-ANSWER,10,Goto(s\,10) -exten => sw-50-BUSY,10,Voicemail(b${ext}) -exten => sw-50-BUSY,11,Goto(s\,10) -exten => sw-50-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-50-DONTCALL,11,Goto(s\,10) -exten => sw-50-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-50-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_49] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-51-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_49-51) -exten => s,11,Return() -exten => _sw-51-.,10,Voicemail(u${ext}) -exten => _sw-51-.,11,Goto(s\,10) -exten => sw-51-,10,Goto(sw-51-.|10) -exten => sw-51-NOANSWER,10,Voicemail(u${ext}) -exten => sw-51-NOANSWER,11,Goto(s\,10) -exten => sw-51-ANSWER,10,Goto(s\,10) -exten => sw-51-BUSY,10,Voicemail(b${ext}) -exten => sw-51-BUSY,11,Goto(s\,10) -exten => sw-51-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-51-DONTCALL,11,Goto(s\,10) -exten => sw-51-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-51-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_50] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-52-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_50-52) -exten => s,11,Return() -exten => _sw-52-.,10,Voicemail(u${ext}) -exten => _sw-52-.,11,Goto(s\,10) -exten => sw-52-,10,Goto(sw-52-.|10) -exten => sw-52-NOANSWER,10,Voicemail(u${ext}) -exten => sw-52-NOANSWER,11,Goto(s\,10) -exten => sw-52-ANSWER,10,Goto(s\,10) -exten => sw-52-BUSY,10,Voicemail(b${ext}) -exten => sw-52-BUSY,11,Goto(s\,10) -exten => sw-52-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-52-DONTCALL,11,Goto(s\,10) -exten => sw-52-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-52-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_51] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-53-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_51-53) -exten => s,11,Return() -exten => _sw-53-.,10,Voicemail(u${ext}) -exten => _sw-53-.,11,Goto(s\,10) -exten => sw-53-,10,Goto(sw-53-.|10) -exten => sw-53-NOANSWER,10,Voicemail(u${ext}) -exten => sw-53-NOANSWER,11,Goto(s\,10) -exten => sw-53-ANSWER,10,Goto(s\,10) -exten => sw-53-BUSY,10,Voicemail(b${ext}) -exten => sw-53-BUSY,11,Goto(s\,10) -exten => sw-53-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-53-DONTCALL,11,Goto(s\,10) -exten => sw-53-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-53-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_52] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-54-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_52-54) -exten => s,11,Return() -exten => _sw-54-.,10,Voicemail(u${ext}) -exten => _sw-54-.,11,Goto(s\,10) -exten => sw-54-,10,Goto(sw-54-.|10) -exten => sw-54-NOANSWER,10,Voicemail(u${ext}) -exten => sw-54-NOANSWER,11,Goto(s\,10) -exten => sw-54-ANSWER,10,Goto(s\,10) -exten => sw-54-BUSY,10,Voicemail(b${ext}) -exten => sw-54-BUSY,11,Goto(s\,10) -exten => sw-54-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-54-DONTCALL,11,Goto(s\,10) -exten => sw-54-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-54-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_53] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-55-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_53-55) -exten => s,11,Return() -exten => _sw-55-.,10,Voicemail(u${ext}) -exten => _sw-55-.,11,Goto(s\,10) -exten => sw-55-,10,Goto(sw-55-.|10) -exten => sw-55-NOANSWER,10,Voicemail(u${ext}) -exten => sw-55-NOANSWER,11,Goto(s\,10) -exten => sw-55-ANSWER,10,Goto(s\,10) -exten => sw-55-BUSY,10,Voicemail(b${ext}) -exten => sw-55-BUSY,11,Goto(s\,10) -exten => sw-55-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-55-DONTCALL,11,Goto(s\,10) -exten => sw-55-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-55-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_54] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-56-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_54-56) -exten => s,11,Return() -exten => _sw-56-.,10,Voicemail(u${ext}) -exten => _sw-56-.,11,Goto(s\,10) -exten => sw-56-,10,Goto(sw-56-.|10) -exten => sw-56-NOANSWER,10,Voicemail(u${ext}) -exten => sw-56-NOANSWER,11,Goto(s\,10) -exten => sw-56-ANSWER,10,Goto(s\,10) -exten => sw-56-BUSY,10,Voicemail(b${ext}) -exten => sw-56-BUSY,11,Goto(s\,10) -exten => sw-56-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-56-DONTCALL,11,Goto(s\,10) -exten => sw-56-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-56-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_55] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-57-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_55-57) -exten => s,11,Return() -exten => _sw-57-.,10,Voicemail(u${ext}) -exten => _sw-57-.,11,Goto(s\,10) -exten => sw-57-,10,Goto(sw-57-.|10) -exten => sw-57-NOANSWER,10,Voicemail(u${ext}) -exten => sw-57-NOANSWER,11,Goto(s\,10) -exten => sw-57-ANSWER,10,Goto(s\,10) -exten => sw-57-BUSY,10,Voicemail(b${ext}) -exten => sw-57-BUSY,11,Goto(s\,10) -exten => sw-57-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-57-DONTCALL,11,Goto(s\,10) -exten => sw-57-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-57-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_56] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-58-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_56-58) -exten => s,11,Return() -exten => _sw-58-.,10,Voicemail(u${ext}) -exten => _sw-58-.,11,Goto(s\,10) -exten => sw-58-,10,Goto(sw-58-.|10) -exten => sw-58-NOANSWER,10,Voicemail(u${ext}) -exten => sw-58-NOANSWER,11,Goto(s\,10) -exten => sw-58-ANSWER,10,Goto(s\,10) -exten => sw-58-BUSY,10,Voicemail(b${ext}) -exten => sw-58-BUSY,11,Goto(s\,10) -exten => sw-58-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-58-DONTCALL,11,Goto(s\,10) -exten => sw-58-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-58-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_57] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-59-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_57-59) -exten => s,11,Return() -exten => _sw-59-.,10,Voicemail(u${ext}) -exten => _sw-59-.,11,Goto(s\,10) -exten => sw-59-,10,Goto(sw-59-.|10) -exten => sw-59-NOANSWER,10,Voicemail(u${ext}) -exten => sw-59-NOANSWER,11,Goto(s\,10) -exten => sw-59-ANSWER,10,Goto(s\,10) -exten => sw-59-BUSY,10,Voicemail(b${ext}) -exten => sw-59-BUSY,11,Goto(s\,10) -exten => sw-59-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-59-DONTCALL,11,Goto(s\,10) -exten => sw-59-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-59-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_58] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-60-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_58-60) -exten => s,11,Return() -exten => _sw-60-.,10,Voicemail(u${ext}) -exten => _sw-60-.,11,Goto(s\,10) -exten => sw-60-,10,Goto(sw-60-.|10) -exten => sw-60-NOANSWER,10,Voicemail(u${ext}) -exten => sw-60-NOANSWER,11,Goto(s\,10) -exten => sw-60-ANSWER,10,Goto(s\,10) -exten => sw-60-BUSY,10,Voicemail(b${ext}) -exten => sw-60-BUSY,11,Goto(s\,10) -exten => sw-60-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-60-DONTCALL,11,Goto(s\,10) -exten => sw-60-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-60-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_59] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-61-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_59-61) -exten => s,11,Return() -exten => _sw-61-.,10,Voicemail(u${ext}) -exten => _sw-61-.,11,Goto(s\,10) -exten => sw-61-,10,Goto(sw-61-.|10) -exten => sw-61-NOANSWER,10,Voicemail(u${ext}) -exten => sw-61-NOANSWER,11,Goto(s\,10) -exten => sw-61-ANSWER,10,Goto(s\,10) -exten => sw-61-BUSY,10,Voicemail(b${ext}) -exten => sw-61-BUSY,11,Goto(s\,10) -exten => sw-61-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-61-DONTCALL,11,Goto(s\,10) -exten => sw-61-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-61-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_60] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-62-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_60-62) -exten => s,11,Return() -exten => _sw-62-.,10,Voicemail(u${ext}) -exten => _sw-62-.,11,Goto(s\,10) -exten => sw-62-,10,Goto(sw-62-.|10) -exten => sw-62-NOANSWER,10,Voicemail(u${ext}) -exten => sw-62-NOANSWER,11,Goto(s\,10) -exten => sw-62-ANSWER,10,Goto(s\,10) -exten => sw-62-BUSY,10,Voicemail(b${ext}) -exten => sw-62-BUSY,11,Goto(s\,10) -exten => sw-62-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-62-DONTCALL,11,Goto(s\,10) -exten => sw-62-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-62-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_61] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-63-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_61-63) -exten => s,11,Return() -exten => _sw-63-.,10,Voicemail(u${ext}) -exten => _sw-63-.,11,Goto(s\,10) -exten => sw-63-,10,Goto(sw-63-.|10) -exten => sw-63-NOANSWER,10,Voicemail(u${ext}) -exten => sw-63-NOANSWER,11,Goto(s\,10) -exten => sw-63-ANSWER,10,Goto(s\,10) -exten => sw-63-BUSY,10,Voicemail(b${ext}) -exten => sw-63-BUSY,11,Goto(s\,10) -exten => sw-63-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-63-DONTCALL,11,Goto(s\,10) -exten => sw-63-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-63-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_62] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-64-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_62-64) -exten => s,11,Return() -exten => _sw-64-.,10,Voicemail(u${ext}) -exten => _sw-64-.,11,Goto(s\,10) -exten => sw-64-,10,Goto(sw-64-.|10) -exten => sw-64-NOANSWER,10,Voicemail(u${ext}) -exten => sw-64-NOANSWER,11,Goto(s\,10) -exten => sw-64-ANSWER,10,Goto(s\,10) -exten => sw-64-BUSY,10,Voicemail(b${ext}) -exten => sw-64-BUSY,11,Goto(s\,10) -exten => sw-64-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-64-DONTCALL,11,Goto(s\,10) -exten => sw-64-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-64-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_63] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-65-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_63-65) -exten => s,11,Return() -exten => _sw-65-.,10,Voicemail(u${ext}) -exten => _sw-65-.,11,Goto(s\,10) -exten => sw-65-,10,Goto(sw-65-.|10) -exten => sw-65-NOANSWER,10,Voicemail(u${ext}) -exten => sw-65-NOANSWER,11,Goto(s\,10) -exten => sw-65-ANSWER,10,Goto(s\,10) -exten => sw-65-BUSY,10,Voicemail(b${ext}) -exten => sw-65-BUSY,11,Goto(s\,10) -exten => sw-65-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-65-DONTCALL,11,Goto(s\,10) -exten => sw-65-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-65-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_64] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-66-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_64-66) -exten => s,11,Return() -exten => _sw-66-.,10,Voicemail(u${ext}) -exten => _sw-66-.,11,Goto(s\,10) -exten => sw-66-,10,Goto(sw-66-.|10) -exten => sw-66-NOANSWER,10,Voicemail(u${ext}) -exten => sw-66-NOANSWER,11,Goto(s\,10) -exten => sw-66-ANSWER,10,Goto(s\,10) -exten => sw-66-BUSY,10,Voicemail(b${ext}) -exten => sw-66-BUSY,11,Goto(s\,10) -exten => sw-66-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-66-DONTCALL,11,Goto(s\,10) -exten => sw-66-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-66-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_65] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-67-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_65-67) -exten => s,11,Return() -exten => _sw-67-.,10,Voicemail(u${ext}) -exten => _sw-67-.,11,Goto(s\,10) -exten => sw-67-,10,Goto(sw-67-.|10) -exten => sw-67-NOANSWER,10,Voicemail(u${ext}) -exten => sw-67-NOANSWER,11,Goto(s\,10) -exten => sw-67-ANSWER,10,Goto(s\,10) -exten => sw-67-BUSY,10,Voicemail(b${ext}) -exten => sw-67-BUSY,11,Goto(s\,10) -exten => sw-67-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-67-DONTCALL,11,Goto(s\,10) -exten => sw-67-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-67-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_66] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-68-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_66-68) -exten => s,11,Return() -exten => _sw-68-.,10,Voicemail(u${ext}) -exten => _sw-68-.,11,Goto(s\,10) -exten => sw-68-,10,Goto(sw-68-.|10) -exten => sw-68-NOANSWER,10,Voicemail(u${ext}) -exten => sw-68-NOANSWER,11,Goto(s\,10) -exten => sw-68-ANSWER,10,Goto(s\,10) -exten => sw-68-BUSY,10,Voicemail(b${ext}) -exten => sw-68-BUSY,11,Goto(s\,10) -exten => sw-68-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-68-DONTCALL,11,Goto(s\,10) -exten => sw-68-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-68-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_67] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-69-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_67-69) -exten => s,11,Return() -exten => _sw-69-.,10,Voicemail(u${ext}) -exten => _sw-69-.,11,Goto(s\,10) -exten => sw-69-,10,Goto(sw-69-.|10) -exten => sw-69-NOANSWER,10,Voicemail(u${ext}) -exten => sw-69-NOANSWER,11,Goto(s\,10) -exten => sw-69-ANSWER,10,Goto(s\,10) -exten => sw-69-BUSY,10,Voicemail(b${ext}) -exten => sw-69-BUSY,11,Goto(s\,10) -exten => sw-69-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-69-DONTCALL,11,Goto(s\,10) -exten => sw-69-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-69-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_68] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-70-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_68-70) -exten => s,11,Return() -exten => _sw-70-.,10,Voicemail(u${ext}) -exten => _sw-70-.,11,Goto(s\,10) -exten => sw-70-,10,Goto(sw-70-.|10) -exten => sw-70-NOANSWER,10,Voicemail(u${ext}) -exten => sw-70-NOANSWER,11,Goto(s\,10) -exten => sw-70-ANSWER,10,Goto(s\,10) -exten => sw-70-BUSY,10,Voicemail(b${ext}) -exten => sw-70-BUSY,11,Goto(s\,10) -exten => sw-70-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-70-DONTCALL,11,Goto(s\,10) -exten => sw-70-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-70-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_69] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-71-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_69-71) -exten => s,11,Return() -exten => _sw-71-.,10,Voicemail(u${ext}) -exten => _sw-71-.,11,Goto(s\,10) -exten => sw-71-,10,Goto(sw-71-.|10) -exten => sw-71-NOANSWER,10,Voicemail(u${ext}) -exten => sw-71-NOANSWER,11,Goto(s\,10) -exten => sw-71-ANSWER,10,Goto(s\,10) -exten => sw-71-BUSY,10,Voicemail(b${ext}) -exten => sw-71-BUSY,11,Goto(s\,10) -exten => sw-71-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-71-DONTCALL,11,Goto(s\,10) -exten => sw-71-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-71-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_70] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-72-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_70-72) -exten => s,11,Return() -exten => _sw-72-.,10,Voicemail(u${ext}) -exten => _sw-72-.,11,Goto(s\,10) -exten => sw-72-,10,Goto(sw-72-.|10) -exten => sw-72-NOANSWER,10,Voicemail(u${ext}) -exten => sw-72-NOANSWER,11,Goto(s\,10) -exten => sw-72-ANSWER,10,Goto(s\,10) -exten => sw-72-BUSY,10,Voicemail(b${ext}) -exten => sw-72-BUSY,11,Goto(s\,10) -exten => sw-72-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-72-DONTCALL,11,Goto(s\,10) -exten => sw-72-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-72-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_71] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-73-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_71-73) -exten => s,11,Return() -exten => _sw-73-.,10,Voicemail(u${ext}) -exten => _sw-73-.,11,Goto(s\,10) -exten => sw-73-,10,Goto(sw-73-.|10) -exten => sw-73-NOANSWER,10,Voicemail(u${ext}) -exten => sw-73-NOANSWER,11,Goto(s\,10) -exten => sw-73-ANSWER,10,Goto(s\,10) -exten => sw-73-BUSY,10,Voicemail(b${ext}) -exten => sw-73-BUSY,11,Goto(s\,10) -exten => sw-73-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-73-DONTCALL,11,Goto(s\,10) -exten => sw-73-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-73-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_72] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-74-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_72-74) -exten => s,11,Return() -exten => _sw-74-.,10,Voicemail(u${ext}) -exten => _sw-74-.,11,Goto(s\,10) -exten => sw-74-,10,Goto(sw-74-.|10) -exten => sw-74-NOANSWER,10,Voicemail(u${ext}) -exten => sw-74-NOANSWER,11,Goto(s\,10) -exten => sw-74-ANSWER,10,Goto(s\,10) -exten => sw-74-BUSY,10,Voicemail(b${ext}) -exten => sw-74-BUSY,11,Goto(s\,10) -exten => sw-74-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-74-DONTCALL,11,Goto(s\,10) -exten => sw-74-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-74-TORTURE,11,Goto(s\,10) - - -[std-priv-exten_73] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-75-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten_73-75) -exten => s,11,Return() -exten => _sw-75-.,10,Voicemail(u${ext}) -exten => _sw-75-.,11,Goto(s\,10) -exten => sw-75-,10,Goto(sw-75-.|10) -exten => sw-75-NOANSWER,10,Voicemail(u${ext}) -exten => sw-75-NOANSWER,11,Goto(s\,10) -exten => sw-75-ANSWER,10,Goto(s\,10) -exten => sw-75-BUSY,10,Voicemail(b${ext}) -exten => sw-75-BUSY,11,Goto(s\,10) -exten => sw-75-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-75-DONTCALL,11,Goto(s\,10) -exten => sw-75-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-75-TORTURE,11,Goto(s\,10) - - -[std-priv-exten] -exten => s,1,Set(LOCAL(dev)=${ARG1}) -exten => s,2,Set(LOCAL(ext)=${ARG2}) -exten => s,3,Set(LOCAL(timeout)=${ARG3}) -exten => s,4,Set(LOCAL(opts)=${ARG4}) -exten => s,5,Set(LOCAL(torcont)=${ARG5}) -exten => s,6,Set(LOCAL(dontcont)=${ARG6}) -exten => s,7,Dial(${dev}\,${timeout}\,${opts}) -exten => s,8,NoOp(${DIALSTATUS} was chosen) -exten => s,9,Goto(sw-76-${DIALSTATUS}\,10) -exten => s,10,NoOp(Finish switch-std-priv-exten-76) -exten => s,11,Return() -exten => _sw-76-.,10,Voicemail(u${ext}) -exten => _sw-76-.,11,Goto(s\,10) -exten => sw-76-,10,Goto(sw-76-.|10) -exten => sw-76-NOANSWER,10,Voicemail(u${ext}) -exten => sw-76-NOANSWER,11,Goto(s\,10) -exten => sw-76-ANSWER,10,Goto(s\,10) -exten => sw-76-BUSY,10,Voicemail(b${ext}) -exten => sw-76-BUSY,11,Goto(s\,10) -exten => sw-76-DONTCALL,10,Goto(${dontcont}\,s\,begin) -exten => sw-76-DONTCALL,11,Goto(s\,10) -exten => sw-76-TORTURE,10,Goto(${torcont}\,s\,begin) -exten => sw-76-TORTURE,11,Goto(s\,10) - - -[fillcidname] -exten => s,1,GotoIf($["${CALLERID(num)}" = "" ]?2:3) -exten => s,2,Return() -exten => s,3,NoOp(Finish if-fillcidname-77) -exten => s,4,Set(cidn=${DB(cidname/${CALLERID(num)})}) -exten => s,5,GotoIf($["${CALLERID(name)}" != "" ]?6:9) -exten => s,6,GotoIf($[("${cidn}" = "Privacy Manager" & "${CALLERID(name)}" != "Privacy Manager") | "${cidn}" = "" ]?7:8) -exten => s,7,Set(DB(cidname/${CALLERID(num)})=${CALLERID(name)}) -exten => s,8,NoOp(Finish if-if-fillcidname-78-79) -exten => s,9,NoOp(Finish if-fillcidname-78) -exten => s,10,GotoIf($[( "${cidn}" != "" ) & ( "${CALLERID(name)}" = "" | "${CALLERID(name)}" = "CODY\,WY " | "${CALLERID(name)}" = "POWELL\,WY " | "${CALLERID(name)}" = "WIRELESS CALLER" | "${CALLERID(name)}" = "SUBSCRIBER\,WIRE" | "${CALLERID(name)}" = "CELLULAR ONE" | "${CALLERID(name)}" = "Cellular One Customer" | "${CALLERID(name)}" = "CELLULAR ONE " | "${CALLERID(name)}" = "Privacy Manager" | "${CALLERID(name)}" = "RIVERTON\,WY " | "${CALLERID(name)}" = "BASIN\,WY " | "${CALLERID(name)}" = "BILLINGS\,MT " | "${CALLERID(name)}" = "PROVO\,UT " | "${CALLERID(name)}" = "TOLL FREE " ) ]?11:12) -exten => s,11,Set(CALLERID(name)=${cidn}) -exten => s,12,NoOp(Finish if-fillcidname-80) -exten => s,13,Return() - - -[ciddial] -exten => s,1,Set(LOCAL(dialnum)=${ARG1}) -exten => s,2,Set(LOCAL(lookup)=${ARG2}) -exten => s,3,Set(LOCAL(waittime)=${ARG3}) -exten => s,4,Set(LOCAL(dialopts)=${ARG4}) -exten => s,5,Set(LOCAL(ddev)=${ARG5}) -exten => s,6,Set(cidnu=${CALLERID(num)}) -exten => s,7,Set(cidn=${DB(cidname/${lookup})}) -exten => s,8,Set(CALLERID(name)=${cidn}) -exten => s,9,Dial(${ddev}/${dialnum}|${waittime}|${dialopts}) -exten => s,10,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL" ]?11:19) -exten => s,11,BackGround(try_voip) -exten => s,12,Set(CALLERID(num)=$[7075679201]) -exten => s,13,Dial(SIP/1${lookup}@tctwest\,${waittime}\,${dialopts}) -exten => s,14,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL" ]?15:18) -exten => s,15,BackGround(try_cell) -exten => s,16,Set(CALLERID(num)=$[${cidnu}]) -exten => s,17,Dial(Zap/2/${lookup}\,${waittime}\,${dialopts}) -exten => s,18,NoOp(Finish if-if-ciddial-81-82) -exten => s,19,NoOp(Finish if-ciddial-81) -exten => s,20,Return() - - -[ciddial3] -exten => s,1,Set(LOCAL(dialnum)=${ARG1}) -exten => s,2,Set(LOCAL(lookup)=${ARG2}) -exten => s,3,Set(LOCAL(waittime)=${ARG3}) -exten => s,4,Set(LOCAL(dialopts)=${ARG4}) -exten => s,5,Set(LOCAL(ddev)=${ARG5}) -exten => s,6,Set(cidnu=${CALLERID(num)}) -exten => s,7,Set(cidn=${DB(cidname/${lookup})}) -exten => s,8,Set(CALLERID(name)=${cidn}) -exten => s,9,Dial(${ddev}/${dialnum}|${waittime}|${dialopts}) -exten => s,10,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL" ]?11:13) -exten => s,11,BackGround(try_cell) -exten => s,12,Dial(Zap/2/${lookup}\,${waittime}\,${dialopts}) -exten => s,13,NoOp(Finish if-ciddial3-83) -exten => s,14,Return() - - -[ciddial2] -exten => s,1,Set(LOCAL(dialnum)=${ARG1}) -exten => s,2,Set(LOCAL(lookup)=${ARG2}) -exten => s,3,Set(LOCAL(waittime)=${ARG3}) -exten => s,4,Set(LOCAL(dialopts)=${ARG4}) -exten => s,5,Set(LOCAL(ddev)=${ARG5}) -exten => s,6,Set(cidn=${DB(cidname/${lookup})}) -exten => s,7,Set(cidnu=${CALLERID(num)}) -exten => s,8,Set(CALLERID(name)=${cidn}) -exten => s,9,Set(CALLERID(num)=7075679201) -exten => s,10,Dial(SIP/1${lookup}@tctwest\,${waittime}\,${dialopts}) -exten => s,11,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL" ]?12:19) -exten => s,12,Set(CALLERID(num)=${cidnu}) -exten => s,13,BackGround(try_zap) -exten => s,14,Dial(${ddev}/${dialnum}\,${waittime}|${dialopts}) -exten => s,15,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL" ]?16:18) -exten => s,16,BackGround(try_cell) -exten => s,17,Dial(Zap/2/${lookup}\,${waittime}\,${dialopts}) -exten => s,18,NoOp(Finish if-if-ciddial2-84-85) -exten => s,19,NoOp(Finish if-ciddial2-84) -exten => s,20,Return() - - -[callerid-liar] -exten => s,1,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/priv-callerintros/LIAR.gsm&) -exten => s,2,Background(priv-liar) -exten => s,3,Hangup() -exten => s,4,Return() - - -[callerid-bad] -exten => s,1,Set(mycid=$[${CALLERID(num)}:"1([0-9]+)"]) -exten => s,2,Set(CALLERID(num)=${mycid}) -exten => s,3,Wait(0) -exten => s,4,Return() - - -[privacyManagerFailed] -exten => s,1(begin),Background(PrivManInstructions) -exten => s,2,PrivacyManager() -exten => s,3,GotoIf($["${PRIVACYMGRSTATUS}" = "FAILED" ]?4:11) -exten => s,4,Background(tt-allbusy) -exten => s,5,Background(tt-somethingwrong) -exten => s,6,Background(tt-monkeysintro) -exten => s,7,Background(tt-monkeys) -exten => s,8,Background(tt-weasels) -exten => s,9,Hangup() -exten => s,10,Goto(12) -exten => s,11,Goto(homeline\,s\,postPriv) -exten => s,12,NoOp(Finish if-privacyManagerFailed-86) - - -[homeline] -exten => s,1(begin),Answer() -exten => s,2,Set(repeatcount=0) -exten => s,3,Zapateller(nocallerid) -exten => s,4,PrivacyManager() -exten => s,5,GotoIf($["${PRIVACYMGRSTATUS}" = "FAILED" ]?6:10) -exten => s,6,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/privmanfailed.gsm) -exten => s,7,Gosub(std-priv-exten\,s\,1(Zap/3r1&Zap/5r1\,2\,25\,mtw\,telemarket\,telemarket)) -exten => s,8,Hangup() -exten => s,9,Return() -exten => s,10,NoOp(Finish if-homeline-87) -exten => s,11(postPriv),Gosub(fillcidname\,s\,1) -exten => s,12,Set(CONFCIDNA=${CALLERID(name)}) -exten => s,13,Set(CONFCIDNU=${CALLERID(num)}) -exten => s,14,AGI(callall) -exten => s,15,AGI(submit-announce.agi) -exten => s,16,GotoIf($["${CALLERID(num)}" : "1" ]?17:18) -exten => s,17,Gosub(callerid-bad\,s\,1) -exten => s,18,NoOp(Finish if-homeline-88) -exten => s,19,GotoIf($["${CALLERID(num)}" = "7077577685" & "${CALLERID(name)}" : "Privacy Manager" ]?20:21) -exten => s,20,Gosub(callerid-liar\,s\,1) -exten => s,21,NoOp(Finish if-homeline-89) -exten => s,22,TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&) -exten => s,23,Set(lds=${DB(playlds/${CALLERID(num)})}) -exten => s,24,GotoIf($["${lds}" = "1" ]?25:26) -exten => s,25,SetMusicOnHold(mohlds) -exten => s,26,NoOp(Finish if-homeline-90) -exten => s,27,Set(direct=$[${DB(DirectCall/${CALLERID(num)})}]) -exten => s,28,GotoIf($["${direct}" != "" & ${direct} != 0 ]?29:36) -exten => s,29,verbose(direct is XXX#${direct}XXXX) -exten => s,30,Playback(greetings/direct) -exten => s,31,Playback(/var/spool/asterisk/voicemail/default/${direct}/greet) -exten => s,32,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm) -exten => s,33,TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/${direct}/greet.wav&) -exten => s,34,Goto(sw-92-${direct}\,10) -exten => s,35,NoOp(Finish switch-if-homeline-91-92) -exten => s,36,NoOp(Finish if-homeline-91) -exten => s,37(loopback),GotoIfTime(*\,*\,20-25\,dec?39) -exten => s,38,Goto(41) -exten => s,39,Playback(greetings/christmas) -exten => s,40,Goto(102) -exten => s,41,GotoIfTime(*\,*\,31\,dec?43) -exten => s,42,Goto(45) -exten => s,43,Playback(greetings/newyear) -exten => s,44,Goto(101) -exten => s,45,GotoIfTime(*\,*\,1\,jan?47) -exten => s,46,Goto(49) -exten => s,47,Playback(greetings/newyear) -exten => s,48,Goto(100) -exten => s,49,GotoIfTime(*\,*\,14\,feb?51) -exten => s,50,Goto(53) -exten => s,51,Playback(greetings/valentines) -exten => s,52,Goto(99) -exten => s,53,GotoIfTime(*\,*\,17\,mar?55) -exten => s,54,Goto(57) -exten => s,55,Playback(greetings/stPat) -exten => s,56,Goto(98) -exten => s,57,GotoIfTime(*\,*\,31\,oct?59) -exten => s,58,Goto(61) -exten => s,59,Playback(greetings/halloween) -exten => s,60,Goto(97) -exten => s,61,GotoIfTime(*\,mon\,15-21\,jan?63) -exten => s,62,Goto(65) -exten => s,63,Playback(greetings/mlkDay) -exten => s,64,Goto(96) -exten => s,65,GotoIfTime(*\,thu\,22-28\,nov?67) -exten => s,66,Goto(69) -exten => s,67,Playback(greetings/thanksgiving) -exten => s,68,Goto(95) -exten => s,69,GotoIfTime(*\,mon\,25-31\,may?71) -exten => s,70,Goto(73) -exten => s,71,Playback(greetings/memorial) -exten => s,72,Goto(94) -exten => s,73,GotoIfTime(*\,mon\,1-7\,sep?75) -exten => s,74,Goto(77) -exten => s,75,Playback(greetings/labor) -exten => s,76,Goto(93) -exten => s,77,GotoIfTime(*\,mon\,15-21\,feb?79) -exten => s,78,Goto(81) -exten => s,79,Playback(greetings/president) -exten => s,80,Goto(92) -exten => s,81,GotoIfTime(*\,sun\,8-14\,may?83) -exten => s,82,Goto(85) -exten => s,83,Playback(greetings/mothers) -exten => s,84,Goto(91) -exten => s,85,GotoIfTime(*\,sun\,15-21\,jun?87) -exten => s,86,Goto(89) -exten => s,87,Playback(greetings/fathers) -exten => s,88,Goto(90) -exten => s,89,Playback(greetings/hello) -exten => s,90,NoOp(Finish iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-homeline-93-94-95-96-97-98-99-100-101-102-103-104-105) -exten => s,91,NoOp(Finish iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-homeline-93-94-95-96-97-98-99-100-101-102-103-104) -exten => s,92,NoOp(Finish iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-homeline-93-94-95-96-97-98-99-100-101-102-103) -exten => s,93,NoOp(Finish iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-homeline-93-94-95-96-97-98-99-100-101-102) -exten => s,94,NoOp(Finish iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-homeline-93-94-95-96-97-98-99-100-101) -exten => s,95,NoOp(Finish iftime-iftime-iftime-iftime-iftime-iftime-iftime-iftime-homeline-93-94-95-96-97-98-99-100) -exten => s,96,NoOp(Finish iftime-iftime-iftime-iftime-iftime-iftime-iftime-homeline-93-94-95-96-97-98-99) -exten => s,97,NoOp(Finish iftime-iftime-iftime-iftime-iftime-iftime-homeline-93-94-95-96-97-98) -exten => s,98,NoOp(Finish iftime-iftime-iftime-iftime-iftime-homeline-93-94-95-96-97) -exten => s,99,NoOp(Finish iftime-iftime-iftime-iftime-homeline-93-94-95-96) -exten => s,100,NoOp(Finish iftime-iftime-iftime-homeline-93-94-95) -exten => s,101,NoOp(Finish iftime-iftime-homeline-93-94) -exten => s,102,NoOp(Finish iftime-homeline-93) -exten => s,103,Background(murphy-homeline-intro1) -exten => _sw-92-.,10,Set(z=${direct}-2) -exten => _sw-92-.,11,Goto(homeline-kids\,${z}\,1) -exten => sw-92-,10,Goto(sw-92-.|10) -exten => sw-92-2,10,Gosub(std-priv-exten\,s\,1(Zap/3r1&Zap/5r1\,2\,25\,mtw\,telemarket\,telemarket)) -exten => sw-92-2,11,Goto(s\,loopback) -exten => sw-92-1,10,Gosub(std-priv-exten\,s\,1(Zap/6r3&Sip/murf\,1\,25\,mpA(beep)tw\,telemarket\,telemarket)) -exten => sw-92-1,11,Goto(s\,loopback) -exten => 1,1,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm) -exten => 1,2,TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/2/greet.wav&) -exten => 1,3,Gosub(std-priv-exten\,s\,1(Zap/3r1&Zap/5r1\,2\,25\,mtw\,telemarket\,telemarket)) -exten => 1,4,Goto(s\,loopback) -exten => 2,1,Goto(homeline-kids\,s\,begin) -exten => 21,1,Dial(IAX2/seaniax\,20\,T) -exten => 3,1,Gosub(std-priv-exten\,s\,1(Zap/6r3&Sip/murf\,1\,25\,mpA(beep)tw\,telemarket\,telemarket)) -exten => 3,2,Goto(s\,loopback) -exten => 4,1,VoicemailMain() -exten => 4,2,Goto(s\,loopback) -exten => 5,1,Goto(home-introduction\,s\,begin) -exten => 6,1,Goto(telemarket\,s\,begin) -exten => 7,1,agi(tts-riddle.agi) -exten => 7,2,Background(gsm/what-time-it-is2) -exten => 7,3,SayUnixTime() -exten => 7,4,Goto(s\,loopback) -exten => 792,1,Goto(pageall\,s\,begin) -exten => 793,1,Read(zz\,\,0\,\,1\,0) -exten => 793,2,SayDigits(${zz}) -exten => t,1,Set(repeatcount=${repeatcount} + 1) -exten => t,2,GotoIf($[${repeatcount} < 3 ]?3:4) -exten => t,3,Goto(s\,loopback) -exten => t,4,NoOp(Finish if-homeline-106) -exten => t,5,Hangup() -exten => i,1,Background(invalid) -exten => i,2,Goto(s\,loopback) -exten => o,1,Congestion() -exten => fax,1,Dial(Zap/4) - - -[pageall] -exten => s,1(begin),AGI(callall) -exten => s,2,MeetMe(5555\,dtqp) -exten => s,3,MeetMeAdmin(5555\,K) -exten => s,4,Hangup() -exten => h,1(begin),MeetMeAdmin(5555\,K) -exten => h,2,Background(conf-muted) -exten => h,3,Hangup() - - -[add-to-conference] -exten => start,1,NoCDR() -exten => start,2,MeetMe(5555\,dmqp) -exten => h,1,Hangup() - - -[home-introduction] -exten => s,1(begin),Background(intro-options) -exten => 1,1,Playback(priv-callerintros/${CALLERID(num)}) -exten => 1,2,Goto(s\,begin) -exten => 2,1,Goto(home-introduction-record\,s\,begin) -exten => 3,1,Goto(homeline\,s\,loopback) -exten => 4,1,Playback(intro-intro) -exten => 4,2,Goto(s\,begin) -exten => t,1,Goto(s\,begin) -exten => i,1,Background(invalid) -exten => i,2,Goto(s\,begin) -exten => o,1,Goto(s\,begin) - - -[home-introduction-record] -exten => s,1(begin),Background(intro-record-choices) -exten => 1,1,Playback(intro-record) -exten => 1,2,Goto(2\,begin) -exten => 2,1(begin),Background(intro-start) -exten => 2,2,Background(beep) -exten => 2,3,Record(priv-callerintros/${CALLERID(num)}:gsm\,3) -exten => 2,4,Background(priv-callerintros/${CALLERID(num)}) -exten => 2,5,Goto(home-introduction\,s\,begin) -exten => t,1,Goto(s\,begin) -exten => i,1,Background(invalid) -exten => i,2,Goto(s\,begin) -exten => o,1,Goto(s\,begin) - - -[homeline-kids] -exten => s,1(begin),Background(murphy-homeline-kids) -exten => 1,1,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm) -exten => 1,2,TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/3/greet.wav&) -exten => 1,3,Gosub(std-priv-exten\,s\,1(IAX2/seaniax&Zap/5r2\,3\,35\,mtw\,telemarket\,telemarket)) -exten => 1,4,Goto(homeline\,s\,loopback) -exten => 2,1,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm) -exten => 2,2,TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/4/greet.wav&) -exten => 2,3,Voicemail(u4) -exten => 2,4,Goto(homeline\,s\,loopback) -exten => 3,1,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm) -exten => 3,2,TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/5/greet.wav&) -exten => 3,3,Gosub(std-priv-exten\,s\,1(Zap/3r2&Zap/5r2\,5\,35\,mtw\,telemarket\,telemarket)) -exten => 3,4,Goto(homeline\,s\,loopback) -exten => 4,1,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm) -exten => 4,2,TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/6/greet.wav&) -exten => 4,3,Gosub(std-priv-exten\,s\,1(Zap/3r2&Zap/5r2\,6\,35\,mtw\,telemarket\,telemarket)) -exten => 4,4,Goto(homeline\,s\,loopback) -exten => 5,1,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm) -exten => 5,2,TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/7/greet.wav&) -exten => 5,3,Gosub(std-priv-exten\,s\,1(Zap/3r2&Zap/5r2\,7\,35\,mtw\,telemarket\,telemarket)) -exten => 5,4,Goto(homeline\,s\,loopback) -exten => 6,1,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm) -exten => 6,2,TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/8/greet.wav&) -exten => 6,3,Gosub(std-priv-exten\,s\,1(Zap/3r2&Zap/5r2\,8\,35\,mtw\,telemarket\,telemarket)) -exten => 6,4,Goto(homeline\,s\,loopback) -exten => 7,1,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm) -exten => 7,2,TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/9/greet.wav&) -exten => 7,3,Gosub(std-priv-exten\,s\,1(Zap/3r2&Zap/5r2\,9\,35\,mtw\,telemarket\,telemarket)) -exten => 7,4,Goto(homeline\,s\,loopback) -exten => t,1,Goto(s\,begin) -exten => i,1,Background(invalid) -exten => i,2,Goto(s\,begin) -exten => o,1,Goto(s\,begin) - - -[voipworkline] -exten => s,1(begin),Answer() -exten => s,2,TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&) -exten => s,3,Goto(workline\,s\,loopback) -exten => 7075679201,1,Answer() -exten => 7075679201,2,TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&) -exten => 7075679201,3,Goto(workline\,s\,loopback) - - -[workline] -exten => s,1(begin),Answer() -exten => s,2,Wait(1) -exten => s,3,Set(repeatcount=0) -exten => s,4,Zapateller(nocallerid) -exten => s,5,Gosub(fillcidname\,s\,1) -exten => s,6,TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&) -exten => s,7(loopback),Background(greetings/greeting) -exten => s,8,Background(murphy-office-intro1) -exten => 1,1,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/call-for.gsm) -exten => 1,2,TrySystem(/usr/bin/play /var/spool/asterisk/voicemail/default/1/greet.wav&) -exten => 1,3,Gosub(std-priv-exten\,s\,1(Zap/6&Sip/murf\,1\,30\,mtw\,telemarket\,telemarket)) -exten => 1,4,Goto(s\,loopback) -exten => 4,1,VoicemailMain() -exten => 4,2,Goto(s\,loopback) -exten => 6,1,Goto(telemarket\,s\,begin) -exten => 793,1,Read(zz\,\,0\,\,1\,0) -exten => 793,2,SayDigits(${zz}) -exten => t,1,Set(repeatcount=$[${repeatcount} + 1]) -exten => t,2,GotoIf($[${repeatcount} < 3 ]?3:4) -exten => t,3,Goto(s\,loopback) -exten => t,4,NoOp(Finish if-workline-107) -exten => t,5,Hangup() -exten => i,1,Background(invalid) -exten => i,2,Goto(s\,loopback) -exten => o,1,Congestion() -exten => fax,1,Answer() -exten => fax,2,Dial(Zap/4) - - -[dialFWD] -ignorepat => 8 -ignorepat => 9 -exten => _83.,1,Set(CALLERID(name)=${FWDCIDNAME}) -exten => _83.,2,Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:2}\,60\,r) -exten => _83.,3,Congestion() -exten => _82NXX,1,Set(CALLERID(name)=${FWDCIDNAME}) -exten => _82NXX,2,Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:2}\,60\,r) -exten => _82NXX,3,Congestion() -exten => _92NXX,1,Set(CALLERID(name)=${FWDCIDNAME}) -exten => _92NXX,2,Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:2}\,60\,r) -exten => _92NXX,3,Congestion() - - -[dialiaxtel] -ignorepat => 8 -ignorepat => 9 -exten => _81700NXXXXXX,1,Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel) -exten => _81800NXXXXXX,1,Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel) -exten => _91700NXXXXXX,1,Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel) -exten => _91800NXXXXXX,1,Dial(IAX2/zorch:zilchnoodle@iaxtel.com/${EXTEN:1}@iaxtel) - - -[dialgoiax] -ignorepat => 9 -exten => _93.,1,Set(CALLERID(name)="Joe Worker") -exten => _93.,2,Dial(IAX2/878201007658:stickyfinger295@server1.goiax.com/${EXTEN:2}\,60\,r) -exten => _93.,3,Congestion() - - -[homefirst] -ignorepat => 9 -exten => _91NXXNXXXXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}\,${EXTEN:2}\,30\,TW\,Zap/1)) -exten => _9754XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9574XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9202XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9219XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9254XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9716XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9NXXXXXX,1,Gosub(ciddial\,s\,1(1707${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9011.,1,Gosub(ciddial\,s\,1(${EXTEN:1}\,${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9911,1,Dial(Zap/1/911\,30\,T) -exten => _9411,1,Dial(Zap/1/411\,30\,T) - - -[workfirst] -ignorepat => 9 -exten => _91NXXNXXXXXX,1,Gosub(ciddial2\,s\,1(${EXTEN:1}\,${EXTEN:2}\,30\,TW\,Zap/1)) -exten => _9754XXXX,1,Gosub(ciddial2\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9574XXXX,1,Gosub(ciddial2\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9202XXXX,1,Gosub(ciddial2\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9219XXXX,1,Gosub(ciddial2\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9254XXXX,1,Gosub(ciddial2\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9716XXXX,1,Gosub(ciddial2\,s\,1(${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9NXXXXXX,1,Gosub(ciddial2\,s\,1(1707${EXTEN:1}\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _9911,1,Dial(Zap/1/911\,30\,T) -exten => _9411,1,Dial(Zap/1/411\,30\,T) - - -[force_cell] -ignorepat => 8 -exten => _81NXXNXXXXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}#\,${EXTEN:2}\,30\,TW\,Zap/2)) -exten => _8754XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/2)) -exten => _8574XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/2)) -exten => _8202XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/2)) -exten => _8219XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/2)) -exten => _8254XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/2)) -exten => _8716XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/2)) -exten => _8NXXXXXX,1,Gosub(ciddial\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/2)) -exten => _8911,1,Dial(Zap/1/911|30|T) -exten => _8411,1,Dial(Zap/1/411|30|T) - - -[force_home] -ignorepat => 8 -exten => _81NXXNXXXXXX,1,Gosub(ciddial3\,s\,1(${EXTEN:1}#\,${EXTEN:2}\,30\,TW\,Zap/1)) -exten => _8754XXXX,1,Gosub(ciddial3\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _8574XXXX,1,Gosub(ciddial3\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _8202XXXX,1,Gosub(ciddial3\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _8219XXXX,1,Gosub(ciddial3\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _8254XXXX,1,Gosub(ciddial3\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _8716XXXX,1,Gosub(ciddial3\,s\,1(${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _8NXXXXXX,1,Gosub(ciddial3\,s\,1(1707${EXTEN:1}#\,707${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _8911,1,Dial(Zap/1/911|30|T) -exten => _8411,1,Dial(Zap/1/411|30|T) - - -[homeext] -ignorepat => 8 -ignorepat => 9 -include => parkedcalls -include => homefirst -include => force_cell -exten => s,1(loopback),Wait(0) -exten => 1,1,Gosub(std-priv-exten\,s\,1(Zap/3&Zap/5\,2\,35\,mtw\,telemarket\,telemarket)) -exten => 1,2,Goto(s\,loopback) -exten => 2,1,Gosub(std-priv-exten\,s\,1(Zap/6&Zap/5\,1\,35\,mpA(beep3)Tt\,telemarket\,telemarket)) -exten => 2,2,Goto(s\,loopback) -exten => 4,1,VoicemailMain() -exten => 5,1,Record(recording:gsm) -exten => 5,2,Background(recording) -exten => 6,1,Background(recording) -exten => 760,1,DateTime() -exten => 760,2,Goto(s\,loopback) -exten => 761,1,Record(announcement:gsm) -exten => 761,2,TrySystem(/usr/bin/play /var/lib/asterisk/sounds/announcement.gsm&) -exten => 761,3,Goto(s\,loopback) -exten => 762,1,agi(tts-riddle.agi) -exten => 762,2,Background(gsm/what-time-it-is2) -exten => 762,3,SayUnixTime() -exten => 762,4,Goto(s\,loopback) -exten => 763,1,Set(CALLERID(num)=) -exten => 763,2,Dial(Zap/6r3\,35\,mptA(beep3)) -exten => 763,3,Hangup() -exten => 764,1,Set(CALLERID(num)=) -exten => 764,2,Dial(Zap/6r3\,35\,mptnA(beep3)) -exten => 764,3,Hangup() -exten => 765,1,Set(CALLERID(num)=) -exten => 765,2,Dial(Zap/6r3\,35\,mptNA(beep3)) -exten => 765,3,Hangup() -exten => 766,1,Dial(Zap/6r3\,35\,mptNA(beep3)) -exten => 766,2,Hangup() -exten => 767,1,Dial(Zap/6r3\,35\,mptnA(beep3)) -exten => 767,2,Hangup() -exten => 769,1,Playtones(dial) -exten => 769,2,Wait(2) -exten => 769,3,Playtones(busy) -exten => 769,4,Wait(2) -exten => 769,5,Playtones(ring) -exten => 769,6,Wait(2) -exten => 769,7,Playtones(congestion) -exten => 769,8,Wait(2) -exten => 769,9,Playtones(callwaiting) -exten => 769,10,Wait(2) -exten => 769,11,Playtones(dialrecall) -exten => 769,12,Wait(2) -exten => 769,13,Playtones(record) -exten => 769,14,Wait(2) -exten => 769,15,Playtones(info) -exten => 769,16,Wait(5) -exten => 769,17,Hangup() -exten => 790,1,MeetMe(790\,p) -exten => 792,1,Goto(pageall\,s\,begin) -exten => 795,1,AGI(wakeup.agi) -exten => 795,2,Congestion() -exten => 544716,1,TrySystem(/usr/local/bin/who-is-it ${CALLERID(num)} "${CALLERID(name)}"&) -exten => 544716,2,Goto(s\,loopback) -exten => i,1,Background(invalid) -exten => i,2,Goto(s\,loopback) -exten => o,1,Goto(s\,loopback) -exten => t,1,Congestion() - - -[fromvmhome] -exten => 1,1,Dial(Zap/6&Sip/murf|20|Tt) -exten => 2,1,Dial(Zap/3&Zap/5|20|Tt) -exten => _707202XXXX,1,Gosub(ciddial\,s\,1(1${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707219XXXX,1,Gosub(ciddial\,s\,1(1${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707254XXXX,1,Gosub(ciddial\,s\,1(1${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707716XXXX,1,Gosub(ciddial\,s\,1(1${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707754XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707574XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _NXXNXXXXXX,1,Gosub(ciddial\,s\,1(1${EXTEN}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _1NXXNXXXXXX,1,Gosub(ciddial\,s\,1(${EXTEN}\,${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _754XXXX,1,Gosub(ciddial\,s\,1(${EXTEN}\,707${EXTEN}\,30\,TW\,Zap/1)) -exten => _574XXXX,1,Gosub(ciddial\,s\,1(${EXTEN}\,707${EXTEN}\,30\,TW\,Zap/1)) -exten => _NXXXXXX,1,Gosub(ciddial\,s\,1(1707${EXTEN}\,707${EXTEN}\,30\,TW\,Zap/1)) -exten => _911,1,Gosub(ciddial\,s\,1(911\,911\,30\,TW\,Zap/1)) -exten => _411,1,Gosub(ciddial\,s\,1(411\,411\,30\,TW\,Zap/1)) - - -[fromvmwork] -exten => 1,1,Dial(Zap/6&Sip/murf|20|Tt) -exten => 2,1,Dial(Zap/3&Zap/5|20|Tt) -exten => _707202XXXX,1,Gosub(ciddial\,s\,1(1${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707219XXXX,1,Gosub(ciddial\,s\,1(1${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707254XXXX,1,Gosub(ciddial\,s\,1(1${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707716XXXX,1,Gosub(ciddial\,s\,1(1${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707754XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707574XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _NXXNXXXXXX,1,Gosub(ciddial\,s\,1(1${EXTEN}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _1NXXNXXXXXX,1,Gosub(ciddial\,s\,1(${EXTEN}\,${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _754XXXX,1,Gosub(ciddial\,s\,1(${EXTEN}\,707${EXTEN}\,30\,TW\,Zap/1)) -exten => _574XXXX,1,Gosub(ciddial\,s\,1(${EXTEN}\,707${EXTEN}\,30\,TW\,Zap/1)) -exten => _NXXXXXX,1,Gosub(ciddial\,s\,1(1707${EXTEN}\,707${EXTEN}\,30\,TW\,Zap/1)) -exten => 911,1,Gosub(ciddial\,s\,1(911\,911\,30\,TW\,Zap/1)) -exten => 411,1,Gosub(ciddial\,s\,1(411\,411\,30\,TW\,Zap/1)) - - -[fromSeanUniden] -include => parkedcalls -exten => 21,1,Dial(IAX2/seaniax\,20\,T) -exten => _707202XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707219XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707254XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707716XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707754XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _707574XXXX,1,Gosub(ciddial\,s\,1(${EXTEN:3}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _NXXNXXXXXX,1,Gosub(ciddial\,s\,1(1${EXTEN}\,${EXTEN}\,30\,TW\,Zap/1)) -exten => _1NXXNXXXXXX,1,Gosub(ciddial\,s\,1(${EXTEN}\,${EXTEN:1}\,30\,TW\,Zap/1)) -exten => _754XXXX,1,Gosub(ciddial\,s\,1(${EXTEN}\,707${EXTEN}\,30\,TW\,Zap/1)) -exten => _574XXXX,1,Gosub(ciddial\,s\,1(${EXTEN}\,707${EXTEN}\,30\,TW\,Zap/1)) -exten => _NXXXXXX,1,Gosub(ciddial\,s\,1(1707${EXTEN}\,707${EXTEN}\,30\,TW\,Zap/1)) -exten => 911,1,Gosub(ciddial\,s\,1(911\,911\,30\,TW\,Zap/1)) -exten => 411,1,Gosub(ciddial\,s\,1(411\,411\,30\,TW\,Zap/1)) - - -[workext] -ignorepat => 8 -ignorepat => 9 -include => parkedcalls -include => workfirst -include => force_home -include => dialFWD -include => dialiaxtel -include => dialgoiax -exten => s,1(loopback),Wait(0) -exten => 1,1,Dial(Zap/3&Zap/5\,20\,tT) -exten => 2,1,Dial(Zap/5&Zap/6\,20\,tT) -exten => 21,1,Dial(IAX2/seaniax\,20\,T) -exten => 22,1,Set(CALLERID(num)=1234567890) -exten => 22,2,Set(CALLERID(name)=TestCaller) -exten => 22,3,Dial(Zap/5\,20\,mP()A(beep)tw) -exten => 22,4,NoOp(here is dialstatus: ${DIALSTATUS}...) -exten => 22,5,Goto(s\,loopback) -exten => 4,1,VoicemailMain() -exten => 4,2,Goto(s\,loopback) -exten => 5,1,Record(recording:gsm) -exten => 5,2,Background(recording) -exten => 6,1,ZapBarge() -exten => 760,1,DateTime() -exten => 760,2,Goto(s\,loopback) -exten => 761,1,ZapBarge() -exten => 761,2,Goto(s\,loopback) -exten => 765,1,Playback(demo-echotest) -exten => 765,2,Echo() -exten => 765,3,Playback(demo-echodone) -exten => 765,4,Goto(s\,loopback) -exten => 766,1,Festival(The other thing to watch is neuro-electronics: the ability to interface technology with our neural system: My wife: Sigrid: has had a cochlear implant since 1996. This once profoundly deaf person now uses the phone: recognizes accents: and listens to movies and recorded books.) -exten => 766,2,Goto(s\,loopback) -exten => 767,1,agi(tts-riddle.agi) -exten => 767,2,Background(gsm/what-time-it-is2) -exten => 767,3,SayUnixTime() -exten => 767,4,Goto(s\,loopback) -exten => 768,1,agi(tts-computer.agi) -exten => 771,1,eagi(eagi-test) -exten => 771,2,agi(my-agi-test) -exten => 772,1,agi(wakeup.agi) -exten => 775,1,GotoIf($[${EXTEN}=${EXTEN} ]?2:4) -exten => 775,2,BackGround(digits/1) -exten => 775,3,Goto(5) -exten => 775,4,BackGround(digits/0) -exten => 775,5,NoOp(Finish if-workext-108) -exten => 775,6,GotoIf($[${EXTEN}=${LANGUAGE} ]?7:9) -exten => 775,7,BackGround(digits/1) -exten => 775,8,Goto(10) -exten => 775,9,BackGround(digits/0) -exten => 775,10,NoOp(Finish if-workext-109) -exten => 775,11,BackGround(digits/2) -exten => 776,1,Set(TEST=00359889811777) -exten => 776,2,GotoIf($[${TEST}= 00359889811777 ]?3:5) -exten => 776,3,BackGround(digits/1) -exten => 776,4,Goto(6) -exten => 776,5,BackGround(digits/0) -exten => 776,6,NoOp(Finish if-workext-110) -exten => 776,7,GotoIf($[${TEST}= 00359889811888 ]?8:10) -exten => 776,8,BackGround(digits/1) -exten => 776,9,Goto(11) -exten => 776,10,BackGround(digits/0) -exten => 776,11,NoOp(Finish if-workext-111) -exten => 776,12,Hangup() -exten => 790,1,MeetMe(790\,p) -exten => 792,1,Goto(pageall\,s\,begin) -exten => 793,1,NoOp(Hello\, this is included from include1.ael2) -exten => 793,2,NoOp(This was included from include2.ael2) -exten => 793,3,NoOp(This is include3.ael2!) -exten => 793,4,NoOp(Include5.ael2 doesn't include anything\, either!) -exten => 793,5,NoOp(This is include4.ael2! Isn't it cool!?!?!?!) -exten => 793,6,NoOp(4 doesn't include anything) -exten => 795,1,AGI(wakeup.agi) -exten => 795,2,Congestion() -exten => 797,1,Set(CONFCIDNA=${CALLERID(name)}) -exten => 797,2,Set(CONFCIDNU=${CALLERID(num)}) -exten => 797,3,AGI(callall) -exten => 797,4,AGI(submit-announce.agi) -exten => 797,5,Hangup() - - -[wakeup] -exten => 3,1,Dial(Zap/3|30) -exten => 4,1,Dial(Zap/4|30) -exten => 5,1,Dial(Zap/5|30) -exten => 6,1,Dial(Zap/6|30) -exten => 99,1,Dial(IAX2/murfiaxphone|30) -exten => 97,1,Dial(IAX2/ryaniax|30) -exten => 94,1,Dial(IAX2/seaniax|30) - - -[announce-all] -exten => s,1(begin),MeetMe(5555\,dtqp) -exten => s,2,MeetMeAdmin(5555\,K) -exten => s,3,Hangup() -exten => h,1,MeetMeAdmin(5555\,K) -exten => h,2,Hangup() - - -[telemarket] -exten => s,1(begin),Playback(telemarketer-intro) -exten => s,2,Playback(telemarketer-choices) -exten => 1,1,Goto(telemarket-charity\,s\,begin) -exten => 2,1,Goto(telemarket-political\,s\,begin) -exten => 3,1,Goto(telemarket-pollster\,s\,begin) -exten => 4,1,Goto(telemarket-research\,s\,begin) -exten => 5,1,Goto(telemarket-magazine\,s\,begin) -exten => 6,1,Goto(telemarket-commercial\,s\,begin) -exten => 7,1,Goto(telemarket-other\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemarket-charity] -exten => s,1(begin),Playback(telemark-charity-intro) -exten => s,2,Playback(telemark-charity-choices) -exten => 1,1,Goto(telemarket-char-disease\,s\,begin) -exten => 2,1,Goto(telemarket-char-handicap\,s\,begin) -exten => 3,1,Goto(telemarket-char-police\,s\,begin) -exten => 4,1,Goto(telemarket-char-school\,s\,begin) -exten => 5,1,Goto(telemarket-char-college\,s\,begin) -exten => 6,1,Goto(telemarket-char-animal\,s\,begin) -exten => 7,1,Goto(telemarket-char-candidate\,s\,begin) -exten => 8,1,Goto(telemarket-char-abuse\,s\,begin) -exten => 9,1,Goto(telemarket-char-other\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemarket-char-disease] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-char-handicap] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-char-police] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-char-school] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-char-college] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-char-animal] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-char-candidate] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-char-abuse] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-char-other] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-sorry] -exten => s,1(begin),Playback(telemarket-sorry) -exten => s,2,Hangup() - - -[telemarket-exception] -exten => s,1(begin),Playback(telemarket-success) -exten => s,2,Hangup() - - -[telemarket-political] -exten => s,1(begin),Playback(telemark-polit-intro) -exten => s,2,Playback(telemark-polit-choices) -exten => 1,1,Goto(telemarket-poli-Am1st\,s\,begin) -exten => 2,1,Goto(telemarket-poli-American\,s\,begin) -exten => 3,1,Goto(telemarket-poli-AmHer\,s\,begin) -exten => 4,1,Goto(telemarket-poli-AmInd\,s\,begin) -exten => 5,1,Goto(telemarket-poli-AmNaz\,s\,begin) -exten => 6,1,Goto(telemarket-poli-Pot\,s\,begin) -exten => 7,1,Goto(telemarket-poli-AmRef\,s\,begin) -exten => 8,1,Goto(telemarket-poli-CFP\,s\,begin) -exten => 9,1,Goto(telemarket-political2\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemarket-political2] -exten => s,1(begin),Playback(telemark-politx-intro) -exten => s,2,Playback(telemark-polit2-choices) -exten => 1,1,Goto(telemarket-poli-Communist\,s\,begin) -exten => 2,1,Goto(telemarket-poli-Constit\,s\,begin) -exten => 3,1,Goto(telemarket-poli-FamVal\,s\,begin) -exten => 4,1,Goto(telemarket-poli-FreedSoc\,s\,begin) -exten => 5,1,Goto(telemarket-poli-Grassroot\,s\,begin) -exten => 6,1,Goto(telemarket-poli-Green\,s\,begin) -exten => 7,1,Goto(telemarket-poli-Greens\,s\,begin) -exten => 8,1,Goto(telemarket-poli-Independence\,s\,begin) -exten => 9,1,Goto(telemarket-political3\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemarket-political3] -exten => s,1(begin),Playback(telemark-politx-intro) -exten => s,2,Playback(telemark-polit3-choices) -exten => 1,1,Goto(telemarket-poli-IndAm\,s\,begin) -exten => 2,1,Goto(telemarket-poli-Labor\,s\,begin) -exten => 3,1,Goto(telemarket-poli-Liber\,s\,begin) -exten => 4,1,Goto(telemarket-poli-Light\,s\,begin) -exten => 5,1,Goto(telemarket-poli-NatLaw\,s\,begin) -exten => 6,1,Goto(telemarket-poli-New\,s\,begin) -exten => 7,1,Goto(telemarket-poli-NewUn\,s\,begin) -exten => 8,1,Goto(telemarket-poli-PeaceFree\,s\,begin) -exten => 9,1,Goto(telemarket-political4\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemarket-political4] -exten => s,1(begin),Playback(telemark-politx-intro) -exten => s,2,Playback(telemark-polit4-choices) -exten => 1,1,Goto(telemarket-poli-Prohib\,s\,begin) -exten => 2,1,Goto(telemarket-poli-Ref\,s\,begin) -exten => 3,1,Goto(telemarket-poli-Revol\,s\,begin) -exten => 4,1,Goto(telemarket-poli-SocPart\,s\,begin) -exten => 5,1,Goto(telemarket-poli-SocAct\,s\,begin) -exten => 6,1,Goto(telemarket-poli-SocEq\,s\,begin) -exten => 7,1,Goto(telemarket-poli-SocLab\,s\,begin) -exten => 8,1,Goto(telemarket-poli-SocWork\,s\,begin) -exten => 9,1,Goto(telemarket-political5\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemarket-political5] -exten => s,1(begin),Playback(telemark-politx-intro) -exten => s,2,Playback(telemark-polit5-choices) -exten => 1,1,Goto(telemarket-poli-South\,s\,begin) -exten => 2,1,Goto(telemarket-poli-SoInd\,s\,begin) -exten => 3,1,Goto(telemarket-poli-USPac\,s\,begin) -exten => 4,1,Goto(telemarket-poli-WTP\,s\,begin) -exten => 5,1,Goto(telemarket-poli-WWP\,s\,begin) -exten => 6,1,Goto(telemarket-poli-Democrat\,s\,begin) -exten => 7,1,Goto(telemarket-poli-Repub\,s\,begin) -exten => 8,1,Goto(telemarket-poli-other\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemarket-poli-other] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Repub] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Democrat] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-WWP] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-WTP] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-USPac] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-SoInd] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-South] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-SocWork] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-SocLab] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-SocEq] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-SocAct] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-SocPart] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Revol] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Ref] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Prohib] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-PeaceFree] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-NewUn] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-New] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-NatLaw] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Light] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Liber] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Labor] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-IndAm] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Independence] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Greens] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Green] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Grassroot] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-FreedSoc] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-FamVal] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Constit] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Communist] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-CFP] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-AmRef] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Pot] -exten => s,1(begin),Goto(telemarket-political\,s\,begin) - - -[telemarket-poli-AmNaz] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-AmInd] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-AmHer] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-American] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-poli-Am1st] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-pollster] -exten => s,1(begin),Playback(telemark-poll-intro) -exten => s,2,Goto(telemarket-sorry\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemarket-research] -exten => s,1(begin),Playback(telemark-research-intro) -exten => s,2,Goto(telemarket-sorry\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemarket-magazine] -exten => s,1(begin),Playback(telemark-mag-choices) -exten => 1,1,Goto(telemark-mag-new\,s\,begin) -exten => 2,1,Goto(telemark-mag-renew\,s\,begin) -exten => 3,1,Goto(telemark-mag-survey\,s\,begin) -exten => 4,1,Goto(telemark-mag-verify\,s\,begin) -exten => 5,1,Goto(telemark-mag-other\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemark-mag-new] -exten => s,1(begin),Playback(telemark-mag-new) -exten => s,2,Hangup() -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemark-mag-renew] -exten => s,1(begin),Playback(telemark-mag-renew) -exten => s,2,Hangup() -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemark-mag-survey] -exten => s,1(begin),Playback(telemark-mag-survey) -exten => s,2,Hangup() -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemark-mag-verify] -exten => s,1(begin),Playback(telemark-mag-verify) -exten => s,2,Hangup() -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemark-mag-other] -exten => s,1(begin),Goto(telemarket-sorry\,s\,begin) - - -[telemarket-commercial] -exten => s,1(begin),Playback(telemark-comm-intro) -exten => s,2,Voicemail(u82) -exten => s,3,Goto(telemarket-sorry\,s\,begin) -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) - - -[telemarket-other] -exten => s,1(begin),Playback(telemark-other-intro) -exten => s,2,Hangup() -exten => t,1,Goto(telemarket\,s\,begin) -exten => i,1,Goto(telemarket\,s\,begin) -exten => o,1,Goto(telemarket\,s\,begin) diff --git a/trunk/pbx/ael/ael-test/ref.ael-vtest17 b/trunk/pbx/ael/ael-test/ref.ael-vtest17 deleted file mode 100644 index bb4204caa..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-vtest17 +++ /dev/null @@ -1,69 +0,0 @@ - - -[dialextens] -exten => _10X,1,Dial(Zap/${EXTEN:2}\,30\,tw) -exten => _1ZX,1,Dial(Zap/${EXTEN:1}\,30\,tw) - - -[dialthrus] -exten => _3XX,1,Dial(Zap/${EXTEN:1}\,30\,tw) - - -[t1incoming] -include => dialextens -include => parkedcalls -exten => s,1,Answer() -exten => s,2,Background(welcome-to-test-machine) - - -[incoming] -include => dialextens -include => parkedcalls -exten => s,1,Answer() -exten => s,2,Background(welcome-to-test-machine) - - -[extension] -include => dialextens -include => dialthrus -exten => 5,1,Record(recording:gsm) -exten => 5,2,Background(recording) -exten => 81,1,Set(iterations=$[1000000]) -exten => 81,2,Set(time1=${EPOCH}) -exten => 81,3,Set(i=$[1]) -exten => 81,4,GotoIf($[${i}<${iterations}]?5:8) -exten => 81,5,NoOp(Hello) -exten => 81,6,Set(i=$[${i}+1]) -exten => 81,7,Goto(4) -exten => 81,8,NoOp(Finish for-extension-1) -exten => 81,9,Set(time2=${EPOCH}) -exten => 81,10,Verbose(The time diff is $[${time2} - ${time1} ] seconds) -exten => 81,11,Verbose(Which means that the priorities/sec = $[4* ${iterations} / (${time2} - ${time1}) ]) -exten => 81,12,SayNumber($[4 * ${iterations} / (${time2} - ${time1}) ]) -exten => 82,1,Gosub(ndeep\,s\,1(100000)) -exten => 82,2,Verbose(Finished 100000 levels deep call!) -exten => 83,1,Goto(sw-2-${EXTEN}\,10) -exten => 83,2,NoOp(Finish switch-extension-2) -exten => _sw-2-.,10,Goto(83\,2) -exten => sw-2-,10,Goto(sw-2-.|10) -exten => _sw-2-[4-7]X,10,Verbose(and this too!) -exten => _sw-2-[4-7]X,11,Goto(sw-2-.\,10) -exten => _sw-2-9X,10,Verbose(handle both 8x and 9x calls) -exten => _sw-2-9X,11,Goto(sw-2-49\,10) -exten => _sw-2-8X,10,Verbose(do something to prepare it) -exten => _sw-2-8X,11,Goto(sw-2-99\,10) - - -[ndeep] -exten => s,1,Set(LOCAL(level)=${ARG1}) -exten => s,2,GotoIf($[${level} == 0]?3:5) -exten => s,3,Verbose(2|Got to Level 0) -exten => s,4,Return() -exten => s,5,NoOp(Finish if-ndeep-3) -exten => s,6,Gosub(ndeep\,s\,1($[${level}-1])) -exten => s,7,Return() - - -[t1extension] -include => dialextens -include => dialthrus diff --git a/trunk/pbx/ael/ael-test/ref.ael-vtest21 b/trunk/pbx/ael/ael-test/ref.ael-vtest21 deleted file mode 100644 index 711540aa3..000000000 --- a/trunk/pbx/ael/ael-test/ref.ael-vtest21 +++ /dev/null @@ -1,9 +0,0 @@ -[globals] -AXLHAFT=wow-to-the-tenth-power -JibberWorthy=zinger3 -OFFICE_CODE=503 - - -[from-enum] -exten => _${OFFICE_CODE}XXXX,1,Answer() -exten => _${OFFICE_CODE}XXXX,2,Goto(${EXTEN:3}\,1) diff --git a/trunk/pbx/ael/ael-test/runtests b/trunk/pbx/ael/ael-test/runtests deleted file mode 100755 index 9209f0a54..000000000 --- a/trunk/pbx/ael/ael-test/runtests +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -ORIG=`mktemp /tmp/mytest.XXXXXX` -NEW=`mktemp /tmp/mytest.XXXXXX` - -do_filter() { - sed 's/line:[0-9]*//; /^Executed.*/d; s/column=[0-9]*/ /; s/Cols: [0-9]*-[0-9]*/___/' -} - -for i in ael-test*; do - echo -n Test: $i.................. - (cd $i; ../../../../utils/aelparse -n -d | grep -v -i 'seconds' > ../res.$i) - do_filter < res.$i > $NEW - do_filter < ref.$i > $ORIG - if (diff -q $NEW $ORIG > /dev/null 2>&1 ) then - echo PASSED - rm res.$i - else - echo %%%%%%FAILED%%%%%% - # diff -u ref.$i res.$i - diff -u $ORIG $NEW - fi - -done - -for i in ael-ntest*; do - echo -n Test: $i................. - (cd $i; ../../../../utils/aelparse -d | grep -v -i 'seconds' > ../res.$i) - do_filter < res.$i > $NEW - do_filter < ref.$i > $ORIG - if (diff -q $NEW $ORIG > /dev/null 2>&1 ) then - echo PASSED - rm res.$i - else - echo %%%%%%FAILED%%%%%% - # diff -u ref.$i res.$i - diff -u $ORIG $NEW - fi - -done - -for i in ael-vtest*; do - echo -n Test: $i................. - (cd $i; ../../../../utils/aelparse -d -w -n | grep -v -i 'seconds' > ../res2.$i) - - if (diff -q ref.$i $i/extensions.conf.aeldump > /dev/null 2>&1 ) then - echo PASSED - rm res2.$i - rm $i/extensions.conf.aeldump - else - echo %%%%%%FAILED%%%%%% - # diff -u ref.$i res.$i - diff -u ref.$i $i/extensions.conf.aeldump - fi - -done -rm $NEW $ORIG diff --git a/trunk/pbx/ael/ael-test/setref b/trunk/pbx/ael/ael-test/setref deleted file mode 100755 index b483f05ae..000000000 --- a/trunk/pbx/ael/ael-test/setref +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -for i in res.*; do - refname=`echo $i | sed 's/^res/ref/'` - echo $refname - mv $i $refname -done |