After backup and restoring MySQL the accounting did not worked anymore. I could make calls but the amount does not show up.

The problem is that o_uri has the format
sip:00 + codigo de tarifa

pero en la base de datos se esta guardando sin el 00
solamente sip:+codigo de tarifa ( la razon no la se,
no he modificado nada de eso ).

After changig in accounting


$codigo2 = "sip:".$row2->codigo;
if ( strncmp ( $codigo2, $row->o_uri, strlen($codigo2) ) == 0) {
$tarifa=$row2->tarifa;
$nombre=$row2->nombre

It works again.What is wrong???

Thanks to everybody who can help. CFM