July 2017
Intermediate to advanced
434 pages
12h 59m
English
In this example script there is an almost compulsive checking of the state of the Session objects - are they ready()? This is to check if the call has been answered, if it has not been hungup; in a word: if someone is still there.
Checking session:ready() is important, not only for knowing at which point the caller left your application, but also to avoid getting stuck in loops, waiting for the return of a database query, or (worse) for the caller to give input.
You can end up with your script stuck, and FreeSWITCH will not be able to free the associated resources (script and call data structures, and so on). Beware!
Read now
Unlock full access