Oguzhan Kayhan
2009-Jul-20 14:13 UTC
[asterisk-users] callforward with asterisk-gui.problem with stdexten
Hello, i am trying to enable call forwarding on asterisk 1.6 with asterisk-gui If i set my stdexten as follows (with the lines i marked) everything seems like working. But if i make any change on asterisk-gui and apply it.. it recreates the macro-stdexten and deletes my configuration regarding to it. So where should i add my call-forward configuration??? Where am i making a mistake?? [macro-stdexten] exten = s,1,Set(__DYNAMIC_FEATURES=${FEATURES}) exten = s,2,GotoIf($["${FOLLOWME_${ARG1}}" = "1"]?5:3) ----adding starts from here---------------------------- exten = s,3,Set(temp=${DB(CFIM/${ARG1})}) exten = s,4,Dial(Local/${temp}@default/n) ; Unconditional forward exten = s,5,Set(DB(lastcaller/${ARG1})=${CALLERID(num)}) ; Note the last caller ------ends here------------------------ exten = s,6,Dial(${ARG2},${RINGTIME},${DIALOPTIONS}) exten = s,7,Goto(s-${DIALSTATUS},1) exten = s,8,Macro(stdexten-followme,${ARG1},${ARG2}) exten = s-NOANSWER,1,Voicemail(${ARG1},u) exten = s-NOANSWER,2,Goto(default,s,1) exten = s-BUSY,1,Voicemail(${ARG1},b) exten = s-BUSY,2,Goto(default,s,1) exten = _s-.,1,Goto(s-NOANSWER,1) exten = a,1,VoicemailMain(${ARG1})
Oguzhan Kayhan
2009-Jul-20 14:27 UTC
[asterisk-users] callforward with asterisk-gui.problem with stdexten
Hello, i am trying to enable call forwarding on asterisk 1.6 with asterisk-gui If i set my stdexten as follows (with the lines i marked) everything seems like working. But if i make any change on asterisk-gui and apply it.. it recreates the macro-stdexten and deletes my configuration regarding to it. So where should i add my call-forward configuration??? Where am i making a mistake?? [macro-stdexten] exten = s,1,Set(__DYNAMIC_FEATURES=${FEATURES}) exten = s,2,GotoIf($["${FOLLOWME_${ARG1}}" = "1"]?5:3) ----adding starts from here---------------------------- exten = s,3,Set(temp=${DB(CFIM/${ARG1})}) exten = s,4,Dial(Local/${temp}@default/n) ; Unconditional forward exten = s,5,Set(DB(lastcaller/${ARG1})=${CALLERID(num)}) ; Note the last caller ------ends here------------------------ exten = s,6,Dial(${ARG2},${RINGTIME},${DIALOPTIONS}) exten = s,7,Goto(s-${DIALSTATUS},1) exten = s,8,Macro(stdexten-followme,${ARG1},${ARG2}) exten = s-NOANSWER,1,Voicemail(${ARG1},u) exten = s-NOANSWER,2,Goto(default,s,1) exten = s-BUSY,1,Voicemail(${ARG1},b) exten = s-BUSY,2,Goto(default,s,1) exten = _s-.,1,Goto(s-NOANSWER,1) exten = a,1,VoicemailMain(${ARG1})