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:04:41 -0500 |
commit | 0910773077f065a45e975c1a5914be084d9a4bdc (patch) | |
tree | 335307320333b40d3b548a2435e67cd4a506fa69 /main/pbx.c | |
parent | 648d181d2fb62284eb7a2284221b48240a0e876e (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 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 3e35a3a14..47e0b0eda 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -7876,7 +7876,7 @@ int ast_pbx_outgoing_exten_predial(const char *type, struct ast_format_cap *cap, early_media, assignedids, predial_callee); if (res < 0 /* Call failed to get connected for some reason. */ - && 1 < synchronous + && 0 < synchronous && ast_exists_extension(NULL, context, "failed", 1, NULL)) { struct ast_channel *failed; |