>You could use the existing ActionList GUI page to accomplish this... >for example I have an action key of "vacation" into which I enter >the value "YYYY-MM-DD to YYYY-MM-DD" then my dialplan parses this to >determine wither to send caller to voicemail after only one ring, or >to keep ringing as normal. In my dialplan I have... > >[check-vacation] >exten = s,1,Set(ONVACATION=0) >exten = s,n,GotoIf(${DB_EXISTS(actionlist/vacation)}?vacationstring) >exten = s,n,Return() >exten = s,n(vacationstring),Set(todaydate=${STRFTIME(${EPOCH},,%F)}) >exten = s,n,Set(vacstart=${CUT(DB_RESULT, ,1)}) >exten = s,n,Set(vacend=${CUT(DB_RESULT, ,3)}) >exten = >s,n,GotoIf($[("${vacstart}"<="${todaydate}")&("${todaydate}"<="${vacend}")]?onvacation) >exten = s,n,return() >exten = s,n(onvacation),Set(ONVACATION=1) >exten = s,n,Log(NOTICE,Incoming call while on Vacation -- today is >${todaydate} Vacation from ${vacstart} to ${vacend}) >exten = s,n,return() > > >Using the existing GUI you could enter a key of "officehours" and >value "HH:MM to HH:MM" etc etc. >Certainly not as user friendly as a dedicated GUI page, but if the >data doesn't change much then it may be good enough. > >David
And you can allow the "staff" user access to the ActionList-tab. >On Wed, Sep 7, 2011 at 10:13 AM, Graham S. Jarvis ><<mailto:gsjar...@pt.lu>gsjar...@pt.lu> wrote: > >Hello All! > >I need to make a very specific modification to AstLinux and need to >find someone >interested in doing it for me. >The code can go back into the community but I doubt if it will be of much >general use - other than perhaps a good test for the GUI "add-on" idea. > >Here's a brief outline: > >A new GUI page is required which allows an admin user (.htaccess >passwd etc) to >update the asterisk database for ActionList entries for >1) company opening hours, normal holiday dates, special holiday dates, >receptionist absence (illness), etc. >2) select which extensions are used as "Reception" during and outside office >hours etc. >3) a "panic button" that switches functionality irrelevant of the >office hours etc. > >A dialplan snippet that uses the astdb database values entered via >this GUI page >to decide where incoming calls are answered and which phone is allowed to make >outgoing pstn calls. > >A full requirements spec. is available. > >I look forward to hearing from you! > >-Graham- Michael http://www.mksolutions.info ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.