Add pin_number and json option to xml cdr
This commit is contained in:
parent
d459c0a0eb
commit
03f65b036f
|
|
@ -145,10 +145,17 @@
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||||
$z++;
|
$z++;
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "xml_cdr";
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "xml";
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "xml_cdr";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||||
$z++;
|
$z++;
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "json";
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "json";
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text";
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||||
|
$z++;
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "caller_id_name";
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "caller_id_name";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||||
|
|
@ -321,6 +328,10 @@
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "digits dialed";
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "digits dialed";
|
||||||
$z++;
|
$z++;
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "pin_number";
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||||
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "pin number";
|
||||||
|
$z++;
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "hangup_cause";
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = "hangup_cause";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@
|
||||||
$database->fields['bridge_uuid'] = check_str(urldecode($xml->variables->bridge_uuid));
|
$database->fields['bridge_uuid'] = check_str(urldecode($xml->variables->bridge_uuid));
|
||||||
//$database->fields['digits_dialed'] = check_str(urldecode($xml->variables->digits_dialed));
|
//$database->fields['digits_dialed'] = check_str(urldecode($xml->variables->digits_dialed));
|
||||||
$database->fields['sip_hangup_disposition'] = check_str(urldecode($xml->variables->sip_hangup_disposition));
|
$database->fields['sip_hangup_disposition'] = check_str(urldecode($xml->variables->sip_hangup_disposition));
|
||||||
|
$database->fields['pin_number'] = check_str(urldecode($xml->variables->pin_number));
|
||||||
//time
|
//time
|
||||||
$database->fields['start_epoch'] = check_str(urldecode($xml->variables->start_epoch));
|
$database->fields['start_epoch'] = check_str(urldecode($xml->variables->start_epoch));
|
||||||
$start_stamp = check_str(urldecode($xml->variables->start_stamp));
|
$start_stamp = check_str(urldecode($xml->variables->start_stamp));
|
||||||
|
|
@ -203,6 +204,12 @@
|
||||||
case "db":
|
case "db":
|
||||||
$xml_cdr_archive = 'db';
|
$xml_cdr_archive = 'db';
|
||||||
break;
|
break;
|
||||||
|
case "xml":
|
||||||
|
$xml_cdr_archive = 'xml';
|
||||||
|
break;
|
||||||
|
case "json":
|
||||||
|
$xml_cdr_archive = 'json';
|
||||||
|
break;
|
||||||
case "none":
|
case "none":
|
||||||
$xml_cdr_archive = 'none';
|
$xml_cdr_archive = 'none';
|
||||||
break;
|
break;
|
||||||
|
|
@ -212,8 +219,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//if xml_cdr_archive is set to db then insert it.
|
//if xml_cdr_archive is set to db then insert it.
|
||||||
if ($xml_cdr_archive == "db") {
|
if ($xml_cdr_archive == "xml" || $xml_cdr_archive == "db") {
|
||||||
$database->fields['xml_cdr'] = check_str($xml_string);
|
$database->fields['xml'] = check_str($xml_string);
|
||||||
|
}
|
||||||
|
|
||||||
|
//if xml_cdr_archive is set to db then insert it.
|
||||||
|
if ($xml_cdr_archive == "json") {
|
||||||
|
$database->fields['json'] = check_str($xml_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
//insert the check_str($extension_uuid)
|
//insert the check_str($extension_uuid)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue