[Aaug] Over diring t,i extensions in macros
John Mullinix
john at cohutta.com
Tue Feb 13 16:44:42 EST 2007
Why don't you do this with DISA. Set the incoming route to match your CID.
Enter the password and boom, you are from-internal.
John Mullinix
www.cohutta.com
john at cohutta.com
706-632-3343
-----Original Message-----
From: aaug-bounces at atlaug.com [mailto:aaug-bounces at atlaug.com] On Behalf Of
Christopher Fowler
Sent: Tuesday, February 13, 2007 4:21 PM
To: Aaug at atlaug.com
Subject: [Aaug] Over diring t,i extensions in macros
I'm at the point where I'm playing with the config trying to see what I
can do.
I'm creating an extension (8) that will give the user 3 chances to enter
a valid extension. I thought I'd try it with macros but can't seem to
override what I've initially configured for i,t extestions
[internal]
exten => 8,1,Macro(internalsystemaccess)
[macro-internalsystemaccess]
exten => s,1,Answer()
exten => s,2,Wait(1)
exten => s,3,Set(count=1)
exten => s,4,While($[${count} < 3])
exten => s,5,Set(count=$[${count} + 1])
exten => s,6,Background(enter-ext-of-person)
exten => s,7,Set(TIMEOUT(digit)=2)
exten => s,8,Set(TIMEOUT(response)=5)
exten => s,9,EndWhile
exten => s,10,Hangup()
exten => i,1,Playback(invalid)
exten => i,2,Goto(s,3)
exten => t,1,Goto(s,3)[attendant]
exten => s,1,Answer()
exten => s,2,Wait(2)
exten => s,3,Set(count=1)
exten => s,4,While($[${count} < 3])
exten => s,5,Set(count=$[${count} + 1])
exten => s,6,Background(intro)
exten => s,7,Set(TIMEOUT(digit)=2)
exten => s,8,Set(TIMEOUT(response)=5)
exten => s,9,EndWhile
exten => s,10,Hangup()
exten => 0,1,Goto(incoming,0,1)
; Ring Groups
exten => 1,1,Goto(incoming,1,1)
exten => 2,1,Goto(incoming,2,1)
exten => 3,1,Goto(incoming,3,1)
; Internal Access
exten => 8,1,Goto(incoming,8,1)
; Company Directory
exten => 9,1,Goto(incoming,9,1)
exten => i,1,Playback(invalid)
exten => i,2,Goto(s,3)
exten => t,1,Goto(s,3)
What seems to be happening is that the attendant code is getting
executed. Instead of looping back around and playing "enter-ext-of-
preson" it is playing "intro"
The idea is that I can dial into the FXO from anywhere and hit 8. I
then enter a password and I've moved from [incoming] to [internal]
contexts. Password is so I'm not paying for LD :)
I'm getting tired of typing so I'm starting to experiment what I can do
with macros.
_______________________________________________
Aaug mailing list
Aaug at atlaug.com
http://lists.atlaug.com/mailman/listinfo/aaug
More information about the Aaug
mailing list