Hunting versus executing
While it has been mentioned previously, the concept of hunting versus executing really deserves a closer look. It is important to understand that the Dialplan processor is different from the actual execution of the Dialplan. Furthermore, you can tweak this behavior to blur the line between this distinction to gain extra power, but at the expense of some added complexity.
To understand hunting versus executing you must first understand that FreeSWITCH breaks calls up into various states for processing. Every call in FreeSWITCH goes through these states – beginning a new channel, routing of the call, executing actions on the call, ending the call, reporting on the call, and finally killing the channel and all associated memory. The two specific states of the call relevant to this chapter are ROUTE
and EXECUTE
. Route refers to the stage when FreeSWITCH is looking for Dialplan actions to take based on the information about a call and your loaded Dialplan module. The ROUTE...