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)