[asterisk-users] CDR: Add Dialed Number Identifierfield (DNID)field into MySQL

Steve Edwards asterisk.org at sedwards.com
Tue Mar 16 08:35:50 CDT 2010


On Tue, 16 Mar 2010, Lee Archer wrote:

> Do we need an update to cdr_addon_mysql for this to work?

Way back in the 1.2 days, adding an arbitrary channel variable to 
cdr_addon_mysql.c was as simple as:

 	temp_pointer = pbx_builtin_getvar_helper(
 		  channel_pointer
 		, "DNIS"
 		);

and then adding the appropriate bits to the insert statement.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list