<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>Oguzhan,<br>The GUI expects the macro-stdexten to behave in a specific manner and rewrites the macro if it does not match what is expected. This is both a good and a bad thing. The bad being the loss of flexibility in which you are experiencing. <br><br>Fortunately, you can easily modify the GUI to resolve your issue. In config/js/pbx.js lies the function that checks and rewrites the macro. If you change the 'macro-stdexten' member of the check_For_Contexts object to what you want, the GUI will write and keep your macro mods. The 'macro-stdexten' object definition looks like this (starting around line 34 of the file):<br><br> 'macro-stdexten' : [<br> 'exten=s,1,Set(__DYNAMIC_FEATURES=${FEATURES})',<br> 'exten=s,2,GotoIf($["${FOLLOWME_${ARG1}}" = "1"]?5:3)',<br> 'exten=s,3,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})',<br> 'exten=s,4,Goto(s-${DIALSTATUS},1)',<br> 'exten=s,5,Macro(stdexten-followme,${ARG1},${ARG2})',<br> 'exten=s-NOANSWER,1,Voicemail(${ARG1},u)',<br> 'exten=s-NOANSWER,2,Goto(default,s,1)',<br> 'exten=s-BUSY,1,Voicemail(${ARG1},b)',<br> 'exten=s-BUSY,2,Goto(default,s,1)',<br> 'exten=_s-.,1,Goto(s-NOANSWER,1)',<br> 'exten=a,1,VoicemailMain(${ARG1})'<br> ],<br><br>Hope this helps!<br><br>-- <br>Ryan Brindley <br>Digium, Inc. | Software Developer <br>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA <br>main: +1 256-428-6000 fax: +1 256-864-0464 <br>Check us out at: http://digium.com & http://asterisk.org<br><br>----- Original Message -----<br>From: "Oguzhan Kayhan" <oguzhank@bilkent.edu.tr><br>To: asterisk-gui@lists.digium.com<br>Sent: Tuesday, July 21, 2009 1:40:25 AM GMT -06:00 US/Canada Central<br>Subject: [asterisk-gui] callforward with asterisk-gui.problem with stdexten<br><br>Hello, i sent that mail to asterisk group but it seems it is much more<br>interested within this group.<br><br>My asterisk and ast-gui version as follows:<br>Asterisk/1.6.0.9<br>Asterisk GUI-version : SVN-branch-2.0-r4760<br><br>I am trying to enable call forwarding on asterisk 1.6 with<br>asterisk-gui<br><br>If i set my stdexten as follows (with the lines i marked) everything seems<br>like working.<br><br>But if i make any change on asterisk-gui and apply it.. it recreates the<br>macro-stdexten and deletes my configuration regarding to it.<br>So where should i add my call-forward configuration???<br>Where am i making a mistake??<br><br>And for sure, it it in roadplan to add call-forwarding/dnd or similar<br>features to asterisk-gui ???<br><br>[macro-stdexten]<br>exten = s,1,Set(__DYNAMIC_FEATURES=${FEATURES})<br>exten = s,2,GotoIf($["${FOLLOWME_${ARG1}}" = "1"]?5:3)<br>;----adding starts from here----------------------------<br>exten = s,3,Set(temp=${DB(CFIM/${ARG1})})<br>exten = s,4,Dial(Local/${temp}@default/n) ; Unconditional forward<br>exten = s,5,Set(DB(lastcaller/${ARG1})=${CALLERID(num)}) ; Note the last<br>caller<br>;------ends here------------------------<br>exten = s,6,Dial(${ARG2},${RINGTIME},${DIALOPTIONS})<br>exten = s,7,Goto(s-${DIALSTATUS},1)<br>exten = s,8,Macro(stdexten-followme,${ARG1},${ARG2})<br>exten = s-NOANSWER,1,Voicemail(${ARG1},u)<br>exten = s-NOANSWER,2,Goto(default,s,1)<br>exten = s-BUSY,1,Voicemail(${ARG1},b)<br>exten = s-BUSY,2,Goto(default,s,1)<br>exten = _s-.,1,Goto(s-NOANSWER,1)<br>exten = a,1,VoicemailMain(${ARG1})<br><br><br><br><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by http://www.api-digital.com--<br><br>asterisk-gui mailing list<br>To UNSUBSCRIBE or update options visit:<br> http://lists.digium.com/mailman/listinfo/asterisk-gui<br></div></body></html>