[Users] Openser + Radius + Mysql: Acconting - AcctStopTime doesn't appear in the table radacct (radius DB)

Alberto Pacifico alberto_pacifico at yahoo.com
Fri Aug 25 15:56:40 CEST 2006


Hi Daniel,

The INVITE event is the START of the call, isn't it?
And the BYE event is the STOP of the call, isn' it?

If they aren't, please how can I log this events
(Start and Stop of the calls) in order to fill the
radaact table in right way? 
In what place of Openser's config file I need to put
the right commands or functions??
Thanks!!

Alberto

--- Daniel-Constantin Mierla <daniel at voice-system.ro>
wrote:

> 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
> >
> >   
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the Users mailing list