Here's general dialplan concepts:
- Dialplan decides what FreeSWITCH will do with/to an incoming (audio/video) call
- Dialplan is a list of unrelated patterns
- Each individual pattern has its own individual list of actions
- The call "enters" the dialplan from beginning, and proceeds toward dialplan end
- The call tries to "match" each pattern in turn, from first to last
- If the call "matches" a pattern, then the list of actions of this pattern is added to the call TODO list
- At the end of dialplan traversal, the TODO list is executed
- Matching (or non matching) an individual pattern can be cause for stopping traversing the dialplan (that is, not try to match any successive pattern)
- The name "EXTENSION", in FreeSWITCH parlance, designatesanindividual PATTERN complete with its own set of ACTIONS
- Examples of individual patterns...