asterisk2billing.org http://forum.asterisk2billing.org/ |
|
mobile number portability database entegration a2billing http://forum.asterisk2billing.org/viewtopic.php?f=15&t=9423 |
Page 1 of 1 |
Author: | telemouse [ Fri Dec 23, 2011 12:09 pm ] |
Post subject: | mobile number portability database entegration a2billing |
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... |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |