[Users] How to configure acc modue

nick nick at mobilia.it
Thu Oct 19 11:29:45 CEST 2006


Madhusudan.Jarhad at lntinfotech.com wrote:
> 
> Thanks first of all Bogdan,
> But what is relevence of the acc table in database. it seems much like 
> raw CDR record.
> My problem is it is not getting updated at all. bit sip-trace table is 
> getting the SIP messages recorded..
> Even if I would populate acc table online is like an achivement for me. 
> but how to do it from configuration.
> Thanks again,
> Madhusudan
> 
> 
> 
> 
> *Bogdan-Andrei Iancu <bogdan at voice-system.ro>*
> 
> 10/19/2006 01:18 AM
> 
> 	
> To
> 	Madhusudan.Jarhad at lntinfotech.com
> cc
> 	users at openser.org
> Subject
> 	Re: [Users] How to configure acc modue
> 
> 
> 	
> 
> 
> 
> 
> 
> Hi,
> 
> the acc module does not generate CDRs, but start / stop events you can
> use for generating CDRs
> 
> do you get the logs? be sure to set in the scrip the configured acc flags!!
> 
> regards,
> bogdan
> 
> Madhusudan.Jarhad at lntinfotech.com wrote:
> 


You need to add the setflag() funtion where you want the particular 
variable to be recorded...

For example:


if (loose_route())
	{
		# mark the BYEs -- they are requests within a dialog
		if(method=="BYE")
			setflag(1);
		t_relay();
		return;
	};



This is from the flags tutorial:

http://www.voice-system.ro/docs/ser-flags/

Nick




More information about the sr-users mailing list