Categories
Tags
aastra apache asterisk centos cheatsheet chrome cisco comic dd dropbox email esxi fedora file sharing find gmail gnome google grep im feeling lucky linux migration networking olf openfiler openoffice replace rpl scm search security sed sp3 spyware ssh storage subversion tips tomcat twitter ubuntu vmware voip windowsArchives
Asterisk GotoIf Application
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 beGotoIf(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:
Related posts brought to you by Yet Another Related Posts Plugin.