Hi There,
I have a example code with mnp.
How can add or integrate this code with a2billing system.
$query1 = "SELECT number, oper_code FROM mobile_numbers WHERE number LIKE '%$exten' "; $query_result1 = @mysql_query($query1); $row_count = mysql_num_rows($query_result1); If ($row_count !=0 ) { $a_row = mysql_fetch_array($query_result1); switch ($a_row["oper_code"]) { case 1: write ("SET PRIORITY carrier1"); break; case 2: write ("SET PRIORITY carrier2"); break; default: write ("SET PRIORITY default"); } } else { write ("SET PRIORITY search"); }
scenario is below: 1* registered sip client dialed number 12456476 -> 2* check number ported or not ported -> 3* if number ported when replace number A0012345676 -> 4* will check a2billing new number with rate and route table -> 5* after will start a2billing credit information...
|