[Users] Openser + Radius + Mysql: Acconting - AcctStopTime doesn't appear in the table radacct (radius DB)
Daniel-Constantin Mierla
daniel at voice-system.ro
Fri Aug 25 15:24:18 CEST 2006
Hello,
OpenSER does event based accounting. You should find START and STOP
events for each call that you will have to match to get the CDR.
Cheers,
Daniel
On 08/25/06 16:16, Alberto Pacifico wrote:
> Hi all,
>
> I have problem with Accounting in radius database. The
> parameter AcctStopTime of the table named radacct
> isn't filled by Openser.
> The parameter AcctStartTime is okay.
>
> In my code of Openser I'm using:
>
> ...
>
> modparam("acc", "radius_flag", 1)
> modparam("acc", "radius_missed_flag", 2)
>
> # set the reporting log level
> modparam("acc", "log_level", 1)
>
> # number of the flag which will be used to mark
> messages for accounting
> modparam("acc", "log_flag", 1)
>
> modparam("acc", "log_missed_flag", 1)
>
> ...
>
> # subsequent messages withing a dialog should take the
> # path determined by record-routing
> if (loose_route())
> {
> # mark the BYEs -- they are requests within a dialog
> if(method=="BYE")
> setflag(1);
> t_relay();
> exit;
> };
>
> # process the INVITEs
> if(method=="INVITE")
> {
> # mark the INVITEs for accounting
> setflag(1);
> # enforce record-routing so the BYEs will come
> through this server
> record_route();
> };
>
> ....
>
> Please, can you help me?
> Thanks!
>
> Alberto
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
More information about the sr-users
mailing list