mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	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
			
			
This commit is contained in:
		| @@ -72,7 +72,9 @@ static char *orig_app(int fd, const char *chan, const char *app, const char *app | ||||
| 		return CLI_FAILURE; | ||||
| 	} | ||||
| 	ast_format_cap_append(cap, ast_format_slin, 0); | ||||
| 	ast_pbx_outgoing_app(chantech, cap, chandata, TIMEOUT * 1000, app, appdata, &reason, 0, NULL, NULL, NULL, NULL, NULL, NULL); | ||||
| 	ast_pbx_outgoing_app(chantech, cap, chandata, TIMEOUT * 1000, app, appdata, | ||||
| 			&reason, AST_OUTGOING_NO_WAIT, NULL, NULL, NULL, NULL, | ||||
| 			NULL, NULL); | ||||
| 	ao2_ref(cap, -1); | ||||
|  | ||||
| 	return CLI_SUCCESS; | ||||
| @@ -116,7 +118,9 @@ static char *orig_exten(int fd, const char *chan, const char *data) | ||||
| 		return CLI_FAILURE; | ||||
| 	} | ||||
| 	ast_format_cap_append(cap, ast_format_slin, 0); | ||||
| 	ast_pbx_outgoing_exten(chantech, cap, chandata, TIMEOUT * 1000, context, exten, 1, &reason, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL); | ||||
| 	ast_pbx_outgoing_exten(chantech, cap, chandata, TIMEOUT * 1000, context, | ||||
| 			exten, 1, &reason, AST_OUTGOING_NO_WAIT, NULL, NULL, | ||||
| 			NULL, NULL, NULL, 0, NULL); | ||||
| 	ao2_ref(cap, -1); | ||||
|  | ||||
| 	return CLI_SUCCESS; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user