「Asterisk cmd GotoIfTime」の版間の差分

提供: VoIP-Info.jp
移動先: 案内検索
 
22行目: 22行目:
 
         <monthname> = "jan" | "feb" | "mar" | "apr" | "may" | "jun" | "jul" | "aug" | "sep" | "oct" | "nov" | "dec"
 
         <monthname> = "jan" | "feb" | "mar" | "apr" | "may" | "jun" | "jul" | "aug" | "sep" | "oct" | "nov" | "dec"
  
 +
[incoming]
 
  exten => 3000,1,GotoIfTime(9:00-17:00,mon-fri,*,*?open,s,1)  
 
  exten => 3000,1,GotoIfTime(9:00-17:00,mon-fri,*,*?open,s,1)  
  exten => 3000,1,Goto(close,s,1)
+
  exten => 3000,n,Goto(close,s,1)
 +
 +
[open]
 +
...
 +
[close]
 +
...

2010年3月10日 (水) 12:39時点における最新版

 GotoIfTime(
<time range>|<days of week>|<days of month>|<months> 
        <time range>= <hour>':'<minute>'-'<hour>':'<minute>  
                      | "*" 
        <days of week> = <dayname> 
                      |  <dayname>'-'<dayname> 
                      | "*" 
        <dayname> = "sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat" 
        <days of month> = <daynum> 
                       |  <daynum>'-'<daynum> 
                       | "*" 
        <daynum> = a number, 1 to 31, inclusive 
        <hour> = a number, 0 to 23, inclusive 
        <minute> = a number, 0 to 59, inclusive 
        <months> = <monthname> 
                   | <monthname>'-'<monthname> 
                   | "*" 
        <monthname> = "jan" | "feb" | "mar" | "apr" | "may" | "jun" | "jul" | "aug" | "sep" | "oct" | "nov" | "dec"
[incoming]
exten => 3000,1,GotoIfTime(9:00-17:00,mon-fri,*,*?open,s,1) 
exten => 3000,n,Goto(close,s,1)

[open]
...
[close]
...