[Serusers] mod acc problem

Daniel-Constantin Mierla Daniel-Constantin.Mierla at fokus.fraunhofer.de
Mon Sep 29 13:08:30 CEST 2003


Please keep cc-ing to the mailing list so the others can find the answer 
if they get into the same problem.
Comments inline.

On 9/29/2003 12:50 PM, marky wrote:

>Ok
>
>but when i am adding the line :
>modparam("acc", "db_flag", 1 )
>
>I get this in my debug output...
> 0(443) set_mod_param_regex: acc matches module acc
> 0(443) set_mod_param_regex: found <log_level> in module acc
>[/usr/home/mark/lib
>/ser/modules/acc.so]
> 0(443) set_mod_param_regex: acc matches module acc
> 0(443) set_mod_param_regex: found <log_flag> in module acc
>[/usr/home/mark/lib/
>ser/modules/acc.so]
> 0(443) set_mod_param_regex: acc matches module acc
> 0(443) set_mod_param_regex: found <log_missed_flag> in module acc
>[/usr/home/ma
>rk/lib/ser/modules/acc.so]
> 0(443) set_mod_param_regex: acc matches module acc
> 0(443) set_mod_param_regex: found <report_cancels> in module acc
>[/usr/home/mar
>k/lib/ser/modules/acc.so]
> 0(443) set_mod_param_regex: acc matches module acc
> 0(443) set_mod_param_regex: parameter <db_flag> not found in module <acc>
> 0(443) parse error (94,30-31): Can't set module parameter
>
As I told you, the acc module must be compiled with database/SQL 
support. You need to uncomment a line inside the Makefile of the acc 
module (see my previous mail). Go the the base directory of the SER 
sources (e.g., /usr/local/src/sip_router), compile the module with 'make 
modules modules=modules/acc' and then copy the acc.so over the old one 
(it should be in /usr/lib/ser/modules or /usr/local/lib/ser/modules), 
and try again.

Best regards,
Daniel


>.........
>.........
>.........
>
> ERROR: bad config file (2 errors)
>
>Thats the problem.
>
>
>Best regards,
>
>Mark
>
>MC101-UANIC
>
>
>
>
>----- Original Message -----
>From: "Daniel-Constantin Mierla"
><Daniel-Constantin.Mierla at fokus.fraunhofer.de>
>To: "marky" <mark at clubnet.lviv.ua>
>Cc: <serusers at lists.iptel.org>
>Sent: Monday, September 29, 2003 1:21 PM
>Subject: Re: [Serusers] mod acc problem
>
>
>  
>
>>Hello,
>>You set only the log_flag, so the accounting is done into system log
>>file (check /var/log/messages).
>> If you didn't compile it with database support, you need to take the
>>sources from cvs (http://www.iptel.org/ser/cvs -- here are some
>>guidelines) and recompile the acc module after setting the proper flag
>>into Makefile inside the acc directory -- if you have put the sources
>>into /usr/local/src/sip_router the the directory of the acc module is
>>/usr/local/src/sip_router/modules/acc/. The accounting flag for use with
>>database is 'db_flag', so you need a
>>modparam("acc", "db_flag", 1 ) in your config file, too.
>>
>>
>>Best regards,
>>Daniel
>>
>>On 9/28/2003 2:55 PM, marky wrote:
>>
>>    
>>
>>>Hi All !
>>>
>>>
>>>I 've installed the SER version 0.8.11 it works OK but i cant
>>>implement some of commands.
>>>
>>>For example when i add
>>>
>>>loadmodule "/usr/home/mark/lib/ser/modules/acc.so"
>>>
>>>modparam("acc", "log_level", 1)
>>>
>>>modparam("acc", "log_flag", 1 )
>>>
>>>acc_log_request("some comment","acc");
>>>
>>>to my ser.cgf , there is nothing in acc table of the ser db.
>>>
>>>
>>>Commands are taken from acc.pdf - documentation written by Jiri Kuthan
>>>
>>>
>>>I ll be grateful for any help.
>>>
>>>Thanks in advance
>>>
>>>Mark Chehovsky
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers at lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>>
>>>      
>>>
>>
>>
>>    
>>
>
>
>  
>





More information about the sr-users mailing list