[asterisk-commits] mattf: trunk r85496 - /trunk/funcs/func_callerid.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 11 17:20:03 CDT 2007


Author: mattf
Date: Thu Oct 11 17:20:02 2007
New Revision: 85496

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85496
Log:
Add ANI2 support to func_callerid

Modified:
    trunk/funcs/func_callerid.c

Modified: trunk/funcs/func_callerid.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_callerid.c?view=diff&rev=85496&r1=85495&r2=85496
==============================================================================
--- trunk/funcs/func_callerid.c (original)
+++ trunk/funcs/func_callerid.c Thu Oct 11 17:20:02 2007
@@ -107,6 +107,8 @@
 			ast_copy_string(buf, ast_named_caller_presentation(chan->cid.cid_pres), len);
 		} else if (!strncasecmp("ton", data, 3)) {
 			snprintf(buf, len, "%d", chan->cid.cid_ton);
+		} else if (!strncasecmp("ani2", data, 4)) {
+			snprintf(buf, len, "%d", chan->cid.cid_ani2);
 		} else {
 			ast_log(LOG_ERROR, "Unknown callerid data type '%s'.\n", data);
 		}
@@ -171,6 +173,9 @@
 	} else if (!strncasecmp("ton", data, 3)) {
 		int i = atoi(value);
 		chan->cid.cid_ton = i;
+	} else if (!strncasecmp("ani2", data, 4)) {
+		int i = atoi(value);
+		chan->cid.cid_ani2 = i;
 	} else {
 		ast_log(LOG_ERROR, "Unknown callerid data type '%s'.\n", data);
 	}




More information about the asterisk-commits mailing list