Fix a few a few settings that are required to add extension_uuid to xml cdr.

This commit is contained in:
Mark Crane
2013-03-13 05:57:41 +00:00
parent 7af82a6ece
commit 6929af625b
3 changed files with 11 additions and 9 deletions

View File

@@ -211,8 +211,8 @@ function process_xml_cdr($db, $leg, $xml_string) {
}
//insert the check_str($extension_uuid)
if (check_str($extension_uuid)) {
$database->fields['extension_uuid'] = check_str($extension_uuid);
if (strlen($xml->variables->extension_uuid) > 0) {
$database->fields['extension_uuid'] = check_str(urldecode($xml->variables->extension_uuid));
}
//insert xml_cdr into the db