From a7d813cae7568f9c587dc994b0654d9b7384565a Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Thu, 28 May 2009 14:32:03 +0000 Subject: Remove a bunch of trailing whitespace in preparation for reformatting/cleanup. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197528 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configs/extensions.ael.sample | 380 +++++++++++++++++++++--------------------- 1 file changed, 190 insertions(+), 190 deletions(-) (limited to 'configs/extensions.ael.sample') diff --git a/configs/extensions.ael.sample b/configs/extensions.ael.sample index 21680a4db..c7720290a 100644 --- a/configs/extensions.ael.sample +++ b/configs/extensions.ael.sample @@ -19,28 +19,28 @@ // globals { - CONSOLE="Console/dsp"; // Console interface for demo - //CONSOLE=DAHDI/1 - //CONSOLE=Phone/phone0 - IAXINFO=guest; // IAXtel username/password - //IAXINFO="myuser:mypass"; - TRUNK="DAHDI/G2"; // Trunk interface - // - // Note the 'G2' in the TRUNK variable above. It specifies which group (defined - // in dahdi.conf) to dial, i.e. group 2, and how to choose a channel to use in - // the specified group. The four possible options are: - // - // g: select the lowest-numbered non-busy DAHDI channel - // (aka. ascending sequential hunt group). - // G: select the highest-numbered non-busy DAHDI channel - // (aka. descending sequential hunt group). - // r: use a round-robin search, starting at the next highest channel than last - // time (aka. ascending rotary hunt group). - // R: use a round-robin search, starting at the next lowest channel than last - // time (aka. descending rotary hunt group). - // - TRUNKMSD=1; // MSD digits to strip (usually 1 or 0) - //TRUNK=IAX2/user:pass@provider +CONSOLE="Console/dsp"; // Console interface for demo +//CONSOLE=DAHDI/1 +//CONSOLE=Phone/phone0 +IAXINFO=guest; // IAXtel username/password +//IAXINFO="myuser:mypass"; +TRUNK="DAHDI/G2"; // Trunk interface +// +// Note the 'G2' in the TRUNK variable above. It specifies which group (defined +// in dahdi.conf) to dial, i.e. group 2, and how to choose a channel to use in +// the specified group. The four possible options are: +// +// g: select the lowest-numbered non-busy DAHDI channel +// (aka. ascending sequential hunt group). +// G: select the highest-numbered non-busy DAHDI channel +// (aka. descending sequential hunt group). +// r: use a round-robin search, starting at the next highest channel than last +// time (aka. ascending rotary hunt group). +// R: use a round-robin search, starting at the next lowest channel than last +// time (aka. descending rotary hunt group). +// +TRUNKMSD=1; // MSD digits to strip (usually 1 or 0) +//TRUNK=IAX2/user:pass@provider }; // @@ -110,61 +110,61 @@ globals { // // context ael-dundi-e164-canonical { - // - // List canonical entries here - // - // 12564286000 => &ael-std-exten(6000,IAX2/foo); - // _125642860XX => Dial(IAX2/otherbox/${EXTEN:7}); +// +// List canonical entries here +// +// 12564286000 => &ael-std-exten(6000,IAX2/foo); +// _125642860XX => Dial(IAX2/otherbox/${EXTEN:7}); }; context ael-dundi-e164-customers { - // - // If you are an ITSP or Reseller, list your customers here. - // - //_12564286000 => Dial(SIP/customer1); - //_12564286001 => Dial(IAX2/customer2); +// +// If you are an ITSP or Reseller, list your customers here. +// +//_12564286000 => Dial(SIP/customer1); +//_12564286001 => Dial(IAX2/customer2); }; context ael-dundi-e164-via-pstn { - // - // If you are freely delivering calls to the PSTN, list them here - // - //_1256428XXXX => Dial(DAHDI/G2/${EXTEN:7}); // Expose all of 256-428 - //_1256325XXXX => Dial(DAHDI/G2/${EXTEN:7}); // Ditto for 256-325 +// +// If you are freely delivering calls to the PSTN, list them here +// +//_1256428XXXX => Dial(DAHDI/G2/${EXTEN:7}); // Expose all of 256-428 +//_1256325XXXX => Dial(DAHDI/G2/${EXTEN:7}); // Ditto for 256-325 }; context ael-dundi-e164-local { - // - // Context to put your dundi IAX2 or SIP user in for - // full access - // - includes { - ael-dundi-e164-canonical; - ael-dundi-e164-customers; - ael-dundi-e164-via-pstn; - }; +// +// Context to put your dundi IAX2 or SIP user in for +// full access +// +includes { +ael-dundi-e164-canonical; +ael-dundi-e164-customers; +ael-dundi-e164-via-pstn; +}; }; context ael-dundi-e164-switch { - // - // Just a wrapper for the switch - // - - switches { - DUNDi/e164; - }; +// +// Just a wrapper for the switch +// + +switches { +DUNDi/e164; +}; }; context ael-dundi-e164-lookup { - // - // Locally to lookup, try looking for a local E.164 solution - // then try DUNDi if we don't have one. - // - includes { - ael-dundi-e164-local; - ael-dundi-e164-switch; - }; - // +// +// Locally to lookup, try looking for a local E.164 solution +// then try DUNDi if we don't have one. +// +includes { +ael-dundi-e164-local; +ael-dundi-e164-switch; +}; +// }; // @@ -175,8 +175,8 @@ macro ael-dundi-e164(exten) { // // ARG1 is the extension to Dial // - goto ${exten}|1; - return; +goto ${exten}|1; +return; }; // @@ -186,7 +186,7 @@ macro ael-dundi-e164(exten) { // up, please go to www.gnophone.com or www.iaxtel.com // context ael-iaxtel700 { - _91700XXXXXXX => Dial(IAX2/${IAXINFO}@iaxtel.com/${EXTEN:1}@iaxtel); +_91700XXXXXXX => Dial(IAX2/${IAXINFO}@iaxtel.com/${EXTEN:1}@iaxtel); }; // @@ -196,91 +196,91 @@ context ael-iaxtel700 { // to be on-line or else dialing can be severly delayed. // context ael-iaxprovider { - switches { - // IAX2/user:[key]@myserver/mycontext; - }; +switches { +// IAX2/user:[key]@myserver/mycontext; +}; }; context ael-trunkint { - // - // International long distance through trunk - // - includes { - ael-dundi-e164-lookup; - }; - _9011. => { - &ael-dundi-e164(${EXTEN:4}); - Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); - }; +// +// International long distance through trunk +// +includes { +ael-dundi-e164-lookup; +}; +_9011. => { +&ael-dundi-e164(${EXTEN:4}); +Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); +}; }; context ael-trunkld { - // - // Long distance context accessed through trunk - // - includes { - ael-dundi-e164-lookup; - }; - _91NXXNXXXXXX => { - &ael-dundi-e164(${EXTEN:1}); - Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); - }; +// +// Long distance context accessed through trunk +// +includes { +ael-dundi-e164-lookup; +}; +_91NXXNXXXXXX => { +&ael-dundi-e164(${EXTEN:1}); +Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); +}; }; context ael-trunklocal { - // - // Local seven-digit dialing accessed through trunk interface - // - _9NXXXXXX => { - Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); - }; +// +// Local seven-digit dialing accessed through trunk interface +// +_9NXXXXXX => { +Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); +}; }; context ael-trunktollfree { - // - // Long distance context accessed through trunk interface - // - - _91800NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); - _91888NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); - _91877NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); - _91866NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); +// +// Long distance context accessed through trunk interface +// + +_91800NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); +_91888NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); +_91877NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); +_91866NXXXXXX => Dial(${TRUNK}/${EXTEN:${TRUNKMSD}}); }; context ael-international { - // - // Master context for international long distance - // - ignorepat => 9; - includes { - ael-longdistance; - ael-trunkint; - }; +// +// Master context for international long distance +// +ignorepat => 9; +includes { +ael-longdistance; +ael-trunkint; +}; }; context ael-longdistance { - // - // Master context for long distance - // - ignorepat => 9; - includes { - ael-local; - ael-trunkld; - }; +// +// Master context for long distance +// +ignorepat => 9; +includes { +ael-local; +ael-trunkld; +}; }; context ael-local { - // - // Master context for local, toll-free, and iaxtel calls only - // - ignorepat => 9; - includes { - ael-default; - ael-trunklocal; - ael-iaxtel700; - ael-trunktollfree; - ael-iaxprovider; - }; +// +// Master context for local, toll-free, and iaxtel calls only +// +ignorepat => 9; +includes { +ael-default; +ael-trunklocal; +ael-iaxtel700; +ael-trunktollfree; +ael-iaxprovider; +}; }; // @@ -306,69 +306,69 @@ context ael-local { macro ael-std-exten-ael( ext , dev ) { - Dial(${dev}/${ext},20); - switch(${DIALSTATUS}) { - case BUSY: - Voicemail(${ext},b); - break; - default: - Voicemail(${ext},u); - }; - catch a { - VoiceMailMain(${ext}); - return; - }; - return; +Dial(${dev}/${ext},20); +switch(${DIALSTATUS}) { +case BUSY: +Voicemail(${ext},b); +break; +default: +Voicemail(${ext},u); +}; +catch a { +VoiceMailMain(${ext}); +return; +}; +return; }; context ael-demo { - s => { - Wait(1); - Answer(); - Set(TIMEOUT(digit)=5); - Set(TIMEOUT(response)=10); +s => { +Wait(1); +Answer(); +Set(TIMEOUT(digit)=5); +Set(TIMEOUT(response)=10); restart: - Background(demo-congrats); +Background(demo-congrats); instructions: - for (x=0; ${x} < 3; x=${x} + 1) { - Background(demo-instruct); - WaitExten(); - }; - }; - 2 => { - Background(demo-moreinfo); - goto s|instructions; - }; - 3 => { - Set(LANGUAGE()=fr); - goto s|restart; - }; - 1000 => { - goto ael-default|s|1; - }; - 500 => { - Playback(demo-abouttotry); - Dial(IAX2/guest@misery.digium.com/s@default); - Playback(demo-nogo); - goto s|instructions; - }; - 600 => { - Playback(demo-echotest); - Echo(); - Playback(demo-echodone); - goto s|instructions; - }; - _1234 => &ael-std-exten-ael(${EXTEN}, "IAX2"); - 8500 => { - VoicemailMain(); - goto s|instructions; - }; - # => { - Playback(demo-thanks); - Hangup(); - }; - t => goto #|1; - i => Playback(invalid); +for (x=0; ${x} < 3; x=${x} + 1) { +Background(demo-instruct); +WaitExten(); +}; +}; +2 => { +Background(demo-moreinfo); +goto s|instructions; +}; +3 => { +Set(LANGUAGE()=fr); +goto s|restart; +}; +1000 => { +goto ael-default|s|1; +}; +500 => { +Playback(demo-abouttotry); +Dial(IAX2/guest@misery.digium.com/s@default); +Playback(demo-nogo); +goto s|instructions; +}; +600 => { +Playback(demo-echotest); +Echo(); +Playback(demo-echodone); +goto s|instructions; +}; +_1234 => &ael-std-exten-ael(${EXTEN}, "IAX2"); +8500 => { +VoicemailMain(); +goto s|instructions; +}; +# => { +Playback(demo-thanks); +Hangup(); +}; +t => goto #|1; +i => Playback(invalid); }; @@ -383,9 +383,9 @@ context ael-default { // By default we include the demo. In a production system, you // probably don't want to have the demo there. - includes { - ael-demo; - }; +includes { +ael-demo; +}; // // Extensions like the two below can be used for FWD, Nikotel, sipgate etc. // Note that you must have a [sipprovider] section in sip.conf whereas -- cgit v1.2.3