[asterisk-bugs] [Asterisk 0014028]: [patch] allow multi-timezone GotoIfTime & ExecIfTime

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 8 15:45:23 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14028 
====================================================================== 
Reported By:                mostyn
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14028
Category:                   Applications/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-08 05:27 CST
Last Modified:              2008-12-08 15:45 CST
====================================================================== 
Summary:                    [patch] allow multi-timezone GotoIfTime & ExecIfTime
Description: 
This is the beginnings of a patch that will allow users to optionally
specify the timezone to use in GotoIfTime and ExecIfTime calls.  
====================================================================== 

---------------------------------------------------------------------- 
 (0095981) mostyn (reporter) - 2008-12-08 15:45
 http://bugs.digium.com/view.php?id=14028#c95981 
---------------------------------------------------------------------- 
Before I re-work this, what do people think of this possible syntax?  My
examples below only mention GotoIfTime, but can be applied to ExecIfTime in
the same manner.  

Original syntax:
GotoIfTime(<times>,<weekdays>,<mdays>,<months>?[[context,]exten,]priority[:[[context,]exten,]priority])

Proposed syntax:
GotoIfTime(<times>,<weekdays>,<mdays>,<months>[,<timezone>]?[[context,]exten,]priority[:[[context,]exten,]priority])

Example use case:

[urgent-support]
exten => s,1,NoOp(Urgent: locate some support staff )

    ; this asterisk install runs on Melbourne time, so we can omit the
timezone
exten => s,n,GotoIfTime(9:00-17:00,mon-fri,*,*?melbourne-support,s,1)

    ; this state (QLD) does not have DST
exten =>
s,n,GotoIfTime(9:00-17:00,mon-fri,*,*,Australia/Brisbane?brisbane-support,s,1)

    ; this state (WA) has different start/end dates for DST
exten =>
s,n,GotoIfTime(9:00-17:00,mon-fri,*,*,Australia/Perth?perth-support,s,1)

    ; finally call mobiles- put this last to avoid unneccessarily waking
people up
exten => s,n,Goto(support-mobiles,s,1) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-08 15:45 mostyn         Note Added: 0095981                          
======================================================================




More information about the asterisk-bugs mailing list