本文整理汇总了PHP中A2Billing::Reinit方法的典型用法代码示例。如果您正苦于以下问题:PHP A2Billing::Reinit方法的具体用法?PHP A2Billing::Reinit怎么用?PHP A2Billing::Reinit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类A2Billing
的用法示例。
在下文中一共展示了A2Billing::Reinit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
$num_cur = count($result);
for ($i=0;$i<$num_cur;$i++) {
$currencies_list[$result[$i][1]] = array (1 => $result[$i][2], 2 => $result[$i][3]);
}
}
$RateEngine = new RateEngine();
if ($A2B -> CC_TESTING) {
$RateEngine->debug_st = 1;
$accountcode = '2222222222';
}
if ($mode == 'auto') {
$A2B-> Reinit();
$mydnid = $agi -> request['agi_extension'];
if (strlen($mydnid) > 0){
$QUERY = "SELECT 1 FROM cc_did LEFT OUTER JOIN cc_callerid ON cid = '$A2B->CallerID' AND (id_cc_card = iduser OR iduser = 0 OR allciduse = 1) AND cc_callerid.activated = 't'
WHERE cc_did.activated = 1 AND did = '$mydnid' AND startingdate <= CURRENT_TIMESTAMP AND (expirationdate > CURRENT_TIMESTAMP OR expirationdate IS NULL";
// if MYSQL
if ($A2B->config["database"]['dbtype'] != "postgres") $QUERY .= " OR cc_did.expirationdate = '0000-00-00 00:00:00'";
$QUERY .= ") AND cid IS NULL LIMIT 1";
$result = $A2B -> instance_table -> SQLExec ($A2B->DBHandle, $QUERY);
if (is_array($result)) {
if ($caller_areacode == 'recalldidless') break;
$QUERY = "SELECT src, cc_card.username, cc_card.recalltime, continuewithdid FROM cc_card, cc_call
LEFT JOIN cc_did ON cc_did.id_trunk=cc_call.id_trunk