Asterisk cmd GotoIfTime

提供: VoIP-Info.jp
移動先: 案内検索
 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]
...