Add extension_uuid to xml cdr.
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
||||
|
||||
$apps[$x]['menu'][1]['title']['en-us'] = 'Call Detail Records';
|
||||
$apps[$x]['menu'][1]['title']['es-mx'] = '';
|
||||
$apps[$x]['menu'][1]['title']['es-mx'] = '';
|
||||
$apps[$x]['menu'][1]['title']['de'] = '';
|
||||
$apps[$x]['menu'][1]['title']['de-ch'] = '';
|
||||
$apps[$x]['menu'][1]['title']['de-at'] = '';
|
||||
@@ -90,6 +90,15 @@
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'extension_uuid';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_extensions';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'extension_uuid';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'v_id';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2012
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2013
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
@@ -210,6 +210,11 @@ function process_xml_cdr($db, $leg, $xml_string) {
|
||||
$database->fields['xml_cdr'] = check_str($xml_string);
|
||||
}
|
||||
|
||||
//insert the check_str($extension_uuid)
|
||||
if (check_str($extension_uuid)) {
|
||||
$database->fields['extension_uuid'] = check_str($extension_uuid);
|
||||
}
|
||||
|
||||
//insert xml_cdr into the db
|
||||
if (strlen($start_stamp) > 0) {
|
||||
$database->add();
|
||||
|
||||
Reference in New Issue
Block a user