[Kamailio-Users] openser freeradius connectivity error
Laszlo
laszlo at voipfreak.net
Wed Nov 18 12:45:15 CET 2009
Hi,
2009/11/18 toqeer ali <toqeer83 at gmail.com>
> Thanks it works now. but now it logs acct data in the file
> /var/log/freeradius/radacct/domain/detaildate...
>
> Freeradius does not store in mysql database... what configuration should i
> do now to store data in mysql table radacct..
>
> Thanks
>
>
>
> On Wed, Nov 18, 2009 at 1:12 PM, Laszlo <laszlo at voipfreak.net> wrote:
>
>> Hi,
>>
>> 2009/11/18 toqeer ali <toqeer83 at gmail.com>
>>
>> Hi all,
>>>
>>>
>>> I configured freeradius for accounting of openser.
>>>
>>> but when i make a call the call establishwa and gives this error for
>>> Freeradius.
>>>
>>> Nov 18 06:50:58 kamailio /sbin/openser[11590]: rc_ip_hostname: couldn't
>>> look up host by addr: 0A000005
>>> Nov 18 06:50:58 kamailio /sbin/openser[11590]: rc_send_server: no reply
>>> from RADIUS server unknown:1813
>>> Nov 18 06:50:58 kamailio /sbin/openser[11590]: ERROR:acc:acc_rad_request:
>>> radius-ing failed
>>> Nov 18 06:51:20 kamailio /sbin/openser[11593]: rc_ip_hostname: couldn't
>>> look up host by addr: 0A000005
>>> Nov 18 06:51:20 kamailio /sbin/openser[11593]: rc_send_server: no reply
>>> from RADIUS server unknown:1813
>>> Nov 18 06:51:20 kamailio /sbin/openser[11593]: ERROR:acc:acc_rad_request:
>>> radius-ing failed
>>>
>>> please help
>>> --
>>> Toqeer Ali Syed
>>>
>>> Red Hat Certified Engineer
>>> mob: +92 321 9059916
>>>
>>>
>>>
>> Check your configuration.
>> modparam("acc", "radius_config", "/path/to/whatever.conf")
>>
>> Check whatever.conf's contents, you should have a rows like this:
>>
>> authserver hostname
>> servers /path/to/servers
>>
>> So check your /path/to/servers file for credenticals, like
>>
>> hostname password
>>
>> If freeradius is installed on the same box, then you can use localhost as
>> hostname, otherwise you can use freeradius's server remote IP as hostname
>>
>>
>> Set the same password in freeradius's conf (client.conf)
>>
>> client kamailio_ip_goes_here {
>> secret = password
>> shortname = my_kamailio_box
>> }
>>
>> Make sure the accounting port is open in your firewall.
>>
>> -Laszlo
>>
>> _______________________________________________
>> Kamailio (OpenSER) - Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
It depends on how you configure accounting in radiusd.conf :)
# Accounting. Log the accounting data.
#
accounting {
#detail
sql
#ok
}
For mysql, you should make the radacct table and allow sql in the relevant
part of the radiusd.conf file.
-Laszlo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20091118/cf7313fd/attachment.htm>
More information about the sr-users
mailing list