bar top left
bar top right
left curve
right curve
Welcome, Guest
Go to bottom
Post Reply
Post New Topic
Page: 12345
TOPIC: Problema con RoomX
#107454
Re:Problema con RoomX 9 Months, 2 Weeks ago Karma: 0
Where insert the code?

I can change the trunk name?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
loveral76
Fresh Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#107464
Re:Problema con RoomX 9 Months, 2 Weeks ago Karma: 159
I must insert this code:
print_r($value_cdr);
echo "--<br>";
print_r($arrRate);
echo "<br>--";


under:
{
// Compare if the called num is matched with a prefix, from first position
//------------------------------------------------------------------------
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 6327
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franck.danard@roomx.fr
Reply Quote
 
#107467
Re:Problema con RoomX 9 Months, 2 Weeks ago Karma: 0
Results:

Array ( [calldate] => 2012-08-07 11:34:17 [dst] => 9420804 [billsec] => 45 [dstchannel] => DAHDI/2-1 ) --Array ( [0] => Array ( [id] => 11 [name] => l8 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g28 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:51 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [1] => Array ( [id] => 10 [name] => l7 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g27 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:14 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [2] => Array ( [id] => 9 [name] => l6 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g26 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:46 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [3] => Array ( [id] => 8 [name] => l5 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g25 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:26 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [4] => Array ( [id] => 7 [name] => l4 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g4 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:41 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [5] => Array ( [id] => 6 [name] => l3 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g3 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:11 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [6] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [7] => Array ( [id] => 3 [name] => Prueba [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g1 [estado] => activo [fecha_creacion] => 2012-07-24 07:26:10 [fecha_cierre] => [hided_digits] => 0 [idParent] => 0 ) ) --Array ( [calldate] => 2012-08-07 11:34:17 [dst] => 9420804 [billsec] => 45 [dstchannel] => DAHDI/2-1 ) --Array ( [0] => Array ( [id] => 11 [name] => l8 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g28 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:51 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [1] => Array ( [id] => 10 [name] => l7 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g27 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:14 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [2] => Array ( [id] => 9 [name] => l6 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g26 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:46 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [3] => Array ( [id] => 8 [name] => l5 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g25 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:26 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [4] => Array ( [id] => 7 [name] => l4 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g4 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:41 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [5] => Array ( [id] => 6 [name] => l3 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g3 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:11 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [6] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [7] => Array ( [id] => 3 [name] => Prueba [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g1 [estado] => activo [fecha_creacion] => 2012-07-24 07:26:10 [fecha_cierre] => [hided_digits] => 0 [idParent] => 0 ) ) --Array ( [calldate] => 2012-08-07 11:34:17 [dst] => 9420804 [billsec] => 45 [dstchannel] => DAHDI/2-1 ) --Array ( [0] => Array ( [id] => 11 [name] => l8 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g28 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:51 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [1] => Array ( [id] => 10 [name] => l7 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g27 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:14 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [2] => Array ( [id] => 9 [name] => l6 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g26 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:46 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [3] => Array ( [id] => 8 [name] => l5 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g25 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:26 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [4] => Array ( [id] => 7 [name] => l4 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g4 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:41 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [5] => Array ( [id] => 6 [name] => l3 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g3 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:11 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [6] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [7] => Array ( [id] => 3 [name] => Prueba [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g1 [estado] => activo [fecha_creacion] => 2012-07-24 07:26:10 [fecha_cierre] => [hided_digits] => 0 [idParent] => 0 ) ) --Array ( [calldate] => 2012-08-07 11:34:17 [dst] => 9420804 [billsec] => 45 [dstchannel] => DAHDI/2-1 ) --Array ( [0] => Array ( [id] => 11 [name] => l8 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g28 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:51 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [1] => Array ( [id] => 10 [name] => l7 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g27 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:14 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [2] => Array ( [id] => 9 [name] => l6 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g26 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:46 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [3] => Array ( [id] => 8 [name] => l5 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g25 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:26 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [4] => Array ( [id] => 7 [name] => l4 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g4 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:41 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [5] => Array ( [id] => 6 [name] => l3 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g3 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:11 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [6] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [7] => Array ( [id] => 3 [name] => Prueba [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g1 [estado] => activo [fecha_creacion] => 2012-07-24 07:26:10 [fecha_cierre] => [hided_digits] => 0 [idParent] => 0 ) ) --Array ( [calldate] => 2012-08-07 11:34:17 [dst] => 9420804 [billsec] => 45 [dstchannel] => DAHDI/2-1 ) --Array ( [0] => Array ( [id] => 11 [name] => l8 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g28 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:51 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [1] => Array ( [id] => 10 [name] => l7 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g27 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:14 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [2] => Array ( [id] => 9 [name] => l6 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g26 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:46 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [3] => Array ( [id] => 8 [name] => l5 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g25 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:26 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [4] => Array ( [id] => 7 [name] => l4 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g4 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:41 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [5] => Array ( [id] => 6 [name] => l3 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g3 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:11 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [6] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [7] => Array ( [id] => 3 [name] => Prueba [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g1 [estado] => activo [fecha_creacion] => 2012-07-24 07:26:10 [fecha_cierre] => [hided_digits] => 0 [idParent] => 0 ) ) --Array ( [calldate] => 2012-08-07 11:34:17 [dst] => 9420804 [billsec] => 45 [dstchannel] => DAHDI/2-1 ) --Array ( [0] => Array ( [id] => 11 [name] => l8 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g28 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:51 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [1] => Array ( [id] => 10 [name] => l7 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g27 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:14 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [2] => Array ( [id] => 9 [name] => l6 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g26 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:46 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [3] => Array ( [id] => 8 [name] => l5 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g25 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:26 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [4] => Array ( [id] => 7 [name] => l4 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g4 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:41 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [5] => Array ( [id] => 6 [name] => l3 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g3 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:11 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [6] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [7] => Array ( [id] => 3 [name] => Prueba [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g1 [estado] => activo [fecha_creacion] => 2012-07-24 07:26:10 [fecha_cierre] => [hided_digits] => 0 [idParent] => 0 ) ) --Array ( [calldate] => 2012-08-07 11:34:17 [dst] => 9420804 [billsec] => 45 [dstchannel] => DAHDI/2-1 ) --Array ( [0] => Array ( [id] => 11 [name] => l8 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g28 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:51 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [1] => Array ( [id] => 10 [name] => l7 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g27 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:14 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [2] => Array ( [id] => 9 [name] => l6 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g26 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:46 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [3] => Array ( [id] => 8 [name] => l5 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g25 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:26 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [4] => Array ( [id] => 7 [name] => l4 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g4 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:41 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [5] => Array ( [id] => 6 [name] => l3 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g3 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:11 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [6] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [7] => Array ( [id] => 3 [name] => Prueba [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g1 [estado] => activo [fecha_creacion] => 2012-07-24 07:26:10 [fecha_cierre] => [hided_digits] => 0 [idParent] => 0 ) ) --Array ( [calldate] => 2012-08-07 11:34:17 [dst] => 9420804 [billsec] => 45 [dstchannel] => DAHDI/2-1 ) --Array ( [0] => Array ( [id] => 11 [name] => l8 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g28 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:51 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [1] => Array ( [id] => 10 [name] => l7 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g27 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:14 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [2] => Array ( [id] => 9 [name] => l6 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g26 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:46 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [3] => Array ( [id] => 8 [name] => l5 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g25 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:26 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [4] => Array ( [id] => 7 [name] => l4 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g4 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:41 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [5] => Array ( [id] => 6 [name] => l3 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g3 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:11 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [6] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [7] => Array ( [id] => 3 [name] => Prueba [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g1 [estado] => activo [fecha_creacion] => 2012-07-24 07:26:10 [fecha_cierre] => [hided_digits] => 0 [idParent] => 0 ) )
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
loveral76
Fresh Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#107476
Re:Problema con RoomX 9 Months, 2 Weeks ago Karma: 159
Maybe try to making file to attech it on the poste...

It seems that you didn't put paloSantoCheckOut.class.php into libs folder under rx_check_out folder, because there's no lastdata key into your result.

Your result:
Code:

Array ( 
[calldate] => 2012-08-07 11:34:17 
[dst] => 9420804 
[billsec] => 45 
[dstchannel] => DAHDI/2-1 ) 



My result:
Code:

Array ( 
[calldate] => 2012-08-07 17:10:02 
[dst] => 02xxxxxxxx 
[billsec] => 6 
[dstchannel] => IAX2/Inter-18322 
[lastdata] => IAX2/Inter/02xxxxxxxx,300, )



I put the zip file again.

If you want.. try to send me result to my personal mail (below).

Let me know.
File Attachment:
File Name: rx_check_out-20120807.zip
File Size: 10351
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 6327
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31
Last Edit: 2012/08/07 10:23 By danardf.

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franck.danard@roomx.fr
Reply Quote
 
#107477
Re:Problema con RoomX 9 Months, 2 Weeks ago Karma: 159
I kept this code into the file:
print_r($value_cdr);
echo "--<br>";
print_r($arrRate);
echo "<br>--";
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 6327
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franck.danard@roomx.fr
Reply Quote
 
#107486
Re:Problema con RoomX 9 Months, 2 Weeks ago Karma: 0
I find the file paloSantoCheckOut.class in the libs folder, but replace this anew.

Results

Array ( [calldate] => 2012-08-07 12:39:35 [dst] => 9425250 [billsec] => 34 [dstchannel] => DAHDI/2-1 [lastdata] => DAHDI/g2/425250,300, ) --
Array ( [0] => Array ( [id] => 3 [name] => Prueba [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g1 [estado] => activo [fecha_creacion] => 2012-07-24 07:26:10 [fecha_cierre] => [hided_digits] => 0 [idParent] => 0 ) [1] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [2] => Array ( [id] => 6 [name] => l3 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g3 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:11 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [3] => Array ( [id] => 7 [name] => l4 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g4 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:41 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [4] => Array ( [id] => 8 [name] => l5 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g25 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:26 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [5] => Array ( [id] => 9 [name] => l6 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g26 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:46 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [6] => Array ( [id] => 10 [name] => l7 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g27 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:14 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [7] => Array ( [id] => 11 [name] => l8 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g28 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:51 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) )
--Array ( [calldate] => 2012-08-07 12:39:35 [dst] => 9425250 [billsec] => 34 [dstchannel] => DAHDI/2-1 [lastdata] => DAHDI/g2/425250,300, ) --
Array ( [0] => Array ( [id] => 3 [name] => Prueba [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g1 [estado] => activo [fecha_creacion] => 2012-07-24 07:26:10 [fecha_cierre] => [hided_digits] => 0 [idParent] => 0 ) [1] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [2] => Array ( [id] => 6 [name] => l3 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g3 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:11 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [3] => Array ( [id] => 7 [name] => l4 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g4 [estado] => activo [fecha_creacion] => 2012-07-25 07:51:41 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [4] => Array ( [id] => 8 [name] => l5 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g25 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:26 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [5] => Array ( [id] => 9 [name] => l6 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g26 [estado] => activo [fecha_creacion] => 2012-07-25 07:52:46 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [6] => Array ( [id] => 10 [name] => l7 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g27 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:14 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) [7] => Array ( [id] => 11 [name] => l8 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g28 [estado] => activo [fecha_creacion] => 2012-07-25 07:53:51 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 ) )
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
loveral76
Fresh Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#107490
Re:Problema con RoomX 9 Months, 2 Weeks ago Karma: 159
Ok, now you should have a good result?

The test is realised with:
Array ( [calldate] => 2012-08-07 12:39:35 [dst] => 9425250 [billsec] => 34 [dstchannel] => DAHDI/2-1 [lastdata] => DAHDI/g2/425250,300, )
Array (

[1] => Array ( [id] => 5 [name] => l2 [prefix] => 9 [rate] => 2.0 [rate_offset] => 0.01 [trunk] => DAHDI/g2 [estado] => activo [fecha_creacion] => 2012-07-25 07:50:45 [fecha_cierre] => [hided_digits] => 2 [idParent] => 0 )


Test:
Code:

if (substr($value_cdr['dst'],0,strlen($arrRate[$Scan_Rate]['prefix'])) == $arrRate[$Scan_Rate]['prefix'] && substr($value_cdr['lastdata'],0,strlen($arrRate[$Scan_Rate]['trunk'])) == $arrRate[$Scan_Rate]['trunk'])
{
$price_rate = (($value_cdr['billsec'] / 60) * $arrRate[$Scan_Rate]['rate']) + $arrRate[$Scan_Rate]['rate_offset'];
$price_rate = intval($price_rate*100)/100;
$idx_rate   = $Scan_Rate;
break;
}



If the destination begin by 9 and trunk include DAHDI/g2 then the rate is calculated.

Otherwise, if it's not good, insert this code above break;
Code:

echo "Prefix found";


When Prefix found will found then the test gonna be good.

Let me know.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 6327
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31
Last Edit: 2012/08/07 11:10 By danardf.

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franck.danard@roomx.fr
Reply Quote
 
#107499
Re:Problema con RoomX 9 Months, 2 Weeks ago Karma: 0
in my trunk have daler ruler = X|. , my prefix billing rate is 9. The trunk delete 9 and dst not containg 9. ok?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
loveral76
Fresh Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#107508
Re:Problema con RoomX 9 Months, 2 Weeks ago Karma: 159
No, i don't think so. The test is on [dst] = 9425250 completely. And here the 9 is included..
If you create one prefix with 42.... you will have no difference.
Try it... but ...
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 6327
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franck.danard@roomx.fr
Reply Quote
 
#107510
Re:Problema con RoomX 9 Months, 2 Weeks ago Karma: 159
I just made some test and no problem for that. In in case i've the same result.
Basically, i doesn't use any prefix and works fine.
With a prefix like in your case, no problem. I've a good result.

So the problem is not here.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 6327
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franck.danard@roomx.fr
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 12345
Moderators: jgutierrez, jcastellanos

elastix

Protected by Spam Fighter