diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-02-09 11:01:22 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-02-10 18:01:54 -0500 |
commit | 8936568515d26eba6087a0064fe4d5d6e7f02ddd (patch) | |
tree | 9a56c64b9f8040c9384a45ffdb2a429fe21e2800 /funcs | |
parent | c7fcc4468ffd54066129a982ff5b0a3cdfa7c5e0 (diff) |
manager: Restore Originate failure behavior from Asterisk 11
In Asterisk 11, if the 'Originate' AMI command failed to connect the provided
Channel while in extension mode, a 'failed' extension would be looked up and
run. This was, I believe, unintentionally removed in 51b6c49. This patch
restores that behavior.
This also adds an enum for the various 'synchronous' modes in an attempt to
make them meaningful.
ASTERISK-26115 #close
Reported by: Nasir Iqbal
Change-Id: I8afbd06725e99610e02adb529137d4800c05345d
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_periodic_hook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_periodic_hook.c b/funcs/func_periodic_hook.c index cb019b41e..f459e3576 100644 --- a/funcs/func_periodic_hook.c +++ b/funcs/func_periodic_hook.c @@ -183,8 +183,8 @@ static void *hook_launch_thread(void *data) }; ast_pbx_outgoing_exten("Local", NULL, full_exten_name, 60, - arg->context, arg->exten, 1, NULL, 0, NULL, NULL, &chan_name_var, - NULL, NULL, 1, NULL); + arg->context, arg->exten, 1, NULL, AST_OUTGOING_NO_WAIT, + NULL, NULL, &chan_name_var, NULL, NULL, 1, NULL); hook_thread_arg_destroy(arg); |