[OpenSIPS-Users] Mediaproxy Dispatcher failed to start when radius acc is enabled
leo
uzcudunl at yahoo.it
Thu Apr 11 00:23:24 CEST 2013
Hello:
If i enable radius accounting in the mediaproxy dispatcher configuration and
i start the service i get the following syslog output:
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: Starting MediaProxy
Dispatcher 2.5.2
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: using set_wakeup_fd
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: Twisted is using
epollreactor
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: warning: radius
configuration file: '/etc/opensips/radius/client.conf'
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: fatal error: cannot read the
RADIUS configuration file
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: fatal error: failed to
create MediaProxy Dispatcher: 'localhost'
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: Traceback (most recent call
last):
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: File
"/usr/bin/media-dispatcher", line 62, in <module>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: dispatcher =
Dispatcher()
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: File
"/usr/lib/python2.6/dist-packages/mediaproxy/dispatcher.py", line 526, in
__init__
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: self.accounting =
[__import__("mediaproxy.interfaces.accounting.%s" % mod.lower(), globals(),
locals(), [""]).Accounting() for mod in set(Config.accounting)]
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: File
"/usr/lib/python2.6/dist-packages/mediaproxy/interfaces/accounting/radius.py",
line 59, in __init__
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: self.handler =
RadiusAccounting()
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: File
"/usr/lib/python2.6/dist-packages/mediaproxy/interfaces/accounting/radius.py",
line 88, in __init__
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: secret = secrets[server]
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: KeyError: 'localhost'
Of course the radius config file exists. If i disable radius accounting,
Opensips dialogs with the radius and the mediaproxy.
My OS is a debian 6.0.7 - 2.6.32-5-686
Opensips: 1.9.0
python-pyrad: 1.2
Thanks.
Leo.
--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Mediaproxy-Dispatcher-failed-to-start-when-radius-acc-is-enabled-tp7585795.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
More information about the Users
mailing list