mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-06 20:31:50 +00:00
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:
@@ -101,7 +101,9 @@ int docall(lua_State * L, int narg, int clear, int perror)
|
||||
if (!zstr(err)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s\n", err);
|
||||
}
|
||||
lua_pop(L, 1); /* pop error message from the stack */
|
||||
//lua_pop(L, 1); /* pop error message from the stack */
|
||||
// pass error up to top
|
||||
lua_error(L);
|
||||
}
|
||||
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user