mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	- mark some applications deprecated that already have replacements
- add BLACKLIST and mark LookupBlacklist deprecated - add transfercapability support to CHANNEL and mark SetTransferCapability deprecated (issue #7225, Corydon) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -109,6 +109,7 @@ static int setcdruserfield_exec(struct ast_channel *chan, void *data) | ||||
| { | ||||
| 	struct localuser *u; | ||||
| 	int res = 0; | ||||
| 	static int dep_warning = 0; | ||||
| 	 | ||||
| 	LOCAL_USER_ADD(u); | ||||
|  | ||||
| @@ -116,6 +117,11 @@ static int setcdruserfield_exec(struct ast_channel *chan, void *data) | ||||
| 		ast_cdr_setuserfield(chan, (char*)data); | ||||
| 	} | ||||
|  | ||||
| 	if (!dep_warning) { | ||||
| 		dep_warning = 1; | ||||
| 		ast_log(LOG_WARNING, "SetCDRUserField is deprecated.  Please use CDR(userfield) instead.\n"); | ||||
| 	} | ||||
|  | ||||
| 	LOCAL_USER_REMOVE(u); | ||||
| 	 | ||||
| 	return res; | ||||
| @@ -125,6 +131,7 @@ static int appendcdruserfield_exec(struct ast_channel *chan, void *data) | ||||
| { | ||||
| 	struct localuser *u; | ||||
| 	int res = 0; | ||||
| 	static int dep_warning = 0; | ||||
| 	 | ||||
| 	LOCAL_USER_ADD(u); | ||||
|  | ||||
| @@ -132,6 +139,11 @@ static int appendcdruserfield_exec(struct ast_channel *chan, void *data) | ||||
| 		ast_cdr_appenduserfield(chan, (char*)data); | ||||
| 	} | ||||
|  | ||||
| 	if (!dep_warning) { | ||||
| 		dep_warning = 1; | ||||
| 		ast_log(LOG_WARNING, "AppendCDRUserField is deprecated.  Please use CDR(userfield) instead.\n"); | ||||
| 	} | ||||
|  | ||||
| 	LOCAL_USER_REMOVE(u); | ||||
| 	 | ||||
| 	return res; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user