Skip to end of metadata
Go to start of metadata

GotoIfTime()

Synopsis

Conditional Goto based on the current time.

Description

This application will set the context, extension, and priority in the channel structure based on the evaluation of the given time specification. After this application completes, the pbx engine will continue dialplan execution at the specified location in the dialplan. If the current time is within the given time specification, the channel will continue at labeliftrue. Otherwise the channel will continue at labeliffalse. If the label chosen by the condition is omitted, no jump is performed, and execution passes to the next instruction. If the target jump location is bogus, the same actions would be taken as for Goto. Further information on the time specification can be found in examples illustrating how to do time-based context includes in the dialplan.

Syntax

GotoIfTime(timesweekdaysmdaysmonths[timezone]labeliftrue:labeliffalse)
Arguments
  • condition
    • times
    • weekdays
    • mdays
    • months
    • timezone
  • destination
    • labeliftrue - Continue at labeliftrue if the condition is true. Takes the form similar to Goto() of [[context,]extension,]priority.
    • labeliffalse - Continue at labeliffalse if the condition is false. Takes the form similar to Goto() of [[context,]extension,]priority.

See Also

Import Version

This documentation was imported from Asterisk Version SVN-branch-1.8-r412821

  • No labels

3 Comments

  1. GotoIfTime(timesweekdaysmdaysmonths[ - Wrong syntax, missed comas.
      1. This page is auto-generated. The next time the documentation is generated from the XML source, any changes will be blown away.

        To correct this issue permanently, the XSLT that generates the wiki pages should be fixed:

        https://github.com/asterisk/publish-docs

        If you'd rather just file a bug in the issue tracker, that'd be fine too.