[Serusers] Accounting problems after mysql backup restore

C. Mewes cm0002 at aol.com
Sat Oct 28 03:31:06 CEST 2006


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20061027/369a4d22/attachment.htm>


More information about the sr-users mailing list