[asterisk-gui] macro-stdexten problem

Matt Sales msales at gmail.com
Wed Aug 20 15:08:21 CDT 2008


I'm having a problem with the 2.0 GUI and the way it writes back the
stdexten macro.  This is my current macro:

[macro-stdexten]
exten = s,1,GotoIf($["${DB_EXISTS(${ARG1}/fwd)}" = "1"]?s-FORWARD,1)
exten = s,n,Dial(${ARG2},20)
exten = s,n,Goto(s-${DIALSTATUS},1)
exten = s-NOANSWER,1,Voicemail(${ARG1},u)
exten = s-NOANSWER,2,Goto(default,s,1)
exten = s-BUSY,1,Voicemail(${ARG1},b)
exten = s-FORWARD,1,macro(trunkdial,${trunk_1}/${DB(${ARG1}/fwd)})
exten = s-FORWARD,n,Goto(s-${DIALSTATUS},1)
exten = s-BUSY,2,Goto(default,s,1)
exten = _s-.,1,Goto(s-NOANSWER,1)
exten = a,1,GoTo(voicemenu-custom-1,s,1)
exten = o,1,GoTo(operator,0,1)
exten = s,n,Hangup()

When I make a change to the GUI it is adding the below macro which is
causing problems.

[macro-stdexten]
*exten = s,1,Dial(${ARG2},20)*
exten = s,1,GotoIf($["${DB_EXISTS(${ARG1}/fwd)}" = "1"]?s-FORWARD,1)
exten = s,n,Dial(${ARG2},20)
exten = s,n,Goto(s-${DIALSTATUS},1)
exten = s-NOANSWER,1,Voicemail(${ARG1},u)
exten = s-NOANSWER,2,Goto(default,s,1)
exten = s-BUSY,1,Voicemail(${ARG1},b)
exten = s-FORWARD,1,macro(trunkdial,${trunk_1}/${DB(${ARG1}/fwd)})
exten = s-FORWARD,n,Goto(s-${DIALSTATUS},1)
exten = s-BUSY,2,Goto(default,s,1)
exten = _s-.,1,Goto(s-NOANSWER,1)
exten = a,1,GoTo(voicemenu-custom-1,s,1)
exten = o,1,GoTo(operator,0,1)
exten = s,n,Hangup()

Can anything be done to correct this?  It looks like this is coming form
preferences.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-gui/attachments/20080820/465a612f/attachment.htm 


More information about the asterisk-gui mailing list