[OpenSIPS-Users] MediaProxy/FreeRadius configuration file read Error
Tijmen de Mes
tijmen at ag-projects.com
Mon Dec 12 17:53:26 CET 2011
Hi Nick
I think it is best explained with an example. We use
/etc/opensips/radius/client.conf:
auth_order radius,local
login_tries 4
login_timeout 60
nologin /etc/nologin
authserver localhost
acctserver localhost
servers /etc/opensips/radius/servers
dictionary /etc/opensips/radius/dictionary
seqfile /var/run/opensips/opensips_radius.seq
mapfile /etc/opensips/radius/port-id-map
default_realm
radius_timeout 5
radius_retries 3
And in the dictonary file we include :
$INCLUDE /etc/radiusclient-ng/dictionary
and specify some extra sip attributes needed for opensips and mediaproxy.
In the /etc/radiusclient-ng/dictionary we have no extra dictionaries
just the default attributes. Please also note the attributes mediaproxy
needs.
The localhost 127.0.0.1 problem has to do with /etc/hosts and the
network configuration.\
BTW on which distro are you trying to install?
Best regards,
Tijmen de Mes
AG Projects
On 12/12/2011 05:26 PM, Nick Khamis wrote:
> Hello Tijmen,
>
> Thank you so much for your response. I think I was not able to explain
> my problem:
>
> I have the config file specified in /etc/mediaproxy/config.ini:
>
> config_file = /etc/radiusclient-ng/radiusclient.conf
>
> When running media dispatcher "media-dispatcher --no-fork", I get the following:
>
> gc: collectable<list 0x9bceaec>
> 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'
>
> By changing "acctserver" in radiusclient.conf from "localhost", to "127.0.0.1"
> fixes the issue however, I am now having problems with additonal
> dictionaries (e.g.):
>
> fatal error: failed to create MediaProxy Dispatcher:
> dictionary.rfc5904(16): Parse error: Illegal type: short
>
> Commenting out the lines in the different dictionary files, I would
> have to go through many FreeRadius
> dictionary files in /usr/share/freeradius/dictionary.
>
> 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