mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	Merged revisions 152132 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r152132 | qwell | 2008-10-27 11:03:12 -0500 (Mon, 27 Oct 2008) | 7 lines Remove options argument parsing/syntax (it isn't used any longer) (closes issue #13789) Reported by: IgorG Patches: app_transfer.c.diff uploaded by IgorG (license 20) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@152133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -42,7 +42,7 @@ static const char *app = "Transfer"; | |||||||
| static const char *synopsis = "Transfer caller to remote extension"; | static const char *synopsis = "Transfer caller to remote extension"; | ||||||
|  |  | ||||||
| static const char *descrip =  | static const char *descrip =  | ||||||
| "  Transfer([Tech/]dest[,options]):  Requests the remote caller be transferred\n" | "  Transfer([Tech/]dest):  Requests the remote caller be transferred\n" | ||||||
| "to a given destination. If TECH (SIP, IAX2, LOCAL etc) is used, only\n" | "to a given destination. If TECH (SIP, IAX2, LOCAL etc) is used, only\n" | ||||||
| "an incoming call with the same channel technology will be transfered.\n" | "an incoming call with the same channel technology will be transfered.\n" | ||||||
| "Note that for SIP, if you transfer before call is setup, a 302 redirect\n" | "Note that for SIP, if you transfer before call is setup, a 302 redirect\n" | ||||||
| @@ -64,11 +64,10 @@ static int transfer_exec(struct ast_channel *chan, void *data) | |||||||
| 	char *parse; | 	char *parse; | ||||||
| 	AST_DECLARE_APP_ARGS(args, | 	AST_DECLARE_APP_ARGS(args, | ||||||
| 		AST_APP_ARG(dest); | 		AST_APP_ARG(dest); | ||||||
| 		AST_APP_ARG(options); |  | ||||||
| 	); | 	); | ||||||
|  |  | ||||||
| 	if (ast_strlen_zero((char *)data)) { | 	if (ast_strlen_zero((char *)data)) { | ||||||
| 		ast_log(LOG_WARNING, "Transfer requires an argument ([Tech/]destination[,options])\n"); | 		ast_log(LOG_WARNING, "Transfer requires an argument ([Tech/]destination)\n"); | ||||||
| 		pbx_builtin_setvar_helper(chan, "TRANSFERSTATUS", "FAILURE"); | 		pbx_builtin_setvar_helper(chan, "TRANSFERSTATUS", "FAILURE"); | ||||||
| 		return 0; | 		return 0; | ||||||
| 	} else | 	} else | ||||||
| @@ -76,9 +75,6 @@ static int transfer_exec(struct ast_channel *chan, void *data) | |||||||
|  |  | ||||||
| 	AST_STANDARD_APP_ARGS(args, parse); | 	AST_STANDARD_APP_ARGS(args, parse); | ||||||
|  |  | ||||||
| 	if (args.options) { |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	dest = args.dest; | 	dest = args.dest; | ||||||
|  |  | ||||||
| 	if ((slash = strchr(dest, '/')) && (len = (slash - dest))) { | 	if ((slash = strchr(dest, '/')) && (len = (slash - dest))) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user