The description from asterisk for this is GotoIf(condition?[labeliftrue]:[labeliffalse]), however for me (being somewhat new to asterisk, and not fully understanding all the little bits, this was a bit confusing. A better way of describing this, at least for those of use new to asterisk, might be GotoIf(condition?[context,priority,labeliftrue]:[context,priority,labeliffalse]).
I have not used labels in the dial plan before, and when starting out with this application I read label to be a context. This lead me to write my dial plan similar to this..

[default]
exten => 100,1,GoToIf(condition?true,false)
[true]
exten => s,1,...
[false]
exten => s,1,...

In retrospect, it’s obvious what the documentation is saying, but as I said, not being familiar with labels, I was a bit lost.

Related posts:

  1. Rewrite incoming CallerID We’re using asterisk, and as part of the dial plan,...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Reply