[OpenSER-Users] Acc/CDRTool Issue
Ali Jawad
ali.jawad at splendor.net
Mon Jun 16 14:34:41 CEST 2008
Yes it is a absolute path. I think it is finding dictionary.ser because if I remove the include line from dictionary I do get
Jun 16 13:17:57 [4985] ERROR:acc:init_acc_rad: acc: can't get code for the Sip-Response-Code attribute Jun 16 13:17:57 [4985]
So it seems that it is seeing the dictionary.ser file because this error does not appear if I do include the dictionary.ser file.
-----Original Message-----
From: users-bounces at lists.openser.org [mailto:users-bounces at lists.openser.org] On Behalf Of David Villasmil
Sent: Monday, June 16, 2008 3:31 PM
To: openser users
Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
could it be that acc can't find the dictionary.ser?
is the path to that file in you
/usr/local/etc/radiusclient-ng/dictionary an absolute path?
On Mon, Jun 16, 2008 at 2:24 PM, Ali Jawad <ali.jawad at splendor.net> wrote:
> What config files do you need so that I publish those ?
> Thanks
>
>
> -----Original Message-----
> From: David Villasmil [mailto:david.villasmil.work at gmail.com]
> Sent: Monday, June 16, 2008 3:17 PM
> To: Ali Jawad
> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>
> For some reason I can't figure out, openser can't either find the file
> or can't read it...
>
> can you post your config?
>
> On Mon, Jun 16, 2008 at 2:14 PM, Ali Jawad <ali.jawad at splendor.net> wrote:
>>
>>
>> Hi
>>
>> I have debug 6, I put it debug 9 and I am still getting the same ouput
>>
>> Jun 16 13:12:01 [4977] ERROR:acc:init_acc_rad: failed to read radius dictionary
>> Jun 16 13:12:01 [4977] ERROR:acc:mod_init: failed to init radius
>> Jun 16 13:12:01 [4977] ERROR:core:init_mod: failed to initialize module acc
>> Jun 16 13:12:01 [4977] ERROR:core:main: error while initializing modules
>> Jun 16 13:12:01 [4977] DBG:xlog:destroy: destroy module...
>>
>>
>> -----Original Message-----
>> From: David Villasmil [mailto:david.villasmil.work at gmail.com]
>> Sent: Monday, June 16, 2008 3:10 PM
>> To: Ali Jawad
>> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>>
>> make the debug higher, like 5 and re-run
>>
>> On Mon, Jun 16, 2008 at 2:03 PM, Ali Jawad <ali.jawad at splendor.net> wrote:
>>> Hi
>>>
>>> I did not reach that far yet, I am still trying to make it run with no errors.
>>>
>>> Thanks
>>>
>>> -----Original Message-----
>>> From: David Villasmil [mailto:david.villasmil.work at gmail.com]
>>> Sent: Monday, June 16, 2008 3:02 PM
>>> To: Ali Jawad
>>> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>>>
>>> with
>>> log_flagyou are telling the system to log accounting on syslog... is
>>> that what you want?
>>>
>>> my whole module config is this:
>>>
>>> modparam("acc", "radius_config", "/etc/radiusclient-ng/radiusclient.conf")
>>> modparam("acc", "radius_flag", 2)
>>> modparam("acc", "radius_missed_flag", 3)
>>>
>>> I don't have any log flag, I'm already logging to radius...
>>>
>>> On Mon, Jun 16, 2008 at 2:00 PM, David Villasmil
>>> <david.villasmil.work at gmail.com> wrote:
>>>> then take a look at the file's permissions... it all seems ok to me.
>>>>
>>>> On Mon, Jun 16, 2008 at 1:58 PM, Ali Jawad <ali.jawad at splendor.net> wrote:
>>>>> Hi
>>>>> Yes I did
>>>>>
>>>>> This is a part of my openser script
>>>>>
>>>>> modparam("acc", "log_flag", 1)
>>>>> modparam("acc", "log_missed_flag", 1)
>>>>>
>>>>> modparam("acc", "radius_config","/usr/local/etc/radiusclient-ng/radiusclient.conf")
>>>>>
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: David Villasmil [mailto:david.villasmil.work at gmail.com]
>>>>> Sent: Monday, June 16, 2008 2:55 PM
>>>>> To: Ali Jawad
>>>>> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>>>>>
>>>>> did you tell the module where to find the dictionary?
>>>>>
>>>>> this is mine (I'm using 1.3):
>>>>>
>>>>> modparam("acc", "radius_config", "/etc/radiusclient-ng/radiusclient.conf")
>>>>>
>>>>> On Mon, Jun 16, 2008 at 1:51 PM, Ali Jawad <ali.jawad at splendor.net> wrote:
>>>>>>
>>>>>> Hi All
>>>>>>
>>>>>> I did add to in /etc/raddb/dictionary
>>>>>>
>>>>>> $INCLUDE /usr/share/freeradius/dictionary
>>>>>> $INCLUDE /etc/raddb/dictionary.ser
>>>>>>
>>>>>> I did add in /usr/local/etc/radiusclient-ng/dictionary
>>>>>>
>>>>>> $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.ser the the LAST line.
>>>>>>
>>>>>> I did restart radiusd with no problems
>>>>>>
>>>>>> When I restarted Openser I got
>>>>>>
>>>>>> Jun 16 12:48:47 [4923] ERROR:acc:init_acc_rad: failed to read radius dictionary
>>>>>> Jun 16 12:48:47 [4923] ERROR:acc:mod_init: failed to init radius
>>>>>> Jun 16 12:48:47 [4923] ERROR:core:init_mod: failed to initialize module acc
>>>>>> Jun 16 12:48:47 [4923] ERROR:core:main: error while initializing modules
>>>>>> Jun 16 12:48:47 [4923] DBG:xlog:destroy: destroy module...
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: David Villasmil [mailto:david.villasmil.work at gmail.com]
>>>>>> Sent: Monday, June 16, 2008 2:23 PM
>>>>>> To: Ali Jawad
>>>>>> Cc: users at lists.openser.org
>>>>>> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>>>>>>
>>>>>> this is my config:
>>>>>>
>>>>>> on the server (radius):
>>>>>>
>>>>>> ls -l /etc/freeradius/dictionary.ser
>>>>>> -rw-r--r-- 1 root freerad 4233 2008-06-11 04:03 /etc/freeradius/dictionary.ser
>>>>>>
>>>>>> my /etc/freeradius/dictionary:
>>>>>>
>>>>>> $INCLUDE /usr/share/freeradius/dictionary
>>>>>> $INCLUDE /etc/freeradius/dictionary.ser
>>>>>>
>>>>>>
>>>>>> on the client (openser):
>>>>>>
>>>>>> ls -l /etc/radiusclient-ng/
>>>>>> total 48
>>>>>> -rw-r--r-- 1 root root 7375 2008-06-11 04:14 dictionary
>>>>>> -rw-r--r-- 1 root root 4233 2008-06-11 04:52 dictionary.ser
>>>>>>
>>>>>> in the file /etc/radiusclient-ng/dictionary AT THE VERY END:
>>>>>>
>>>>>> $INCLUDE /etc/radiusclient-ng/dictionary.ser
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> that's it.
>>>>>>
>>>>>> d
>>>>>> On Mon, Jun 16, 2008 at 1:13 PM, Ali Jawad <ali.jawad at splendor.net> wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi Again
>>>>>>>
>>>>>>> I have re-read the howto and it states that I should comment out the include line for the dictionary.ser file in the dictionary file for radiusclient-ng. Should I do the same for the server ?
>>>>>>> I did it for the client by adding the following line to the radiusclient-ng file
>>>>>>>
>>>>>>> $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.ser
>>>>>>>
>>>>>>> This gave the following errror
>>>>>>>
>>>>>>> Jun 16 12:08:12 [4781] ERROR:acc:init_acc_rad: failed to read radius dictionary
>>>>>>> Jun 16 12:08:12 [4781] ERROR:acc:mod_init: failed to init radius
>>>>>>> Jun 16 12:08:12 [4781] ERROR:core:init_mod: failed to initialize module acc
>>>>>>> Jun 16 12:08:12 [4781] ERROR:core:main: error while initializing modules
>>>>>>>
>>>>>>> However if I do edit the radiusclient.conf file and point the dictionary directly to /usr/local/etc/radiusclient-ng/dictionary.ser openser appears to launch normally. Although nothing is added to the radius db.
>>>>>>>
>>>>>>> In short.
>>>>>>>
>>>>>>> Should I include the server as well ?
>>>>>>>
>>>>>>> Is my include line for the client correct ?
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: users-bounces at lists.openser.org [mailto:users-bounces at lists.openser.org] On Behalf Of Iñaki Baz Castillo
>>>>>>> Sent: Monday, June 16, 2008 1:01 PM
>>>>>>> To: users at lists.openser.org
>>>>>>> Subject: Re: [OpenSER-Users] Acc/CDRTool Issue
>>>>>>>
>>>>>>> El Monday 16 June 2008 11:19:58 Ali Jawad escribió:
>>>>>>>> Hi
>>>>>>>> The server and client are on the same machine.
>>>>>>>>
>>>>>>>> The freeradius server config files are on /etc/raddb/
>>>>>>>>
>>>>>>>> So I did copy it to that dir
>>>>>>>>
>>>>>>>> [root at localhost radiusclient-ng]# cd /etc/raddb/
>>>>>>>> [root at localhost raddb]# pwd
>>>>>>>> /etc/raddb
>>>>>>>> [root at localhost raddb]# ls dictionary.ser
>>>>>>>> dictionary.ser
>>>>>>>> [root at localhost raddb]#
>>>>>>>
>>>>>>> That's not enough. Check that you FreeRadius "dictionary" file has an #INCLUDE
>>>>>>> pointing to that file.
>>>>>>>
>>>>>>> --
>>>>>>> Iñaki Baz Castillo
>>>>>>> ibc at in.ilimit.es
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Users mailing list
>>>>>>> Users at lists.openser.org
>>>>>>> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>>>>>>>
>>>>>>> --
>>>>>>> This message has been scanned for viruses and
>>>>>>> dangerous content by MailScanner, and is
>>>>>>> believed to be clean.
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Users mailing list
>>>>>>> Users at lists.openser.org
>>>>>>> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> This message has been scanned for viruses and
>>>>>> dangerous content by MailScanner, and is
>>>>>> believed to be clean.
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> This message has been scanned for viruses and
>>>>> dangerous content by MailScanner, and is
>>>>> believed to be clean.
>>>>>
>>>>>
>>>>
>>>
>>> --
>>> This message has been scanned for viruses and
>>> dangerous content by MailScanner, and is
>>> believed to be clean.
>>>
>>>
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
_______________________________________________
Users mailing list
Users at lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Users
mailing list