This bug adds enhancement as per bug 7606, the -w
authorSteve Murphy <murf@digium.com>
Wed, 9 Aug 2006 01:16:37 +0000 (01:16 +0000)
committerSteve Murphy <murf@digium.com>
Wed, 9 Aug 2006 01:16:37 +0000 (01:16 +0000)
option to aelparse.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39430 65c4cc65-6c06-0410-ace0-fbb531ad65f3

21 files changed:
pbx/ael/ael-test/ael-vtest13/extensions.ael [new file with mode: 0755]
pbx/ael/ael-test/ael-vtest13/include1.ael2 [new file with mode: 0644]
pbx/ael/ael-test/ael-vtest13/include2.ael2 [new file with mode: 0644]
pbx/ael/ael-test/ael-vtest13/include3.ael2 [new file with mode: 0644]
pbx/ael/ael-test/ael-vtest13/include4.ael2 [new file with mode: 0644]
pbx/ael/ael-test/ael-vtest13/include5.ael2 [new file with mode: 0644]
pbx/ael/ael-test/ael-vtest13/telemarket_torture.ael2 [new file with mode: 0755]
pbx/ael/ael-test/ref.ael-ntest10
pbx/ael/ael-test/ref.ael-ntest12
pbx/ael/ael-test/ref.ael-ntest9
pbx/ael/ael-test/ref.ael-test1
pbx/ael/ael-test/ref.ael-test11
pbx/ael/ael-test/ref.ael-test2
pbx/ael/ael-test/ref.ael-test3
pbx/ael/ael-test/ref.ael-test4
pbx/ael/ael-test/ref.ael-test5
pbx/ael/ael-test/ref.ael-test6
pbx/ael/ael-test/ref.ael-test7
pbx/ael/ael-test/ref.ael-test8
pbx/ael/ael-test/ref.ael-vtest13 [new file with mode: 0644]
pbx/ael/ael-test/runtests

diff --git a/pbx/ael/ael-test/ael-vtest13/extensions.ael b/pbx/ael/ael-test/ael-vtest13/extensions.ael
new file mode 100755 (executable)
index 0000000..dd77c05
--- /dev/null
@@ -0,0 +1,3183 @@
+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(number)}" = "" )   // 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(number)})=${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/pbx/ael/ael-test/ael-vtest13/include1.ael2 b/pbx/ael/ael-test/ael-vtest13/include1.ael2
new file mode 100644 (file)
index 0000000..80c562c
--- /dev/null
@@ -0,0 +1,3 @@
+       NoOp(Hello, this is included from include1.ael2);
+       #include "include2.ael2"
+
diff --git a/pbx/ael/ael-test/ael-vtest13/include2.ael2 b/pbx/ael/ael-test/ael-vtest13/include2.ael2
new file mode 100644 (file)
index 0000000..8d892fb
--- /dev/null
@@ -0,0 +1,4 @@
+       NoOp(This was included from include2.ael2);
+       #include "include3.ael2"
+       #include "include4.ael2"
+
diff --git a/pbx/ael/ael-test/ael-vtest13/include3.ael2 b/pbx/ael/ael-test/ael-vtest13/include3.ael2
new file mode 100644 (file)
index 0000000..3c6c1e3
--- /dev/null
@@ -0,0 +1,2 @@
+       NoOp(This is include3.ael2!);
+       #include "include5.ael2"
diff --git a/pbx/ael/ael-test/ael-vtest13/include4.ael2 b/pbx/ael/ael-test/ael-vtest13/include4.ael2
new file mode 100644 (file)
index 0000000..7d3703a
--- /dev/null
@@ -0,0 +1,2 @@
+       NoOp(This is include4.ael2! Isn't it cool!?!?!?!);
+       NoOp(4 doesn't include anything);
diff --git a/pbx/ael/ael-test/ael-vtest13/include5.ael2 b/pbx/ael/ael-test/ael-vtest13/include5.ael2
new file mode 100644 (file)
index 0000000..0e18983
--- /dev/null
@@ -0,0 +1 @@
+       NoOp(Include5.ael2 doesn't include anything, either!);
diff --git a/pbx/ael/ael-test/ael-vtest13/telemarket_torture.ael2 b/pbx/ael/ael-test/ael-vtest13/telemarket_torture.ael2
new file mode 100755 (executable)
index 0000000..ebd8e9f
--- /dev/null
@@ -0,0 +1,812 @@
+//
+// 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;
+}
index e74e07f..0f5792e 100644 (file)
@@ -5,11 +5,13 @@ Executed ast_register_file_version();
 
 (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)
 Executed ast_cli_register_multiple();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3732 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3739 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3742 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3745 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3770 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
 Executed ast_context_create(conts, name=macro-endsess, registrar=pbx_ael);
 Executed ast_context_create(conts, name=macro-nullchk, registrar=pbx_ael);
 Executed ast_context_create(conts, name=macro-endcall, registrar=pbx_ael);
@@ -17,116 +19,116 @@ Executed ast_context_create(conts, name=macro-endcall2, registrar=pbx_ael);
 Executed ast_context_create(conts, name=macro-endcall3, registrar=pbx_ael);
 Executed ast_context_create(conts, name=macro-endcall4, registrar=pbx_ael);
 Executed ast_context_create(conts, name=macro-endcall5, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=NoOp, data=hithere, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=NoOp, data=${type} is this, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-1-${type}|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=sw-1-out, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-1-out, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:6, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-1-out, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-1-out, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-1-out|ptr1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-1-out, priority=5, label=(null), callerid=(null), appl=Goto, data=8, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-1-out, priority=6, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-1-out, priority=7, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-1-out, priority=8, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall-out-1-2, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-1-out, priority=9, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-1-out, priority=10, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-3-${type}|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=sw-3-out2, priority=1, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-3-out2, priority=2, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-3-out2, priority=3, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-3-out2, priority=4, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-3-out, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-3-out, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:5, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-3-out, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-3-out, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-3-out2|ptr1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-3-out, priority=5, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall2-out-3-4, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-3-out, priority=6, label=(null), callerid=(null), appl=Goto, data=sw-3-out2|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-5-${type}|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=s, priority=4, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?5:6, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, 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(con, rep=0, exten=s, priority=7, label=(null), callerid=(null), appl=Goto, data=sw-8-${type}|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=sw-8-out, priority=1, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?2:4, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-8-out, priority=2, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-8-out, priority=3, label=(null), callerid=(null), appl=Goto, data=s|8, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-8-out, priority=4, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall3-out-8-9, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-8-out, priority=5, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-8-out, priority=6, label=(null), callerid=(null), appl=Goto, data=s|8, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-5-out, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-5-out, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:5, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-5-out, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-5-out, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-8-out|ptr1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-5-out, priority=5, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall3-out-5-6, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-5-out, priority=6, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-5-out, priority=7, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-10-${type}|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=s, priority=4, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?5:6, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, 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(con, rep=0, exten=s, priority=7, label=(null), callerid=(null), appl=Goto, data=sw-13-${type}|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=sw-13-out, priority=1, label=(null), callerid=(null), appl=Goto, data=sw-14-${type}|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-13-out, priority=2, label=(null), callerid=(null), appl=NoOp, data=Finish switch-sw-endcall4-out-13-14, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-13-out, priority=3, label=(null), callerid=(null), appl=Goto, data=s|8, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-14-in, priority=1, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?2:4, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-14-in, priority=2, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-14-in, priority=3, label=(null), callerid=(null), appl=Goto, data=sw-13-out|2, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-14-in, priority=4, 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(con, rep=0, exten=sw-14-in, priority=5, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-14-in, priority=6, label=(null), callerid=(null), appl=Goto, data=sw-13-out|2, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-10-out, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-10-out, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:5, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-10-out, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-10-out, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-14-in|ptr1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-10-out, priority=5, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall4-out-10-11, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-10-out, priority=6, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-10-out, priority=7, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-16-${type}|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=s, priority=4, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?5:6, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, 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(con, rep=0, exten=s, priority=7, label=(null), callerid=(null), appl=Goto, data=sw-20-${type}|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=sw-20-out, priority=1, label=(null), callerid=(null), appl=Goto, data=sw-21-${type}|1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-20-out, priority=2, label=(null), callerid=(null), appl=NoOp, data=Finish switch-sw-endcall5-out-20-21, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-20-out, priority=3, label=(null), callerid=(null), appl=Goto, data=s|8, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-21-in, priority=1, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?2:4, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-21-in, priority=2, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-21-in, priority=3, label=(null), callerid=(null), appl=Goto, data=sw-20-out|2, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-21-in, priority=4, 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(con, rep=0, exten=sw-21-in, priority=5, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-21-in, priority=6, label=(null), callerid=(null), appl=Goto, data=sw-20-out|2, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-in, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-in, priority=2, label=ptr2, callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:5, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-in, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-in, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-21-in|ptr1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-in, priority=5, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall5-in-16-18, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-in, priority=6, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-in, priority=7, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-out, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-out, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:5, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-out, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-out, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-21-in|ptr1, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-out, priority=5, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall5-out-16-17, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=sw-16-out, priority=6, label=(null), callerid=(null), appl=Goto, data=sw-16-in|1, FREE, registrar=pbx_ael);
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3747 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
+Executed ast_add_extension2(context=macro-endsess, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=NoOp, data=hithere, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-nullchk, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-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=macro-endcall, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-1-${type}|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-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=macro-endcall, rep=0, exten=sw-1-out, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall, rep=0, exten=sw-1-out, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:6, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall, rep=0, exten=sw-1-out, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall, rep=0, exten=sw-1-out, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-1-out|ptr1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall, rep=0, exten=sw-1-out, priority=5, label=(null), callerid=(null), appl=Goto, data=8, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall, rep=0, exten=sw-1-out, priority=6, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall, rep=0, exten=sw-1-out, priority=7, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall, rep=0, exten=sw-1-out, priority=8, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall-out-1-2, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall, rep=0, exten=sw-1-out, priority=9, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall, rep=0, exten=sw-1-out, priority=10, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-3-${type}|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-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=macro-endcall2, rep=0, exten=sw-3-out2, priority=1, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=sw-3-out2, priority=2, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=sw-3-out2, priority=3, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=sw-3-out2, priority=4, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=sw-3-out, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=sw-3-out, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:5, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=sw-3-out, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=sw-3-out, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-3-out2|ptr1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=sw-3-out, priority=5, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall2-out-3-4, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall2, rep=0, exten=sw-3-out, priority=6, label=(null), callerid=(null), appl=Goto, data=sw-3-out2|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-5-${type}|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-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=macro-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=macro-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=macro-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=macro-endcall3, rep=0, exten=s, priority=7, label=(null), callerid=(null), appl=Goto, data=sw-8-${type}|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-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=macro-endcall3, rep=0, exten=sw-8-out, priority=1, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?2:4, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-8-out, priority=2, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-8-out, priority=3, label=(null), callerid=(null), appl=Goto, data=s|8, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-8-out, priority=4, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall3-out-8-9, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-8-out, priority=5, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-8-out, priority=6, label=(null), callerid=(null), appl=Goto, data=s|8, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-5-out, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-5-out, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:5, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-5-out, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-5-out, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-8-out|ptr1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-5-out, priority=5, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall3-out-5-6, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-5-out, priority=6, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall3, rep=0, exten=sw-5-out, priority=7, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-10-${type}|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-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=macro-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=macro-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=macro-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=macro-endcall4, rep=0, exten=s, priority=7, label=(null), callerid=(null), appl=Goto, data=sw-13-${type}|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-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=macro-endcall4, rep=0, exten=sw-13-out, priority=1, label=(null), callerid=(null), appl=Goto, data=sw-14-${type}|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-13-out, priority=2, label=(null), callerid=(null), appl=NoOp, data=Finish switch-sw-endcall4-out-13-14, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-13-out, priority=3, label=(null), callerid=(null), appl=Goto, data=s|8, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-14-in, priority=1, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?2:4, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-14-in, priority=2, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-14-in, priority=3, label=(null), callerid=(null), appl=Goto, data=sw-13-out|2, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-14-in, priority=4, 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=macro-endcall4, rep=0, exten=sw-14-in, priority=5, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-14-in, priority=6, label=(null), callerid=(null), appl=Goto, data=sw-13-out|2, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-10-out, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-10-out, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:5, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-10-out, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-10-out, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-14-in|ptr1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-10-out, priority=5, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall4-out-10-11, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-10-out, priority=6, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall4, rep=0, exten=sw-10-out, priority=7, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=s, priority=1, label=(null), callerid=(null), appl=Set, data=type=${ARG1}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=s, priority=2, label=(null), callerid=(null), appl=Goto, data=sw-16-${type}|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-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=macro-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=macro-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=macro-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=macro-endcall5, rep=0, exten=s, priority=7, label=(null), callerid=(null), appl=Goto, data=sw-20-${type}|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-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=macro-endcall5, rep=0, exten=sw-20-out, priority=1, label=(null), callerid=(null), appl=Goto, data=sw-21-${type}|1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-20-out, priority=2, label=(null), callerid=(null), appl=NoOp, data=Finish switch-sw-endcall5-out-20-21, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-20-out, priority=3, label=(null), callerid=(null), appl=Goto, data=s|8, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-21-in, priority=1, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?2:4, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-21-in, priority=2, label=ptr1, callerid=(null), appl=Softhangup, data=${CHANNEL}, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-21-in, priority=3, label=(null), callerid=(null), appl=Goto, data=sw-20-out|2, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-21-in, priority=4, 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=macro-endcall5, rep=0, exten=sw-21-in, priority=5, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-21-in, priority=6, label=(null), callerid=(null), appl=Goto, data=sw-20-out|2, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-in, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-in, priority=2, label=ptr2, callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:5, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-in, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-in, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-21-in|ptr1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-in, priority=5, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall5-in-16-18, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-in, priority=6, label=(null), callerid=(null), appl=Noop, data=esac, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-in, priority=7, label=(null), callerid=(null), appl=Goto, data=s|3, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-out, priority=1, label=(null), callerid=(null), appl=Macro, data=nullchk|callid, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-out, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[${testnotnull}]?3:5, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-out, priority=3, label=(null), callerid=(null), appl=Macro, data=endsess, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-out, priority=4, label=(null), callerid=(null), appl=Goto, data=sw-21-in|ptr1, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-out, priority=5, label=(null), callerid=(null), appl=NoOp, data=Finish if-sw-endcall5-out-16-17, FREE, registrar=pbx_ael);
+Executed ast_add_extension2(context=macro-endcall5, rep=0, exten=sw-16-out, priority=6, label=(null), callerid=(null), appl=Goto, data=sw-16-in|1, FREE, registrar=pbx_ael);
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3772 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
 Executed ast_merge_contexts_and_delete();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3750 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3775 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
 Executed ast_walk_contexts();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3753 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
-LOG: lev:4 file:ael2_parse  line:253 func: main  7 contexts, 17 extensions, 104 priorities
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3778 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
+LOG: lev:4 file:ael2_parse  line:407 func: main  7 contexts, 17 extensions, 104 priorities
 Executed ast_unregister_file_version();
 Executed ast_unregister_file_version();
 Executed ast_unregister_file_version();
index 8f797d0..46aae63 100644 (file)
@@ -5,31 +5,33 @@ Executed ast_register_file_version();
 
 (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)
 Executed ast_cli_register_multiple();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3480 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3487 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3490 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3493 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3770 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
 Executed ast_context_create(conts, name=test1, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=771, priority=1, label=(null), callerid=(null), appl=Set, data=i=$[0], FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=771, priority=2, label=(null), callerid=(null), appl=GotoIf, data=$[ 
+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(con, rep=0, exten=771, priority=3, label=(null), callerid=(null), appl=NoOp, data=i is '${i}', FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=771, priority=4, label=(null), callerid=(null), appl=Set, data=i=$[ ${i} + 1 ], FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=771, priority=5, label=(null), callerid=(null), appl=Goto, data=2, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=772, priority=1, label=(null), callerid=(null), appl=Set, data=i=$[0], FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=772, priority=3, label=(null), callerid=(null), appl=NoOp, data=i is '${i}', FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=772, priority=4, label=(null), callerid=(null), appl=Set, data=i=$[ ${i} + 1 ], FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, rep=0, exten=772, priority=5, label=(null), callerid=(null), appl=Goto, data=2, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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/pbx_ael.c  line:3495 func: pbx_load_module  AEL load process: compiled config file name './extensions.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/pbx_ael.c  line:3772 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
 Executed ast_merge_contexts_and_delete();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3498 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3775 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
 Executed ast_walk_contexts();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3501 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
-LOG: lev:4 file:ael2_parse  line:253 func: main  1 contexts, 2 extensions, 12 priorities
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3778 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
+LOG: lev:4 file:ael2_parse  line:407 func: main  1 contexts, 2 extensions, 12 priorities
 Executed ast_unregister_file_version();
 Executed ast_unregister_file_version();
 Executed ast_unregister_file_version();
index c520b0d..66cdd3b 100644 (file)
@@ -5,24 +5,26 @@ Executed ast_register_file_version();
 
 (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)
 Executed ast_cli_register_multiple();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3453 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3460 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3463 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3466 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3770 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
 Executed ast_context_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(con, 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(con, rep=0, exten=793, priority=2, label=(null), callerid=(null), appl=Verbose, data=2|${QUERYSTRING}, FREE, registrar=pbx_ael);
-Executed ast_add_extension2(con, 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(con, rep=0, exten=793, priority=4, label=(null), callerid=(null), appl=Verbose, data=2|${query}, FREE, registrar=pbx_ael);
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3468 func: pbx_load_module  AEL load process: compiled config file name './extensions.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/pbx_ael.c  line:3772 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
 Executed ast_merge_contexts_and_delete();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3471 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3775 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
 Executed ast_walk_contexts();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3474 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
-LOG: lev:4 file:ael2_parse  line:253 func: main  1 contexts, 1 extensions, 4 priorities
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3778 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
+LOG: lev:4 file:ael2_parse  line:407 func: main  1 contexts, 1 extensions, 4 priorities
 Executed ast_unregister_file_version();
 Executed ast_unregister_file_version();
 Executed ast_unregister_file_version();
index 02e5267..2a43466 100644 (file)
@@ -1,11 +1,16 @@
 Executed ast_register_file_version();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3428 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3435 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3438 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:3 file:../pbx/pbx_ael.c  line:891 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:../pbx/pbx_ael.c  line:849 func: check_timerange  Warning: file ./extensions.ael, line 78-78: The end time (25:00) is out of range!
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3441 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3443 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3446 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3449 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
-LOG: lev:4 file:ael2_parse  line:261 func: main  5 contexts, 13 extensions, 156 priorities
+Executed ast_register_file_version();
+Executed ast_register_file_version();
+Executed ast_register_file_version();
+
+(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump)
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:3 file:../pbx/pbx_ael.c  line:909 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:../pbx/pbx_ael.c  line:867 func: check_timerange  Warning: file ./extensions.ael, line 78-78: The end time (25:00) is out of range!
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3770 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3772 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3775 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3778 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
+LOG: lev:4 file:ael2_parse  line:407 func: main  5 contexts, 13 extensions, 156 priorities
index 581ac60..f596f3d 100644 (file)
@@ -2,10 +2,12 @@ Executed ast_register_file_version();
 Executed ast_register_file_version();
 Executed ast_register_file_version();
 Executed ast_register_file_version();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3732 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3739 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3742 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:4 file:../pbx/pbx_ael.c  line:1041 func: check_label  Error: file ./extensions.ael, line 13-13: Duplicate label lab1! Previously defined at file ./extensions.ael, line 8.
-LOG: lev:4 file:../pbx/pbx_ael.c  line:1041 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/pbx_ael.c  line:3755 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:253 func: main  0 contexts, 0 extensions, 0 priorities
+
+(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump)
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:4 file:../pbx/pbx_ael.c  line:1043 func: check_label  Error: file ./extensions.ael, line 13-13: Duplicate label lab1! Previously defined at file ./extensions.ael, line 8.
+LOG: lev:4 file:../pbx/pbx_ael.c  line:1043 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/pbx_ael.c  line:3780 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:407 func: main  0 contexts, 0 extensions, 0 priorities
index 587223e..de4dee5 100644 (file)
@@ -1,15 +1,20 @@
 Executed ast_register_file_version();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3428 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3435 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:2 file:ael.flex  line:467 func: ael_yylex    --Read in included file ./apptest.ael2, 3474 chars
-LOG: lev:3 file:ael.y  line:405 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/pbx_ael.c  line:3438 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 35-35: application call to EndWhile needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 37-37: application call to ExecIf needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:4 file:../pbx/pbx_ael.c  line:1100 func: check_goto  Error: file ./apptest.ael2, line 46-46: goto:  no context cont could be found that matches the goto target!
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 47-47: application call to GotoIf needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 48-48: application call to GotoIfTime needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 85-85: application call to Random needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 141-141: application call to While needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:4 file:../pbx/pbx_ael.c  line:3451 func: pbx_load_module  Sorry, but 0 syntax errors and 1 semantic errors were detected. It doesn't make sense to compile.
-LOG: lev:4 file:ael2_parse  line:261 func: main  0 contexts, 0 extensions, 0 priorities
+Executed ast_register_file_version();
+Executed ast_register_file_version();
+Executed ast_register_file_version();
+
+(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump)
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:2 file:ael.flex  line:422 func: ael_yylex    --Read in included file ./apptest.ael2, 3474 chars
+LOG: lev:3 file:ael.y  line:512 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/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 35-35: application call to EndWhile needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 37-37: application call to ExecIf needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:4 file:../pbx/pbx_ael.c  line:1207 func: check_goto  Error: file ./apptest.ael2, line 46-46: goto:  no context cont could be found that matches the goto target!
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 47-47: application call to GotoIf needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 48-48: application call to GotoIfTime needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 85-85: application call to Random needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 141-141: application call to While needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:4 file:../pbx/pbx_ael.c  line:3780 func: pbx_load_module  Sorry, but 0 syntax errors and 1 semantic errors were detected. It doesn't make sense to compile.
+LOG: lev:4 file:ael2_parse  line:407 func: main  0 contexts, 0 extensions, 0 priorities
index afa17f6..d04f782 100644 (file)
@@ -2,17 +2,19 @@ Executed ast_register_file_version();
 Executed ast_register_file_version();
 Executed ast_register_file_version();
 Executed ast_register_file_version();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3732 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3739 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+
+(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump)
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
 LOG: lev:2 file:ael.flex  line:422 func: ael_yylex    --Read in included file ./include1.ael2, 78 chars
 LOG: lev:2 file:ael.flex  line:422 func: ael_yylex    --Read in included file ./include2.ael2, 98 chars
 LOG: lev:2 file:ael.flex  line:422 func: ael_yylex    --Read in included file ./include3.ael2, 57 chars
 LOG: lev:2 file:ael.flex  line:422 func: ael_yylex    --Read in included file ./include5.ael2, 56 chars
 LOG: lev:2 file:ael.flex  line:422 func: ael_yylex    --Read in included file ./include4.ael2, 87 chars
 LOG: lev:2 file:ael.flex  line:422 func: ael_yylex    --Read in included file /etc/asterisk/telemarket_torture.ael2, 28036 chars
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3742 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3745 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3747 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3750 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3753 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
-LOG: lev:4 file:ael2_parse  line:253 func: main  172 contexts, 858 extensions, 2326 priorities
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3770 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3772 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3775 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3778 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
+LOG: lev:4 file:ael2_parse  line:407 func: main  172 contexts, 858 extensions, 2326 priorities
index 587223e..de4dee5 100644 (file)
@@ -1,15 +1,20 @@
 Executed ast_register_file_version();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3428 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3435 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:2 file:ael.flex  line:467 func: ael_yylex    --Read in included file ./apptest.ael2, 3474 chars
-LOG: lev:3 file:ael.y  line:405 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/pbx_ael.c  line:3438 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 35-35: application call to EndWhile needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 37-37: application call to ExecIf needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:4 file:../pbx/pbx_ael.c  line:1100 func: check_goto  Error: file ./apptest.ael2, line 46-46: goto:  no context cont could be found that matches the goto target!
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 47-47: application call to GotoIf needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 48-48: application call to GotoIfTime needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 85-85: application call to Random needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:3 file:../pbx/pbx_ael.c  line:2081 func: check_pval_item  Warning: file ./apptest.ael2, line 141-141: application call to While needs to be re-written using AEL if, while, goto, etc. keywords instead!
-LOG: lev:4 file:../pbx/pbx_ael.c  line:3451 func: pbx_load_module  Sorry, but 0 syntax errors and 1 semantic errors were detected. It doesn't make sense to compile.
-LOG: lev:4 file:ael2_parse  line:261 func: main  0 contexts, 0 extensions, 0 priorities
+Executed ast_register_file_version();
+Executed ast_register_file_version();
+Executed ast_register_file_version();
+
+(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump)
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:2 file:ael.flex  line:422 func: ael_yylex    --Read in included file ./apptest.ael2, 3474 chars
+LOG: lev:3 file:ael.y  line:512 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/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 35-35: application call to EndWhile needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 37-37: application call to ExecIf needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:4 file:../pbx/pbx_ael.c  line:1207 func: check_goto  Error: file ./apptest.ael2, line 46-46: goto:  no context cont could be found that matches the goto target!
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 47-47: application call to GotoIf needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 48-48: application call to GotoIfTime needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 85-85: application call to Random needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:3 file:../pbx/pbx_ael.c  line:2257 func: check_pval_item  Warning: file ./apptest.ael2, line 141-141: application call to While needs to be re-written using AEL if, while, goto, etc. keywords instead!
+LOG: lev:4 file:../pbx/pbx_ael.c  line:3780 func: pbx_load_module  Sorry, but 0 syntax errors and 1 semantic errors were detected. It doesn't make sense to compile.
+LOG: lev:4 file:ael2_parse  line:407 func: main  0 contexts, 0 extensions, 0 priorities
index 130bda8..5a7c4f7 100644 (file)
@@ -1,9 +1,14 @@
 Executed ast_register_file_version();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3428 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3435 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3438 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3441 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3443 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3446 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3449 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
-LOG: lev:4 file:ael2_parse  line:261 func: main  38 contexts, 90 extensions, 484 priorities
+Executed ast_register_file_version();
+Executed ast_register_file_version();
+Executed ast_register_file_version();
+
+(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump)
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3770 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3772 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3775 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3778 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
+LOG: lev:4 file:ael2_parse  line:407 func: main  38 contexts, 90 extensions, 484 priorities
index f49b1fb..b463177 100644 (file)
@@ -1,15 +1,18 @@
 Executed ast_register_file_version();
 Executed ast_register_file_version();
 Executed ast_register_file_version();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3453 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3460 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:4 file:ael.flex  line:267 func: ael_yylex  File=./extensions.ael, line=165, column=49: Mismatched '}' in expression!
-LOG: lev:4 file:ael.y  line:726 func: ael_yyerror  ==== File: ./extensions.ael, Line 165, Cols: 51-51: Error: syntax error, unexpected '=', expecting ')'
-LOG: lev:4 file:ael.y  line:726 func: ael_yyerror  ==== File: ./extensions.ael, Line 169, Cols: 24-24: Error: syntax error, unexpected '&'
-LOG: lev:4 file:ael.flex  line:267 func: ael_yylex  File=./extensions.ael, line=222, column=41: Mismatched '}' in expression!
-LOG: lev:4 file:ael.y  line:726 func: ael_yyerror  ==== File: ./extensions.ael, Line 222, Cols: 43-43: Error: syntax error, unexpected '=', expecting ')'
-LOG: lev:4 file:ael.y  line:726 func: ael_yyerror  ==== File: ./extensions.ael, Line 226, Cols: 16-16: Error: syntax error, unexpected '&'
-LOG: lev:4 file:ael.y  line:726 func: ael_yyerror  ==== File: ./extensions.ael, Line 291, Cols: 21-28: Error: syntax error, unexpected word, expecting '(' or ';' or '=' or ':'
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3463 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:4 file:../pbx/pbx_ael.c  line:3476 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:253 func: main  0 contexts, 0 extensions, 0 priorities
+Executed ast_register_file_version();
+
+(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump)
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:4 file:ael.flex  line:269 func: ael_yylex  File=./extensions.ael, line=165, column=49: Mismatched '}' in expression!
+LOG: lev:4 file:ael.y  line:735 func: ael_yyerror  ==== File: ./extensions.ael, Line 165, Cols: 51-51: Error: syntax error, unexpected '=', expecting ')'
+LOG: lev:4 file:ael.y  line:735 func: ael_yyerror  ==== File: ./extensions.ael, Line 169, Cols: 24-24: Error: syntax error, unexpected '&'
+LOG: lev:4 file:ael.flex  line:269 func: ael_yylex  File=./extensions.ael, line=222, column=41: Mismatched '}' in expression!
+LOG: lev:4 file:ael.y  line:735 func: ael_yyerror  ==== File: ./extensions.ael, Line 222, Cols: 43-43: Error: syntax error, unexpected '=', expecting ')'
+LOG: lev:4 file:ael.y  line:735 func: ael_yyerror  ==== File: ./extensions.ael, Line 226, Cols: 16-16: Error: syntax error, unexpected '&'
+LOG: lev:4 file:ael.y  line:735 func: ael_yyerror  ==== File: ./extensions.ael, Line 291, Cols: 21-28: Error: syntax error, unexpected word, expecting '(' or ';' or '=' or ':'
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:4 file:../pbx/pbx_ael.c  line:3780 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:407 func: main  0 contexts, 0 extensions, 0 priorities
index b1f5522..3d22968 100644 (file)
@@ -2,13 +2,15 @@ Executed ast_register_file_version();
 Executed ast_register_file_version();
 Executed ast_register_file_version();
 Executed ast_register_file_version();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3732 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3739 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3742 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:4 file:../pbx/pbx_ael.c  line:2229 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:4 file:../pbx/pbx_ael.c  line:2229 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:4 file:../pbx/pbx_ael.c  line:2229 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:../pbx/pbx_ael.c  line:2229 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:4 file:../pbx/pbx_ael.c  line:2210 func: check_pval_item  Error: file ./extensions.ael, line 452-452: macro call to non-existent std-exten-ael !
-LOG: lev:4 file:../pbx/pbx_ael.c  line:3755 func: pbx_load_module  Sorry, but 0 syntax errors and 5 semantic errors were detected. It doesn't make sense to compile.
-LOG: lev:4 file:ael2_parse  line:253 func: main  0 contexts, 0 extensions, 0 priorities
+
+(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump)
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:4 file:../pbx/pbx_ael.c  line:2231 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:4 file:../pbx/pbx_ael.c  line:2231 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:4 file:../pbx/pbx_ael.c  line:2231 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:../pbx/pbx_ael.c  line:2231 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:4 file:../pbx/pbx_ael.c  line:2212 func: check_pval_item  Error: file ./extensions.ael, line 452-452: macro call to non-existent std-exten-ael !
+LOG: lev:4 file:../pbx/pbx_ael.c  line:3780 func: pbx_load_module  Sorry, but 0 syntax errors and 5 semantic errors were detected. It doesn't make sense to compile.
+LOG: lev:4 file:ael2_parse  line:407 func: main  0 contexts, 0 extensions, 0 priorities
index a93d3f8..ed8addb 100644 (file)
@@ -1,11 +1,14 @@
 Executed ast_register_file_version();
 Executed ast_register_file_version();
 Executed ast_register_file_version();
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3453 func: pbx_load_module  Starting AEL load process.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3460 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3463 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3466 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3468 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3471 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
-LOG: lev:2 file:../pbx/pbx_ael.c  line:3474 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
-LOG: lev:4 file:ael2_parse  line:253 func: main  1 contexts, 5 extensions, 15 priorities
+Executed ast_register_file_version();
+
+(You can use the -w option to dump extensions.conf format to extensions.conf.aeldump)
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3757 func: pbx_load_module  Starting AEL load process.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3764 func: pbx_load_module  AEL load process: calculated config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3767 func: pbx_load_module  AEL load process: parsed config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3770 func: pbx_load_module  AEL load process: checked config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3772 func: pbx_load_module  AEL load process: compiled config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3775 func: pbx_load_module  AEL load process: merged config file name './extensions.ael'.
+LOG: lev:2 file:../pbx/pbx_ael.c  line:3778 func: pbx_load_module  AEL load process: verified config file name './extensions.ael'.
+LOG: lev:4 file:ael2_parse  line:407 func: main  1 contexts, 5 extensions, 15 priorities
diff --git a/pbx/ael/ael-test/ref.ael-vtest13 b/pbx/ael/ael-test/ref.ael-vtest13
new file mode 100644 (file)
index 0000000..8da228e
--- /dev/null
@@ -0,0 +1,2875 @@
+[globals]
+static=yes
+writeprotect=yes
+CONSOLE=Console/dsp
+IAXINFO=murf:tlhfckoct
+FWDNUMBER=544788 
+FWDCIDNAME="Joe-Worker"
+FWDPASSWORD=zingledoodle 
+FWDRINGS=Zap/6 
+FWDVMBOX=1 
+
+
+[macro-std-exten]
+exten => s,1,Set(ext=${ARG1})
+exten => s,2,Set(dev=${ARG2})
+exten => s,3,Dial(${dev}/${ext}|20)
+exten => s,4,Goto(sw-1-${DIALSTATUS}|1)
+exten => s,5,NoOp(Finish switch-std-exten-1)
+exten => a,1,VoiceMailMain(${ext})
+exten => _sw-1-.,1,Voicemail(u${ext})
+exten => _sw-1-.,2,Goto(s|5)
+exten => sw-1-ANSWER,1,Goto(s|5)
+exten => sw-1-NOANSWER,1,Voicemail(u${ext})
+exten => sw-1-NOANSWER,2,Goto(s|5)
+exten => sw-1-BUSY,1,Voicemail(b${ext})
+exten => sw-1-BUSY,2,Goto(s|5)
+
+
+[macro-std-priv-exten_1]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-3-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_1-3)
+exten => _sw-3-.,1,Voicemail(u${ext})
+exten => _sw-3-.,2,Goto(s|10)
+exten => sw-3-NOANSWER,1,Voicemail(u${ext})
+exten => sw-3-NOANSWER,2,Goto(s|10)
+exten => sw-3-ANSWER,1,Goto(s|10)
+exten => sw-3-BUSY,1,Voicemail(b${ext})
+exten => sw-3-BUSY,2,Goto(s|10)
+exten => sw-3-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-3-DONTCALL,2,Goto(s|10)
+exten => sw-3-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-3-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_2]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-4-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_2-4)
+exten => _sw-4-.,1,Voicemail(u${ext})
+exten => _sw-4-.,2,Goto(s|10)
+exten => sw-4-NOANSWER,1,Voicemail(u${ext})
+exten => sw-4-NOANSWER,2,Goto(s|10)
+exten => sw-4-ANSWER,1,Goto(s|10)
+exten => sw-4-BUSY,1,Voicemail(b${ext})
+exten => sw-4-BUSY,2,Goto(s|10)
+exten => sw-4-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-4-DONTCALL,2,Goto(s|10)
+exten => sw-4-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-4-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_3]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-5-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_3-5)
+exten => _sw-5-.,1,Voicemail(u${ext})
+exten => _sw-5-.,2,Goto(s|10)
+exten => sw-5-NOANSWER,1,Voicemail(u${ext})
+exten => sw-5-NOANSWER,2,Goto(s|10)
+exten => sw-5-ANSWER,1,Goto(s|10)
+exten => sw-5-BUSY,1,Voicemail(b${ext})
+exten => sw-5-BUSY,2,Goto(s|10)
+exten => sw-5-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-5-DONTCALL,2,Goto(s|10)
+exten => sw-5-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-5-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_4]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-6-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_4-6)
+exten => _sw-6-.,1,Voicemail(u${ext})
+exten => _sw-6-.,2,Goto(s|10)
+exten => sw-6-NOANSWER,1,Voicemail(u${ext})
+exten => sw-6-NOANSWER,2,Goto(s|10)
+exten => sw-6-ANSWER,1,Goto(s|10)
+exten => sw-6-BUSY,1,Voicemail(b${ext})
+exten => sw-6-BUSY,2,Goto(s|10)
+exten => sw-6-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-6-DONTCALL,2,Goto(s|10)
+exten => sw-6-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-6-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_5]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-7-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_5-7)
+exten => _sw-7-.,1,Voicemail(u${ext})
+exten => _sw-7-.,2,Goto(s|10)
+exten => sw-7-NOANSWER,1,Voicemail(u${ext})
+exten => sw-7-NOANSWER,2,Goto(s|10)
+exten => sw-7-ANSWER,1,Goto(s|10)
+exten => sw-7-BUSY,1,Voicemail(b${ext})
+exten => sw-7-BUSY,2,Goto(s|10)
+exten => sw-7-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-7-DONTCALL,2,Goto(s|10)
+exten => sw-7-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-7-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_6]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-8-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_6-8)
+exten => _sw-8-.,1,Voicemail(u${ext})
+exten => _sw-8-.,2,Goto(s|10)
+exten => sw-8-NOANSWER,1,Voicemail(u${ext})
+exten => sw-8-NOANSWER,2,Goto(s|10)
+exten => sw-8-ANSWER,1,Goto(s|10)
+exten => sw-8-BUSY,1,Voicemail(b${ext})
+exten => sw-8-BUSY,2,Goto(s|10)
+exten => sw-8-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-8-DONTCALL,2,Goto(s|10)
+exten => sw-8-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-8-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_7]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-9-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_7-9)
+exten => _sw-9-.,1,Voicemail(u${ext})
+exten => _sw-9-.,2,Goto(s|10)
+exten => sw-9-NOANSWER,1,Voicemail(u${ext})
+exten => sw-9-NOANSWER,2,Goto(s|10)
+exten => sw-9-ANSWER,1,Goto(s|10)
+exten => sw-9-BUSY,1,Voicemail(b${ext})
+exten => sw-9-BUSY,2,Goto(s|10)
+exten => sw-9-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-9-DONTCALL,2,Goto(s|10)
+exten => sw-9-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-9-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_8]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-10-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_8-10)
+exten => _sw-10-.,1,Voicemail(u${ext})
+exten => _sw-10-.,2,Goto(s|10)
+exten => sw-10-NOANSWER,1,Voicemail(u${ext})
+exten => sw-10-NOANSWER,2,Goto(s|10)
+exten => sw-10-ANSWER,1,Goto(s|10)
+exten => sw-10-BUSY,1,Voicemail(b${ext})
+exten => sw-10-BUSY,2,Goto(s|10)
+exten => sw-10-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-10-DONTCALL,2,Goto(s|10)
+exten => sw-10-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-10-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_9]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-11-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_9-11)
+exten => _sw-11-.,1,Voicemail(u${ext})
+exten => _sw-11-.,2,Goto(s|10)
+exten => sw-11-NOANSWER,1,Voicemail(u${ext})
+exten => sw-11-NOANSWER,2,Goto(s|10)
+exten => sw-11-ANSWER,1,Goto(s|10)
+exten => sw-11-BUSY,1,Voicemail(b${ext})
+exten => sw-11-BUSY,2,Goto(s|10)
+exten => sw-11-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-11-DONTCALL,2,Goto(s|10)
+exten => sw-11-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-11-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_10]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-12-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_10-12)
+exten => _sw-12-.,1,Voicemail(u${ext})
+exten => _sw-12-.,2,Goto(s|10)
+exten => sw-12-NOANSWER,1,Voicemail(u${ext})
+exten => sw-12-NOANSWER,2,Goto(s|10)
+exten => sw-12-ANSWER,1,Goto(s|10)
+exten => sw-12-BUSY,1,Voicemail(b${ext})
+exten => sw-12-BUSY,2,Goto(s|10)
+exten => sw-12-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-12-DONTCALL,2,Goto(s|10)
+exten => sw-12-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-12-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_11]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-13-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_11-13)
+exten => _sw-13-.,1,Voicemail(u${ext})
+exten => _sw-13-.,2,Goto(s|10)
+exten => sw-13-NOANSWER,1,Voicemail(u${ext})
+exten => sw-13-NOANSWER,2,Goto(s|10)
+exten => sw-13-ANSWER,1,Goto(s|10)
+exten => sw-13-BUSY,1,Voicemail(b${ext})
+exten => sw-13-BUSY,2,Goto(s|10)
+exten => sw-13-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-13-DONTCALL,2,Goto(s|10)
+exten => sw-13-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-13-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_12]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-14-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_12-14)
+exten => _sw-14-.,1,Voicemail(u${ext})
+exten => _sw-14-.,2,Goto(s|10)
+exten => sw-14-NOANSWER,1,Voicemail(u${ext})
+exten => sw-14-NOANSWER,2,Goto(s|10)
+exten => sw-14-ANSWER,1,Goto(s|10)
+exten => sw-14-BUSY,1,Voicemail(b${ext})
+exten => sw-14-BUSY,2,Goto(s|10)
+exten => sw-14-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-14-DONTCALL,2,Goto(s|10)
+exten => sw-14-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-14-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_13]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-15-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_13-15)
+exten => _sw-15-.,1,Voicemail(u${ext})
+exten => _sw-15-.,2,Goto(s|10)
+exten => sw-15-NOANSWER,1,Voicemail(u${ext})
+exten => sw-15-NOANSWER,2,Goto(s|10)
+exten => sw-15-ANSWER,1,Goto(s|10)
+exten => sw-15-BUSY,1,Voicemail(b${ext})
+exten => sw-15-BUSY,2,Goto(s|10)
+exten => sw-15-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-15-DONTCALL,2,Goto(s|10)
+exten => sw-15-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-15-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_14]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-16-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_14-16)
+exten => _sw-16-.,1,Voicemail(u${ext})
+exten => _sw-16-.,2,Goto(s|10)
+exten => sw-16-NOANSWER,1,Voicemail(u${ext})
+exten => sw-16-NOANSWER,2,Goto(s|10)
+exten => sw-16-ANSWER,1,Goto(s|10)
+exten => sw-16-BUSY,1,Voicemail(b${ext})
+exten => sw-16-BUSY,2,Goto(s|10)
+exten => sw-16-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-16-DONTCALL,2,Goto(s|10)
+exten => sw-16-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-16-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_15]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-17-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_15-17)
+exten => _sw-17-.,1,Voicemail(u${ext})
+exten => _sw-17-.,2,Goto(s|10)
+exten => sw-17-NOANSWER,1,Voicemail(u${ext})
+exten => sw-17-NOANSWER,2,Goto(s|10)
+exten => sw-17-ANSWER,1,Goto(s|10)
+exten => sw-17-BUSY,1,Voicemail(b${ext})
+exten => sw-17-BUSY,2,Goto(s|10)
+exten => sw-17-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-17-DONTCALL,2,Goto(s|10)
+exten => sw-17-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-17-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_16]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-18-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_16-18)
+exten => _sw-18-.,1,Voicemail(u${ext})
+exten => _sw-18-.,2,Goto(s|10)
+exten => sw-18-NOANSWER,1,Voicemail(u${ext})
+exten => sw-18-NOANSWER,2,Goto(s|10)
+exten => sw-18-ANSWER,1,Goto(s|10)
+exten => sw-18-BUSY,1,Voicemail(b${ext})
+exten => sw-18-BUSY,2,Goto(s|10)
+exten => sw-18-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-18-DONTCALL,2,Goto(s|10)
+exten => sw-18-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-18-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_17]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-19-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_17-19)
+exten => _sw-19-.,1,Voicemail(u${ext})
+exten => _sw-19-.,2,Goto(s|10)
+exten => sw-19-NOANSWER,1,Voicemail(u${ext})
+exten => sw-19-NOANSWER,2,Goto(s|10)
+exten => sw-19-ANSWER,1,Goto(s|10)
+exten => sw-19-BUSY,1,Voicemail(b${ext})
+exten => sw-19-BUSY,2,Goto(s|10)
+exten => sw-19-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-19-DONTCALL,2,Goto(s|10)
+exten => sw-19-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-19-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_18]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-20-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_18-20)
+exten => _sw-20-.,1,Voicemail(u${ext})
+exten => _sw-20-.,2,Goto(s|10)
+exten => sw-20-NOANSWER,1,Voicemail(u${ext})
+exten => sw-20-NOANSWER,2,Goto(s|10)
+exten => sw-20-ANSWER,1,Goto(s|10)
+exten => sw-20-BUSY,1,Voicemail(b${ext})
+exten => sw-20-BUSY,2,Goto(s|10)
+exten => sw-20-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-20-DONTCALL,2,Goto(s|10)
+exten => sw-20-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-20-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_19]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-21-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_19-21)
+exten => _sw-21-.,1,Voicemail(u${ext})
+exten => _sw-21-.,2,Goto(s|10)
+exten => sw-21-NOANSWER,1,Voicemail(u${ext})
+exten => sw-21-NOANSWER,2,Goto(s|10)
+exten => sw-21-ANSWER,1,Goto(s|10)
+exten => sw-21-BUSY,1,Voicemail(b${ext})
+exten => sw-21-BUSY,2,Goto(s|10)
+exten => sw-21-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-21-DONTCALL,2,Goto(s|10)
+exten => sw-21-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-21-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_20]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-22-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_20-22)
+exten => _sw-22-.,1,Voicemail(u${ext})
+exten => _sw-22-.,2,Goto(s|10)
+exten => sw-22-NOANSWER,1,Voicemail(u${ext})
+exten => sw-22-NOANSWER,2,Goto(s|10)
+exten => sw-22-ANSWER,1,Goto(s|10)
+exten => sw-22-BUSY,1,Voicemail(b${ext})
+exten => sw-22-BUSY,2,Goto(s|10)
+exten => sw-22-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-22-DONTCALL,2,Goto(s|10)
+exten => sw-22-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-22-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_21]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-23-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_21-23)
+exten => _sw-23-.,1,Voicemail(u${ext})
+exten => _sw-23-.,2,Goto(s|10)
+exten => sw-23-NOANSWER,1,Voicemail(u${ext})
+exten => sw-23-NOANSWER,2,Goto(s|10)
+exten => sw-23-ANSWER,1,Goto(s|10)
+exten => sw-23-BUSY,1,Voicemail(b${ext})
+exten => sw-23-BUSY,2,Goto(s|10)
+exten => sw-23-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-23-DONTCALL,2,Goto(s|10)
+exten => sw-23-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-23-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_22]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-24-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_22-24)
+exten => _sw-24-.,1,Voicemail(u${ext})
+exten => _sw-24-.,2,Goto(s|10)
+exten => sw-24-NOANSWER,1,Voicemail(u${ext})
+exten => sw-24-NOANSWER,2,Goto(s|10)
+exten => sw-24-ANSWER,1,Goto(s|10)
+exten => sw-24-BUSY,1,Voicemail(b${ext})
+exten => sw-24-BUSY,2,Goto(s|10)
+exten => sw-24-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-24-DONTCALL,2,Goto(s|10)
+exten => sw-24-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-24-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_23]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-25-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_23-25)
+exten => _sw-25-.,1,Voicemail(u${ext})
+exten => _sw-25-.,2,Goto(s|10)
+exten => sw-25-NOANSWER,1,Voicemail(u${ext})
+exten => sw-25-NOANSWER,2,Goto(s|10)
+exten => sw-25-ANSWER,1,Goto(s|10)
+exten => sw-25-BUSY,1,Voicemail(b${ext})
+exten => sw-25-BUSY,2,Goto(s|10)
+exten => sw-25-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-25-DONTCALL,2,Goto(s|10)
+exten => sw-25-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-25-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_24]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-26-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_24-26)
+exten => _sw-26-.,1,Voicemail(u${ext})
+exten => _sw-26-.,2,Goto(s|10)
+exten => sw-26-NOANSWER,1,Voicemail(u${ext})
+exten => sw-26-NOANSWER,2,Goto(s|10)
+exten => sw-26-ANSWER,1,Goto(s|10)
+exten => sw-26-BUSY,1,Voicemail(b${ext})
+exten => sw-26-BUSY,2,Goto(s|10)
+exten => sw-26-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-26-DONTCALL,2,Goto(s|10)
+exten => sw-26-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-26-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_25]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-27-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_25-27)
+exten => _sw-27-.,1,Voicemail(u${ext})
+exten => _sw-27-.,2,Goto(s|10)
+exten => sw-27-NOANSWER,1,Voicemail(u${ext})
+exten => sw-27-NOANSWER,2,Goto(s|10)
+exten => sw-27-ANSWER,1,Goto(s|10)
+exten => sw-27-BUSY,1,Voicemail(b${ext})
+exten => sw-27-BUSY,2,Goto(s|10)
+exten => sw-27-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-27-DONTCALL,2,Goto(s|10)
+exten => sw-27-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-27-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_26]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-28-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_26-28)
+exten => _sw-28-.,1,Voicemail(u${ext})
+exten => _sw-28-.,2,Goto(s|10)
+exten => sw-28-NOANSWER,1,Voicemail(u${ext})
+exten => sw-28-NOANSWER,2,Goto(s|10)
+exten => sw-28-ANSWER,1,Goto(s|10)
+exten => sw-28-BUSY,1,Voicemail(b${ext})
+exten => sw-28-BUSY,2,Goto(s|10)
+exten => sw-28-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-28-DONTCALL,2,Goto(s|10)
+exten => sw-28-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-28-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_27]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-29-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_27-29)
+exten => _sw-29-.,1,Voicemail(u${ext})
+exten => _sw-29-.,2,Goto(s|10)
+exten => sw-29-NOANSWER,1,Voicemail(u${ext})
+exten => sw-29-NOANSWER,2,Goto(s|10)
+exten => sw-29-ANSWER,1,Goto(s|10)
+exten => sw-29-BUSY,1,Voicemail(b${ext})
+exten => sw-29-BUSY,2,Goto(s|10)
+exten => sw-29-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-29-DONTCALL,2,Goto(s|10)
+exten => sw-29-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-29-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_28]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-30-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_28-30)
+exten => _sw-30-.,1,Voicemail(u${ext})
+exten => _sw-30-.,2,Goto(s|10)
+exten => sw-30-NOANSWER,1,Voicemail(u${ext})
+exten => sw-30-NOANSWER,2,Goto(s|10)
+exten => sw-30-ANSWER,1,Goto(s|10)
+exten => sw-30-BUSY,1,Voicemail(b${ext})
+exten => sw-30-BUSY,2,Goto(s|10)
+exten => sw-30-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-30-DONTCALL,2,Goto(s|10)
+exten => sw-30-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-30-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_29]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-31-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_29-31)
+exten => _sw-31-.,1,Voicemail(u${ext})
+exten => _sw-31-.,2,Goto(s|10)
+exten => sw-31-NOANSWER,1,Voicemail(u${ext})
+exten => sw-31-NOANSWER,2,Goto(s|10)
+exten => sw-31-ANSWER,1,Goto(s|10)
+exten => sw-31-BUSY,1,Voicemail(b${ext})
+exten => sw-31-BUSY,2,Goto(s|10)
+exten => sw-31-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-31-DONTCALL,2,Goto(s|10)
+exten => sw-31-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-31-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_30]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-32-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_30-32)
+exten => _sw-32-.,1,Voicemail(u${ext})
+exten => _sw-32-.,2,Goto(s|10)
+exten => sw-32-NOANSWER,1,Voicemail(u${ext})
+exten => sw-32-NOANSWER,2,Goto(s|10)
+exten => sw-32-ANSWER,1,Goto(s|10)
+exten => sw-32-BUSY,1,Voicemail(b${ext})
+exten => sw-32-BUSY,2,Goto(s|10)
+exten => sw-32-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-32-DONTCALL,2,Goto(s|10)
+exten => sw-32-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-32-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_31]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-33-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_31-33)
+exten => _sw-33-.,1,Voicemail(u${ext})
+exten => _sw-33-.,2,Goto(s|10)
+exten => sw-33-NOANSWER,1,Voicemail(u${ext})
+exten => sw-33-NOANSWER,2,Goto(s|10)
+exten => sw-33-ANSWER,1,Goto(s|10)
+exten => sw-33-BUSY,1,Voicemail(b${ext})
+exten => sw-33-BUSY,2,Goto(s|10)
+exten => sw-33-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-33-DONTCALL,2,Goto(s|10)
+exten => sw-33-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-33-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_32]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-34-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_32-34)
+exten => _sw-34-.,1,Voicemail(u${ext})
+exten => _sw-34-.,2,Goto(s|10)
+exten => sw-34-NOANSWER,1,Voicemail(u${ext})
+exten => sw-34-NOANSWER,2,Goto(s|10)
+exten => sw-34-ANSWER,1,Goto(s|10)
+exten => sw-34-BUSY,1,Voicemail(b${ext})
+exten => sw-34-BUSY,2,Goto(s|10)
+exten => sw-34-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-34-DONTCALL,2,Goto(s|10)
+exten => sw-34-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-34-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_33]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-35-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_33-35)
+exten => _sw-35-.,1,Voicemail(u${ext})
+exten => _sw-35-.,2,Goto(s|10)
+exten => sw-35-NOANSWER,1,Voicemail(u${ext})
+exten => sw-35-NOANSWER,2,Goto(s|10)
+exten => sw-35-ANSWER,1,Goto(s|10)
+exten => sw-35-BUSY,1,Voicemail(b${ext})
+exten => sw-35-BUSY,2,Goto(s|10)
+exten => sw-35-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-35-DONTCALL,2,Goto(s|10)
+exten => sw-35-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-35-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_34]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-36-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_34-36)
+exten => _sw-36-.,1,Voicemail(u${ext})
+exten => _sw-36-.,2,Goto(s|10)
+exten => sw-36-NOANSWER,1,Voicemail(u${ext})
+exten => sw-36-NOANSWER,2,Goto(s|10)
+exten => sw-36-ANSWER,1,Goto(s|10)
+exten => sw-36-BUSY,1,Voicemail(b${ext})
+exten => sw-36-BUSY,2,Goto(s|10)
+exten => sw-36-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-36-DONTCALL,2,Goto(s|10)
+exten => sw-36-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-36-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_35]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-37-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_35-37)
+exten => _sw-37-.,1,Voicemail(u${ext})
+exten => _sw-37-.,2,Goto(s|10)
+exten => sw-37-NOANSWER,1,Voicemail(u${ext})
+exten => sw-37-NOANSWER,2,Goto(s|10)
+exten => sw-37-ANSWER,1,Goto(s|10)
+exten => sw-37-BUSY,1,Voicemail(b${ext})
+exten => sw-37-BUSY,2,Goto(s|10)
+exten => sw-37-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-37-DONTCALL,2,Goto(s|10)
+exten => sw-37-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-37-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_36]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-38-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_36-38)
+exten => _sw-38-.,1,Voicemail(u${ext})
+exten => _sw-38-.,2,Goto(s|10)
+exten => sw-38-NOANSWER,1,Voicemail(u${ext})
+exten => sw-38-NOANSWER,2,Goto(s|10)
+exten => sw-38-ANSWER,1,Goto(s|10)
+exten => sw-38-BUSY,1,Voicemail(b${ext})
+exten => sw-38-BUSY,2,Goto(s|10)
+exten => sw-38-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-38-DONTCALL,2,Goto(s|10)
+exten => sw-38-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-38-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_37]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-39-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_37-39)
+exten => _sw-39-.,1,Voicemail(u${ext})
+exten => _sw-39-.,2,Goto(s|10)
+exten => sw-39-NOANSWER,1,Voicemail(u${ext})
+exten => sw-39-NOANSWER,2,Goto(s|10)
+exten => sw-39-ANSWER,1,Goto(s|10)
+exten => sw-39-BUSY,1,Voicemail(b${ext})
+exten => sw-39-BUSY,2,Goto(s|10)
+exten => sw-39-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-39-DONTCALL,2,Goto(s|10)
+exten => sw-39-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-39-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_38]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-40-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_38-40)
+exten => _sw-40-.,1,Voicemail(u${ext})
+exten => _sw-40-.,2,Goto(s|10)
+exten => sw-40-NOANSWER,1,Voicemail(u${ext})
+exten => sw-40-NOANSWER,2,Goto(s|10)
+exten => sw-40-ANSWER,1,Goto(s|10)
+exten => sw-40-BUSY,1,Voicemail(b${ext})
+exten => sw-40-BUSY,2,Goto(s|10)
+exten => sw-40-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-40-DONTCALL,2,Goto(s|10)
+exten => sw-40-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-40-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_39]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-41-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_39-41)
+exten => _sw-41-.,1,Voicemail(u${ext})
+exten => _sw-41-.,2,Goto(s|10)
+exten => sw-41-NOANSWER,1,Voicemail(u${ext})
+exten => sw-41-NOANSWER,2,Goto(s|10)
+exten => sw-41-ANSWER,1,Goto(s|10)
+exten => sw-41-BUSY,1,Voicemail(b${ext})
+exten => sw-41-BUSY,2,Goto(s|10)
+exten => sw-41-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-41-DONTCALL,2,Goto(s|10)
+exten => sw-41-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-41-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_40]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-42-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_40-42)
+exten => _sw-42-.,1,Voicemail(u${ext})
+exten => _sw-42-.,2,Goto(s|10)
+exten => sw-42-NOANSWER,1,Voicemail(u${ext})
+exten => sw-42-NOANSWER,2,Goto(s|10)
+exten => sw-42-ANSWER,1,Goto(s|10)
+exten => sw-42-BUSY,1,Voicemail(b${ext})
+exten => sw-42-BUSY,2,Goto(s|10)
+exten => sw-42-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-42-DONTCALL,2,Goto(s|10)
+exten => sw-42-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-42-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_41]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-43-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_41-43)
+exten => _sw-43-.,1,Voicemail(u${ext})
+exten => _sw-43-.,2,Goto(s|10)
+exten => sw-43-NOANSWER,1,Voicemail(u${ext})
+exten => sw-43-NOANSWER,2,Goto(s|10)
+exten => sw-43-ANSWER,1,Goto(s|10)
+exten => sw-43-BUSY,1,Voicemail(b${ext})
+exten => sw-43-BUSY,2,Goto(s|10)
+exten => sw-43-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-43-DONTCALL,2,Goto(s|10)
+exten => sw-43-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-43-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_42]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-44-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_42-44)
+exten => _sw-44-.,1,Voicemail(u${ext})
+exten => _sw-44-.,2,Goto(s|10)
+exten => sw-44-NOANSWER,1,Voicemail(u${ext})
+exten => sw-44-NOANSWER,2,Goto(s|10)
+exten => sw-44-ANSWER,1,Goto(s|10)
+exten => sw-44-BUSY,1,Voicemail(b${ext})
+exten => sw-44-BUSY,2,Goto(s|10)
+exten => sw-44-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-44-DONTCALL,2,Goto(s|10)
+exten => sw-44-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-44-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_43]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-45-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_43-45)
+exten => _sw-45-.,1,Voicemail(u${ext})
+exten => _sw-45-.,2,Goto(s|10)
+exten => sw-45-NOANSWER,1,Voicemail(u${ext})
+exten => sw-45-NOANSWER,2,Goto(s|10)
+exten => sw-45-ANSWER,1,Goto(s|10)
+exten => sw-45-BUSY,1,Voicemail(b${ext})
+exten => sw-45-BUSY,2,Goto(s|10)
+exten => sw-45-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-45-DONTCALL,2,Goto(s|10)
+exten => sw-45-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-45-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_44]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-46-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_44-46)
+exten => _sw-46-.,1,Voicemail(u${ext})
+exten => _sw-46-.,2,Goto(s|10)
+exten => sw-46-NOANSWER,1,Voicemail(u${ext})
+exten => sw-46-NOANSWER,2,Goto(s|10)
+exten => sw-46-ANSWER,1,Goto(s|10)
+exten => sw-46-BUSY,1,Voicemail(b${ext})
+exten => sw-46-BUSY,2,Goto(s|10)
+exten => sw-46-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-46-DONTCALL,2,Goto(s|10)
+exten => sw-46-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-46-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_45]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-47-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_45-47)
+exten => _sw-47-.,1,Voicemail(u${ext})
+exten => _sw-47-.,2,Goto(s|10)
+exten => sw-47-NOANSWER,1,Voicemail(u${ext})
+exten => sw-47-NOANSWER,2,Goto(s|10)
+exten => sw-47-ANSWER,1,Goto(s|10)
+exten => sw-47-BUSY,1,Voicemail(b${ext})
+exten => sw-47-BUSY,2,Goto(s|10)
+exten => sw-47-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-47-DONTCALL,2,Goto(s|10)
+exten => sw-47-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-47-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_46]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-48-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_46-48)
+exten => _sw-48-.,1,Voicemail(u${ext})
+exten => _sw-48-.,2,Goto(s|10)
+exten => sw-48-NOANSWER,1,Voicemail(u${ext})
+exten => sw-48-NOANSWER,2,Goto(s|10)
+exten => sw-48-ANSWER,1,Goto(s|10)
+exten => sw-48-BUSY,1,Voicemail(b${ext})
+exten => sw-48-BUSY,2,Goto(s|10)
+exten => sw-48-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-48-DONTCALL,2,Goto(s|10)
+exten => sw-48-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-48-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_47]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-49-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_47-49)
+exten => _sw-49-.,1,Voicemail(u${ext})
+exten => _sw-49-.,2,Goto(s|10)
+exten => sw-49-NOANSWER,1,Voicemail(u${ext})
+exten => sw-49-NOANSWER,2,Goto(s|10)
+exten => sw-49-ANSWER,1,Goto(s|10)
+exten => sw-49-BUSY,1,Voicemail(b${ext})
+exten => sw-49-BUSY,2,Goto(s|10)
+exten => sw-49-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-49-DONTCALL,2,Goto(s|10)
+exten => sw-49-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-49-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_48]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-50-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_48-50)
+exten => _sw-50-.,1,Voicemail(u${ext})
+exten => _sw-50-.,2,Goto(s|10)
+exten => sw-50-NOANSWER,1,Voicemail(u${ext})
+exten => sw-50-NOANSWER,2,Goto(s|10)
+exten => sw-50-ANSWER,1,Goto(s|10)
+exten => sw-50-BUSY,1,Voicemail(b${ext})
+exten => sw-50-BUSY,2,Goto(s|10)
+exten => sw-50-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-50-DONTCALL,2,Goto(s|10)
+exten => sw-50-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-50-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_49]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-51-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_49-51)
+exten => _sw-51-.,1,Voicemail(u${ext})
+exten => _sw-51-.,2,Goto(s|10)
+exten => sw-51-NOANSWER,1,Voicemail(u${ext})
+exten => sw-51-NOANSWER,2,Goto(s|10)
+exten => sw-51-ANSWER,1,Goto(s|10)
+exten => sw-51-BUSY,1,Voicemail(b${ext})
+exten => sw-51-BUSY,2,Goto(s|10)
+exten => sw-51-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-51-DONTCALL,2,Goto(s|10)
+exten => sw-51-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-51-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_50]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-52-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_50-52)
+exten => _sw-52-.,1,Voicemail(u${ext})
+exten => _sw-52-.,2,Goto(s|10)
+exten => sw-52-NOANSWER,1,Voicemail(u${ext})
+exten => sw-52-NOANSWER,2,Goto(s|10)
+exten => sw-52-ANSWER,1,Goto(s|10)
+exten => sw-52-BUSY,1,Voicemail(b${ext})
+exten => sw-52-BUSY,2,Goto(s|10)
+exten => sw-52-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-52-DONTCALL,2,Goto(s|10)
+exten => sw-52-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-52-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_51]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-53-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_51-53)
+exten => _sw-53-.,1,Voicemail(u${ext})
+exten => _sw-53-.,2,Goto(s|10)
+exten => sw-53-NOANSWER,1,Voicemail(u${ext})
+exten => sw-53-NOANSWER,2,Goto(s|10)
+exten => sw-53-ANSWER,1,Goto(s|10)
+exten => sw-53-BUSY,1,Voicemail(b${ext})
+exten => sw-53-BUSY,2,Goto(s|10)
+exten => sw-53-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-53-DONTCALL,2,Goto(s|10)
+exten => sw-53-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-53-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_52]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-54-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_52-54)
+exten => _sw-54-.,1,Voicemail(u${ext})
+exten => _sw-54-.,2,Goto(s|10)
+exten => sw-54-NOANSWER,1,Voicemail(u${ext})
+exten => sw-54-NOANSWER,2,Goto(s|10)
+exten => sw-54-ANSWER,1,Goto(s|10)
+exten => sw-54-BUSY,1,Voicemail(b${ext})
+exten => sw-54-BUSY,2,Goto(s|10)
+exten => sw-54-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-54-DONTCALL,2,Goto(s|10)
+exten => sw-54-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-54-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_53]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-55-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_53-55)
+exten => _sw-55-.,1,Voicemail(u${ext})
+exten => _sw-55-.,2,Goto(s|10)
+exten => sw-55-NOANSWER,1,Voicemail(u${ext})
+exten => sw-55-NOANSWER,2,Goto(s|10)
+exten => sw-55-ANSWER,1,Goto(s|10)
+exten => sw-55-BUSY,1,Voicemail(b${ext})
+exten => sw-55-BUSY,2,Goto(s|10)
+exten => sw-55-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-55-DONTCALL,2,Goto(s|10)
+exten => sw-55-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-55-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_54]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-56-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_54-56)
+exten => _sw-56-.,1,Voicemail(u${ext})
+exten => _sw-56-.,2,Goto(s|10)
+exten => sw-56-NOANSWER,1,Voicemail(u${ext})
+exten => sw-56-NOANSWER,2,Goto(s|10)
+exten => sw-56-ANSWER,1,Goto(s|10)
+exten => sw-56-BUSY,1,Voicemail(b${ext})
+exten => sw-56-BUSY,2,Goto(s|10)
+exten => sw-56-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-56-DONTCALL,2,Goto(s|10)
+exten => sw-56-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-56-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_55]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-57-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_55-57)
+exten => _sw-57-.,1,Voicemail(u${ext})
+exten => _sw-57-.,2,Goto(s|10)
+exten => sw-57-NOANSWER,1,Voicemail(u${ext})
+exten => sw-57-NOANSWER,2,Goto(s|10)
+exten => sw-57-ANSWER,1,Goto(s|10)
+exten => sw-57-BUSY,1,Voicemail(b${ext})
+exten => sw-57-BUSY,2,Goto(s|10)
+exten => sw-57-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-57-DONTCALL,2,Goto(s|10)
+exten => sw-57-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-57-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_56]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-58-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_56-58)
+exten => _sw-58-.,1,Voicemail(u${ext})
+exten => _sw-58-.,2,Goto(s|10)
+exten => sw-58-NOANSWER,1,Voicemail(u${ext})
+exten => sw-58-NOANSWER,2,Goto(s|10)
+exten => sw-58-ANSWER,1,Goto(s|10)
+exten => sw-58-BUSY,1,Voicemail(b${ext})
+exten => sw-58-BUSY,2,Goto(s|10)
+exten => sw-58-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-58-DONTCALL,2,Goto(s|10)
+exten => sw-58-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-58-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_57]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-59-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_57-59)
+exten => _sw-59-.,1,Voicemail(u${ext})
+exten => _sw-59-.,2,Goto(s|10)
+exten => sw-59-NOANSWER,1,Voicemail(u${ext})
+exten => sw-59-NOANSWER,2,Goto(s|10)
+exten => sw-59-ANSWER,1,Goto(s|10)
+exten => sw-59-BUSY,1,Voicemail(b${ext})
+exten => sw-59-BUSY,2,Goto(s|10)
+exten => sw-59-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-59-DONTCALL,2,Goto(s|10)
+exten => sw-59-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-59-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_58]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-60-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_58-60)
+exten => _sw-60-.,1,Voicemail(u${ext})
+exten => _sw-60-.,2,Goto(s|10)
+exten => sw-60-NOANSWER,1,Voicemail(u${ext})
+exten => sw-60-NOANSWER,2,Goto(s|10)
+exten => sw-60-ANSWER,1,Goto(s|10)
+exten => sw-60-BUSY,1,Voicemail(b${ext})
+exten => sw-60-BUSY,2,Goto(s|10)
+exten => sw-60-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-60-DONTCALL,2,Goto(s|10)
+exten => sw-60-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-60-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_59]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-61-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_59-61)
+exten => _sw-61-.,1,Voicemail(u${ext})
+exten => _sw-61-.,2,Goto(s|10)
+exten => sw-61-NOANSWER,1,Voicemail(u${ext})
+exten => sw-61-NOANSWER,2,Goto(s|10)
+exten => sw-61-ANSWER,1,Goto(s|10)
+exten => sw-61-BUSY,1,Voicemail(b${ext})
+exten => sw-61-BUSY,2,Goto(s|10)
+exten => sw-61-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-61-DONTCALL,2,Goto(s|10)
+exten => sw-61-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-61-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_60]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-62-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_60-62)
+exten => _sw-62-.,1,Voicemail(u${ext})
+exten => _sw-62-.,2,Goto(s|10)
+exten => sw-62-NOANSWER,1,Voicemail(u${ext})
+exten => sw-62-NOANSWER,2,Goto(s|10)
+exten => sw-62-ANSWER,1,Goto(s|10)
+exten => sw-62-BUSY,1,Voicemail(b${ext})
+exten => sw-62-BUSY,2,Goto(s|10)
+exten => sw-62-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-62-DONTCALL,2,Goto(s|10)
+exten => sw-62-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-62-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_61]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-63-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_61-63)
+exten => _sw-63-.,1,Voicemail(u${ext})
+exten => _sw-63-.,2,Goto(s|10)
+exten => sw-63-NOANSWER,1,Voicemail(u${ext})
+exten => sw-63-NOANSWER,2,Goto(s|10)
+exten => sw-63-ANSWER,1,Goto(s|10)
+exten => sw-63-BUSY,1,Voicemail(b${ext})
+exten => sw-63-BUSY,2,Goto(s|10)
+exten => sw-63-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-63-DONTCALL,2,Goto(s|10)
+exten => sw-63-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-63-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_62]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-64-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_62-64)
+exten => _sw-64-.,1,Voicemail(u${ext})
+exten => _sw-64-.,2,Goto(s|10)
+exten => sw-64-NOANSWER,1,Voicemail(u${ext})
+exten => sw-64-NOANSWER,2,Goto(s|10)
+exten => sw-64-ANSWER,1,Goto(s|10)
+exten => sw-64-BUSY,1,Voicemail(b${ext})
+exten => sw-64-BUSY,2,Goto(s|10)
+exten => sw-64-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-64-DONTCALL,2,Goto(s|10)
+exten => sw-64-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-64-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_63]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-65-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_63-65)
+exten => _sw-65-.,1,Voicemail(u${ext})
+exten => _sw-65-.,2,Goto(s|10)
+exten => sw-65-NOANSWER,1,Voicemail(u${ext})
+exten => sw-65-NOANSWER,2,Goto(s|10)
+exten => sw-65-ANSWER,1,Goto(s|10)
+exten => sw-65-BUSY,1,Voicemail(b${ext})
+exten => sw-65-BUSY,2,Goto(s|10)
+exten => sw-65-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-65-DONTCALL,2,Goto(s|10)
+exten => sw-65-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-65-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_64]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-66-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_64-66)
+exten => _sw-66-.,1,Voicemail(u${ext})
+exten => _sw-66-.,2,Goto(s|10)
+exten => sw-66-NOANSWER,1,Voicemail(u${ext})
+exten => sw-66-NOANSWER,2,Goto(s|10)
+exten => sw-66-ANSWER,1,Goto(s|10)
+exten => sw-66-BUSY,1,Voicemail(b${ext})
+exten => sw-66-BUSY,2,Goto(s|10)
+exten => sw-66-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-66-DONTCALL,2,Goto(s|10)
+exten => sw-66-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-66-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_65]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-67-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_65-67)
+exten => _sw-67-.,1,Voicemail(u${ext})
+exten => _sw-67-.,2,Goto(s|10)
+exten => sw-67-NOANSWER,1,Voicemail(u${ext})
+exten => sw-67-NOANSWER,2,Goto(s|10)
+exten => sw-67-ANSWER,1,Goto(s|10)
+exten => sw-67-BUSY,1,Voicemail(b${ext})
+exten => sw-67-BUSY,2,Goto(s|10)
+exten => sw-67-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-67-DONTCALL,2,Goto(s|10)
+exten => sw-67-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-67-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_66]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-68-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_66-68)
+exten => _sw-68-.,1,Voicemail(u${ext})
+exten => _sw-68-.,2,Goto(s|10)
+exten => sw-68-NOANSWER,1,Voicemail(u${ext})
+exten => sw-68-NOANSWER,2,Goto(s|10)
+exten => sw-68-ANSWER,1,Goto(s|10)
+exten => sw-68-BUSY,1,Voicemail(b${ext})
+exten => sw-68-BUSY,2,Goto(s|10)
+exten => sw-68-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-68-DONTCALL,2,Goto(s|10)
+exten => sw-68-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-68-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_67]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-69-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_67-69)
+exten => _sw-69-.,1,Voicemail(u${ext})
+exten => _sw-69-.,2,Goto(s|10)
+exten => sw-69-NOANSWER,1,Voicemail(u${ext})
+exten => sw-69-NOANSWER,2,Goto(s|10)
+exten => sw-69-ANSWER,1,Goto(s|10)
+exten => sw-69-BUSY,1,Voicemail(b${ext})
+exten => sw-69-BUSY,2,Goto(s|10)
+exten => sw-69-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-69-DONTCALL,2,Goto(s|10)
+exten => sw-69-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-69-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_68]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-70-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_68-70)
+exten => _sw-70-.,1,Voicemail(u${ext})
+exten => _sw-70-.,2,Goto(s|10)
+exten => sw-70-NOANSWER,1,Voicemail(u${ext})
+exten => sw-70-NOANSWER,2,Goto(s|10)
+exten => sw-70-ANSWER,1,Goto(s|10)
+exten => sw-70-BUSY,1,Voicemail(b${ext})
+exten => sw-70-BUSY,2,Goto(s|10)
+exten => sw-70-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-70-DONTCALL,2,Goto(s|10)
+exten => sw-70-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-70-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_69]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-71-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_69-71)
+exten => _sw-71-.,1,Voicemail(u${ext})
+exten => _sw-71-.,2,Goto(s|10)
+exten => sw-71-NOANSWER,1,Voicemail(u${ext})
+exten => sw-71-NOANSWER,2,Goto(s|10)
+exten => sw-71-ANSWER,1,Goto(s|10)
+exten => sw-71-BUSY,1,Voicemail(b${ext})
+exten => sw-71-BUSY,2,Goto(s|10)
+exten => sw-71-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-71-DONTCALL,2,Goto(s|10)
+exten => sw-71-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-71-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_70]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-72-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_70-72)
+exten => _sw-72-.,1,Voicemail(u${ext})
+exten => _sw-72-.,2,Goto(s|10)
+exten => sw-72-NOANSWER,1,Voicemail(u${ext})
+exten => sw-72-NOANSWER,2,Goto(s|10)
+exten => sw-72-ANSWER,1,Goto(s|10)
+exten => sw-72-BUSY,1,Voicemail(b${ext})
+exten => sw-72-BUSY,2,Goto(s|10)
+exten => sw-72-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-72-DONTCALL,2,Goto(s|10)
+exten => sw-72-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-72-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_71]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-73-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_71-73)
+exten => _sw-73-.,1,Voicemail(u${ext})
+exten => _sw-73-.,2,Goto(s|10)
+exten => sw-73-NOANSWER,1,Voicemail(u${ext})
+exten => sw-73-NOANSWER,2,Goto(s|10)
+exten => sw-73-ANSWER,1,Goto(s|10)
+exten => sw-73-BUSY,1,Voicemail(b${ext})
+exten => sw-73-BUSY,2,Goto(s|10)
+exten => sw-73-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-73-DONTCALL,2,Goto(s|10)
+exten => sw-73-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-73-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_72]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-74-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_72-74)
+exten => _sw-74-.,1,Voicemail(u${ext})
+exten => _sw-74-.,2,Goto(s|10)
+exten => sw-74-NOANSWER,1,Voicemail(u${ext})
+exten => sw-74-NOANSWER,2,Goto(s|10)
+exten => sw-74-ANSWER,1,Goto(s|10)
+exten => sw-74-BUSY,1,Voicemail(b${ext})
+exten => sw-74-BUSY,2,Goto(s|10)
+exten => sw-74-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-74-DONTCALL,2,Goto(s|10)
+exten => sw-74-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-74-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten_73]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-75-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten_73-75)
+exten => _sw-75-.,1,Voicemail(u${ext})
+exten => _sw-75-.,2,Goto(s|10)
+exten => sw-75-NOANSWER,1,Voicemail(u${ext})
+exten => sw-75-NOANSWER,2,Goto(s|10)
+exten => sw-75-ANSWER,1,Goto(s|10)
+exten => sw-75-BUSY,1,Voicemail(b${ext})
+exten => sw-75-BUSY,2,Goto(s|10)
+exten => sw-75-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-75-DONTCALL,2,Goto(s|10)
+exten => sw-75-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-75-TORTURE,2,Goto(s|10)
+
+
+[macro-std-priv-exten]
+exten => s,1,Set(dev=${ARG1})
+exten => s,2,Set(ext=${ARG2})
+exten => s,3,Set(timeout=${ARG3})
+exten => s,4,Set(opts=${ARG4})
+exten => s,5,Set(torcont=${ARG5})
+exten => s,6,Set(dontcont=${ARG6})
+exten => s,7,Dial(${dev}|${timeout}|${opts})
+exten => s,8,NoOp(${DIALSTATUS} was chosen)
+exten => s,9,Goto(sw-76-${DIALSTATUS}|1)
+exten => s,10,NoOp(Finish switch-std-priv-exten-76)
+exten => _sw-76-.,1,Voicemail(u${ext})
+exten => _sw-76-.,2,Goto(s|10)
+exten => sw-76-NOANSWER,1,Voicemail(u${ext})
+exten => sw-76-NOANSWER,2,Goto(s|10)
+exten => sw-76-ANSWER,1,Goto(s|10)
+exten => sw-76-BUSY,1,Voicemail(b${ext})
+exten => sw-76-BUSY,2,Goto(s|10)
+exten => sw-76-DONTCALL,1,Goto(${dontcont}|s|begin)
+exten => sw-76-DONTCALL,2,Goto(s|10)
+exten => sw-76-TORTURE,1,Goto(${torcont}|s|begin)
+exten => sw-76-TORTURE,2,Goto(s|10)
+
+
+[macro-fillcidname]
+exten => s,1,GotoIf($["${CALLERID(number)}" = "" ]?2:3)
+exten => s,2,Goto(13)
+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(number)})=${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,NoOp(End of Macro fillcidname-s)
+
+
+[macro-ciddial]
+exten => s,1,Set(dialnum=${ARG1})
+exten => s,2,Set(lookup=${ARG2})
+exten => s,3,Set(waittime=${ARG3})
+exten => s,4,Set(dialopts=${ARG4})
+exten => s,5,Set(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)
+
+
+[macro-ciddial3]
+exten => s,1,Set(dialnum=${ARG1})
+exten => s,2,Set(lookup=${ARG2})
+exten => s,3,Set(waittime=${ARG3})
+exten => s,4,Set(dialopts=${ARG4})
+exten => s,5,Set(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)
+
+
+[macro-ciddial2]
+exten => s,1,Set(dialnum=${ARG1})
+exten => s,2,Set(lookup=${ARG2})
+exten => s,3,Set(waittime=${ARG3})
+exten => s,4,Set(dialopts=${ARG4})
+exten => s,5,Set(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)
+
+
+[macro-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()
+
+
+[macro-callerid-bad]
+exten => s,1,Set(mycid=$[${CALLERID(num)}:"1([0-9]+)"])
+exten => s,2,Set(CALLERID(num)=${mycid})
+exten => s,3,Wait(0)
+
+
+[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,Macro(std-priv-exten|Zap/3r1&Zap/5r1|2|25|mtw|telemarket|telemarket)
+exten => s,8,Hangup()
+exten => s,9,Goto(104)
+exten => s,10,NoOp(Finish if-homeline-87)
+exten => s,11(postPriv),Macro(fillcidname)
+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,Macro(callerid-bad)
+exten => s,18,NoOp(Finish if-homeline-88)
+exten => s,19,GotoIf($["${CALLERID(num)}"  = "7077577685" & "${CALLERID(name)}" : "Privacy Manager" ]?20:21)
+exten => s,20,Macro(callerid-liar)
+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}|1)
+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 => s,104,NoOp(End of Extension s)
+exten => _sw-92-.,1,Set(z=${direct}-2)
+exten => _sw-92-.,2,Goto(homeline-kids|${z}|1)
+exten => sw-92-2,1,Macro(std-priv-exten|Zap/3r1&Zap/5r1|2|25|mtw|telemarket|telemarket)
+exten => sw-92-2,2,Goto(s|loopback)
+exten => sw-92-1,1,Macro(std-priv-exten|Zap/6r3&Sip/murf|1|25|mpA(beep)tw|telemarket|telemarket)
+exten => sw-92-1,2,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,Macro(std-priv-exten|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,Macro(std-priv-exten|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,Macro(std-priv-exten|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,Macro(std-priv-exten|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,Macro(std-priv-exten|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,Macro(std-priv-exten|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,Macro(std-priv-exten|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,Macro(std-priv-exten|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,Macro(fillcidname)
+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,Macro(std-priv-exten|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,Macro(ciddial|${EXTEN:1}|${EXTEN:2}|30|TW|Zap/1)
+exten => _9754XXXX,1,Macro(ciddial|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9574XXXX,1,Macro(ciddial|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9202XXXX,1,Macro(ciddial|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9219XXXX,1,Macro(ciddial|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9254XXXX,1,Macro(ciddial|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9716XXXX,1,Macro(ciddial|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9NXXXXXX,1,Macro(ciddial|1707${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9011.,1,Macro(ciddial|${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,Macro(ciddial2|${EXTEN:1}|${EXTEN:2}|30|TW|Zap/1)
+exten => _9754XXXX,1,Macro(ciddial2|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9574XXXX,1,Macro(ciddial2|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9202XXXX,1,Macro(ciddial2|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9219XXXX,1,Macro(ciddial2|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9254XXXX,1,Macro(ciddial2|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9716XXXX,1,Macro(ciddial2|${EXTEN:1}|707${EXTEN:1}|30|TW|Zap/1)
+exten => _9NXXXXXX,1,Macro(ciddial2|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,Macro(ciddial|${EXTEN:1}#|${EXTEN:2}|30|TW|Zap/2)
+exten => _8754XXXX,1,Macro(ciddial|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/2)
+exten => _8574XXXX,1,Macro(ciddial|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/2)
+exten => _8202XXXX,1,Macro(ciddial|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/2)
+exten => _8219XXXX,1,Macro(ciddial|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/2)
+exten => _8254XXXX,1,Macro(ciddial|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/2)
+exten => _8716XXXX,1,Macro(ciddial|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/2)
+exten => _8NXXXXXX,1,Macro(ciddial|${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,Macro(ciddial3|${EXTEN:1}#|${EXTEN:2}|30|TW|Zap/1)
+exten => _8754XXXX,1,Macro(ciddial3|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/1)
+exten => _8574XXXX,1,Macro(ciddial3|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/1)
+exten => _8202XXXX,1,Macro(ciddial3|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/1)
+exten => _8219XXXX,1,Macro(ciddial3|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/1)
+exten => _8254XXXX,1,Macro(ciddial3|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/1)
+exten => _8716XXXX,1,Macro(ciddial3|${EXTEN:1}#|707${EXTEN:1}|30|TW|Zap/1)
+exten => _8NXXXXXX,1,Macro(ciddial3|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,Macro(std-priv-exten|Zap/3&Zap/5|2|35|mtw|telemarket|telemarket)
+exten => 1,2,Goto(s|loopback)
+exten => 2,1,Macro(std-priv-exten|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,Macro(ciddial|1${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707219XXXX,1,Macro(ciddial|1${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707254XXXX,1,Macro(ciddial|1${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707716XXXX,1,Macro(ciddial|1${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707754XXXX,1,Macro(ciddial|${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707574XXXX,1,Macro(ciddial|${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _NXXNXXXXXX,1,Macro(ciddial|1${EXTEN}|${EXTEN}|30|TW|Zap/1)
+exten => _1NXXNXXXXXX,1,Macro(ciddial|${EXTEN}|${EXTEN:1}|30|TW|Zap/1)
+exten => _754XXXX,1,Macro(ciddial|${EXTEN}|707${EXTEN}|30|TW|Zap/1)
+exten => _574XXXX,1,Macro(ciddial|${EXTEN}|707${EXTEN}|30|TW|Zap/1)
+exten => _NXXXXXX,1,Macro(ciddial|1707${EXTEN}|707${EXTEN}|30|TW|Zap/1)
+exten => _911,1,Macro(ciddial|911|911|30|TW|Zap/1)
+exten => _411,1,Macro(ciddial|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,Macro(ciddial|1${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707219XXXX,1,Macro(ciddial|1${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707254XXXX,1,Macro(ciddial|1${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707716XXXX,1,Macro(ciddial|1${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707754XXXX,1,Macro(ciddial|${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707574XXXX,1,Macro(ciddial|${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _NXXNXXXXXX,1,Macro(ciddial|1${EXTEN}|${EXTEN}|30|TW|Zap/1)
+exten => _1NXXNXXXXXX,1,Macro(ciddial|${EXTEN}|${EXTEN:1}|30|TW|Zap/1)
+exten => _754XXXX,1,Macro(ciddial|${EXTEN}|707${EXTEN}|30|TW|Zap/1)
+exten => _574XXXX,1,Macro(ciddial|${EXTEN}|707${EXTEN}|30|TW|Zap/1)
+exten => _NXXXXXX,1,Macro(ciddial|1707${EXTEN}|707${EXTEN}|30|TW|Zap/1)
+exten => 911,1,Macro(ciddial|911|911|30|TW|Zap/1)
+exten => 411,1,Macro(ciddial|411|411|30|TW|Zap/1)
+
+
+[fromSeanUniden]
+include => parkedcalls
+exten => 21,1,Dial(IAX2/seaniax|20|T)
+exten => _707202XXXX,1,Macro(ciddial|${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707219XXXX,1,Macro(ciddial|${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707254XXXX,1,Macro(ciddial|${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707716XXXX,1,Macro(ciddial|${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707754XXXX,1,Macro(ciddial|${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _707574XXXX,1,Macro(ciddial|${EXTEN:3}|${EXTEN}|30|TW|Zap/1)
+exten => _NXXNXXXXXX,1,Macro(ciddial|1${EXTEN}|${EXTEN}|30|TW|Zap/1)
+exten => _1NXXNXXXXXX,1,Macro(ciddial|${EXTEN}|${EXTEN:1}|30|TW|Zap/1)
+exten => _754XXXX,1,Macro(ciddial|${EXTEN}|707${EXTEN}|30|TW|Zap/1)
+exten => _574XXXX,1,Macro(ciddial|${EXTEN}|707${EXTEN}|30|TW|Zap/1)
+exten => _NXXXXXX,1,Macro(ciddial|1707${EXTEN}|707${EXTEN}|30|TW|Zap/1)
+exten => 911,1,Macro(ciddial|911|911|30|TW|Zap/1)
+exten => 411,1,Macro(ciddial|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)
index b8772cd..9209f0a 100755 (executable)
@@ -37,4 +37,20 @@ for i in ael-ntest*; do
        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