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 51b6c496. 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
Showing
- apps/app_originate.c 6 additions, 4 deletionsapps/app_originate.c
- funcs/func_periodic_hook.c 2 additions, 2 deletionsfuncs/func_periodic_hook.c
- include/asterisk/pbx.h 21 additions, 8 deletionsinclude/asterisk/pbx.h
- main/manager.c 11 additions, 4 deletionsmain/manager.c
- main/pbx.c 1 addition, 1 deletionmain/pbx.c
- pbx/pbx_spool.c 6 additions, 4 deletionspbx/pbx_spool.c
- res/res_clioriginate.c 6 additions, 2 deletionsres/res_clioriginate.c
Loading
Please register or sign in to comment