mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Add CALLERPRES dialplan function and deprecate SetCallerPres application
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -68,9 +68,14 @@ static int setcallerid_pres_exec(struct ast_channel *chan, void *data) | ||||
| { | ||||
| 	struct ast_module_user *u; | ||||
| 	int pres = -1; | ||||
| 	static int deprecated = 0; | ||||
|  | ||||
| 	u = ast_module_user_add(chan); | ||||
| 	 | ||||
|  | ||||
| 	if (!deprecated) { | ||||
| 		deprecated = 1; | ||||
| 		ast_log(LOG_WARNING, "SetCallerPres is deprecated.  Please use Set(CALLERPRES()=%s) instead.\n", (char *)data); | ||||
| 	} | ||||
| 	pres = ast_parse_caller_presentation(data); | ||||
|  | ||||
| 	if (pres < 0) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user