id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	confirmation	distro	engine	distro_ver	engine_version	svn_rev
4731	Add DID field to CDRs	p_lindheimer		Starting with 1.6 the MySQL driver can handle CDRs with optional fields. We have always also had the userfield available though have not used it since user's may be using it for their own purposes.\r\n\r\nWe should add a migration that will add a did field to the CDR database (this will mean parsing cdr_mysql.conf and taking into account some systems may not be using this so it should not crash in this case.\r\n\r\nWe can safely add the setting of CDR(did) to the dialplan since no errors are generated, and then we can optionally add the field to the Reports based on Asterisk version with a configurable variable to turn it off. (The migration can set that variable if successful adding the new did field and make it default on new installs)\r\n\r\nNeed to do some testing to determine if it is adequate to set the DID in the ext-did context, or if it needs to be added in the macro-hangup-call context from the FROM_DID channel variable. (The latter may be necessary because some of the more complex dialplans may end up losing the information as more channels are spawned. (I guess we could do it both places, wouldn't really hurt?)	Feature Requests	closed	minor	2.10	Reports	2.8-branch	duplicate			Unreviewed		All			
