If last_sent_callee_id_number is set use it as the destination_number.

This commit is contained in:
markjcrane
2016-06-01 16:45:50 -06:00
parent d91369b8f7
commit d56b8ab6a1
2 changed files with 11 additions and 1 deletions
+6 -1
View File
@@ -173,6 +173,11 @@
}
unset($x);
//if last_sent_callee_id_number is set use it for the destination_number
if (strlen($xml->variables->last_sent_callee_id_number) > 0) {
$database->fields['destination_number'] = urldecode($xml->variables->last_sent_callee_id_number);
}
//store the call leg
$database->fields['leg'] = $leg;
@@ -269,7 +274,7 @@
$db2->sql = $sql_rate;
$db2->result = $db2->execute();
// print_r($db2->result);
//print_r($db2->result);
$lcr_currency = (strlen($db2->result[0]['currency'])?check_str($db2->result[0]['currency']):
(strlen($_SESSION['billing']['currency']['text'])?$_SESSION['billing']['currency']['text']:'USD')
);