mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	add MATH() dialplan function (bug #4473, with mods)
deprecate the Math() application git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -80,6 +80,12 @@ static int math_exec(struct ast_channel *chan, void *data) | ||||
| 	float ftmp = 0; | ||||
| 	char *op; | ||||
| 	int iaction=-1; | ||||
| 	static int deprecation_warning = 0; | ||||
|  | ||||
| 	if (!deprecation_warning) { | ||||
| 		ast_log(LOG_WARNING, "Math() is deprecated, please use Set(var=${MATH(...)} instead.\n"); | ||||
| 		deprecation_warning = 1; | ||||
| 	} | ||||
|  | ||||
| 	/* dunno, big calulations :D */ | ||||
| 	char user_result[30]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user