Force hangup call on exception to avoid potential infinite loop problem
This commit is contained in:
parent
1b83b247df
commit
52fd855b61
1 changed files with 3 additions and 1 deletions
|
@ -315,9 +315,11 @@ try:
|
||||||
except agi.AGIAppError as e:
|
except agi.AGIAppError as e:
|
||||||
logging.info('An AGI error stop script : %s' % e)
|
logging.info('An AGI error stop script : %s' % e)
|
||||||
clean_tmp()
|
clean_tmp()
|
||||||
sys.exit(0)
|
hangup(asterisk_agi)
|
||||||
|
sys.exit(1)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(traceback.format_exc())
|
logging.error(traceback.format_exc())
|
||||||
set_return(None)
|
set_return(None)
|
||||||
clean_tmp()
|
clean_tmp()
|
||||||
|
hangup(asterisk_agi)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in a new issue