Thanks for your helping .I give all
route[MONEY_CREDIT]{
xlog("L_INFO","LIMIT - MONEY_CREDIT \n");
sql_pvquery("kam_conn", "select customer_id, credit_money, start_cost, cps, initial_p, final_p from call_cache where call_id='$ci'"," $var(lm_customer_id), $var(lm_credit_money), $var(lm_start_cost), $var(lm_cps), $var(lm_initial_p), $var(lm_final_p)");

$var(num2)=$var(lm_cps);
$var(operator)="<=";
$var(check_credit)=perl_exec("compare_float_with_operator", $var(lm_credit_money));
if($var(check_credit)=="1"){
    sl_send_reply("403", "Forbidden");
    drop();
    exit;
}
  }else{

cnxcc_set_max_credit("$var(lm_customer_id)", "$var(lm_credit_money)", "$var(lm_start_cost)", "$var(lm_cps)", "$var(lm_initial_p)", "$var(lm_final_p)");

 } 


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/3859/2194090696@github.com>