Search:
     
3CX Phone System for Windows Download the Free Edition

Asterisk func iftime

Synopsis

 Temporal Conditional: Returns the data following '?' if true else the data following ':'

Description

 IFTIME(<timespec>?[<true>][:<false>])

Times before Asterisk 1.6.2 are only accurate down to the 2-minute interval. So 12:01 is treated the same as 12:00.
Starting with 1.6.2, times are accurate down to the minute.

Notes


Return value

Returns the resulting string.

Example

 exten => s,1,Set(foo=${IFTIME(*|mon|8-15|nov?goodtime:badtime)})

See also



Created by: murf,Last modification on Mon 01 of Nov, 2010 [02:27 UTC] by JustRumours


Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

 





Search: