This exception is only raised when a command is sent to FreeSWITCH and in some cases, we need to know earlier in order to stop doing other tasks not related to call handling. Example:
class MyApplication:
def run(self):
self.session.playback('my music', block=False)
do_http_request()
do_more_http_request()
another_slow_function()
self.session.play_and_get_digits(...) # Ths is where the exception is raised
In the above example, there's no way to stop doing the next two HTTP requests when the session goes away during the first one.
This exception is only raised when a command is sent to FreeSWITCH and in some cases, we need to know earlier in order to stop doing other tasks not related to call handling. Example:
In the above example, there's no way to stop doing the next two HTTP requests when the session goes away during the first one.