[OpenSIPS-Users] MediaProxy/FreeRadius configuration file read Error

Tijmen de Mes tijmen at ag-projects.com
Mon Dec 12 10:56:46 CET 2011


Hi Nick,

You can specify the config file for radius in the [radius] section of 
config.ini in
/etc/mediaproxy

Best regards,

Tijmen de Mes
AG Projects

On 12/09/2011 04:10 AM, Nick Khamis wrote:
> Hello Everyone,
>
> When adding the FreeRadius material to MediaProxy, I am recieving the
> following error when trying to start MediaProxy:
>
>   media-dispatcher --no-fork
> Starting MediaProxy Dispatcher 2.5.2
> using set_wakeup_fd
> Twisted is using epollreactor
> gc: collectable<list 0x95c0cac>
> gc: collectable<list 0x95bbe2c>
> gc: collectable<list 0x95bbb8c>
> gc: collectable<list 0x95bbaac>
> fatal error: cannot read the RADIUS configuration file
> fatal error: failed to create MediaProxy Dispatcher: 'localhost'
> Traceback (most recent call last):
>    File "/usr/local/bin/media-dispatcher", line 62, in<module>
>      dispatcher = Dispatcher()
>    File "/usr/lib/python2.7/site-packages/mediaproxy/dispatcher.py",
> line 526, in __init__
>      self.accounting =
> [__import__("mediaproxy.interfaces.accounting.%s" % mod.lower(),
> globals(), locals(), [""]).Accounting() for mod in
> set(Config.accounting)]
>    File "/usr/lib/python2.7/site-packages/mediaproxy/interfaces/accounting/radius.py",
> line 59, in __init__
>      self.handler = RadiusAccounting()
>    File "/usr/lib/python2.7/site-packages/mediaproxy/interfaces/accounting/radius.py",
> line 87, in __init__
>      secret = secrets[server]
> KeyError: 'localhost'
>
> I was not sure which client.conf MediaProxy needed so I tried both:
>
> /etc/radiusclient-ng/radiusclient.conf, and
> /etc/freeradius/clients.conf
>
> However, got the same error in both cases.
>
> Thanks in Advance,
>
> Nick.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list