From 52fd855b61a3dc4b35709e5be63094218cbe612f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 12 Feb 2020 11:42:31 +0100 Subject: [PATCH] Force hangup call on exception to avoid potential infinite loop problem --- conference.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conference.py b/conference.py index d360c18..91f7aa4 100755 --- a/conference.py +++ b/conference.py @@ -315,9 +315,11 @@ try: except agi.AGIAppError as e: logging.info('An AGI error stop script : %s' % e) clean_tmp() - sys.exit(0) + hangup(asterisk_agi) + sys.exit(1) except Exception as e: logging.error(traceback.format_exc()) set_return(None) clean_tmp() + hangup(asterisk_agi) sys.exit(1)