Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 4:36 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: mobile number portability database entegration a2billing
PostPosted: Fri Dec 23, 2011 12:09 pm 
Offline

Joined: Sat Sep 09, 2006 9:05 am
Posts: 22
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...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group