[OpenSIPS-Users] acc-Module DB-Accounting

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Jan 26 16:21:41 CET 2009


Hi Robert,

the  "detect_direction"  feature affects only information like caller 
and callee (from the radius package) and not the ruri.

Regards,
Bogdan



Robert Borz wrote:
> After solving my first issues, I'm now trying to setup db-accounting in SER. If this works I will upgrade my configuration to work with FreeRADIUS.
>
> So I added the acc module like this:
>
> loadmodule "acc.so"
> modparam("acc", "detect_direction", 1)
> modparam("acc", "db_url", "postgres://openser:password@10.1.0.16/openser")
> modparam("acc", "db_flag", 1)
> modparam("acc", "db_missed_flag", 2)
> modparam("acc", "db_extra", "from_uri=$fu; to_uri=$tu")
> modparam("acc", "radius_config", "/etc/radiusclient-ng/radiusclient.conf")
> modparam("acc", "log_flag", 1)
> modparam("acc", "log_missed_flag", 2)
>
> It doesn't matter if I set the detect_direction parameter to 0 or 1, the STOP record always will have the uri of the guy hanging up the call.
>
> Does the detect_direction only affect radius accounting or should I use other pseudo variables for my db_extra configuration? Although... $fu and $tu are looking very appropriate to me.
>
> Thanks a lot!
>
>
> Robert.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list