FS-3841 --resolve ok return the string "die" or "exit" from hanguphook to cause an error or call s:destroy("any err message"); either should now halt the script

This commit is contained in:
Anthony Minessale
2012-01-27 19:03:04 -06:00
parent 99b6479947
commit 09ad887948
6 changed files with 107 additions and 9 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ namespace LUA {
Session(char *uuid, CoreSession * a_leg = NULL);
Session(switch_core_session_t *session);
~Session();
SWITCH_MOD_DECLARE(virtual void) destroy(void);
SWITCH_MOD_DECLARE(virtual void) destroy(const char *err = NULL);
virtual bool begin_allow_threads();
virtual bool end_allow_threads();