<div dir="ltr"><div><div><div><div>looks like it's unable to parse the password for 'localhost' in the servers file.<br></div>(radiusclient-ng/servers is the file).<br><br> what host you have in that file? localhost or 127.0.0.1?<br>
</div><div>if 127.0.0.1, change it to localhost and try again.<br></div></div><br><br></div>-Laszlo<br><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/11 leo <span dir="ltr"><<a href="mailto:uzcudunl@yahoo.it" target="_blank">uzcudunl@yahoo.it</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello:<br>
<br>
If i enable radius accounting in the mediaproxy dispatcher configuration and<br>
i start the service i get the following syslog output:<br>
<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: Starting MediaProxy<br>
Dispatcher 2.5.2<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: using set_wakeup_fd<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: Twisted is using<br>
epollreactor<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: warning: radius<br>
configuration file: '/etc/opensips/radius/client.conf'<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: fatal error: cannot read the<br>
RADIUS configuration file<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: fatal error: failed to<br>
create MediaProxy Dispatcher: 'localhost'<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: Traceback (most recent call<br>
last):<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: File<br>
"/usr/bin/media-dispatcher", line 62, in <module><br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: dispatcher =<br>
Dispatcher()<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: File<br>
"/usr/lib/python2.6/dist-packages/mediaproxy/dispatcher.py", line 526, in<br>
__init__<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: self.accounting =<br>
[__import__("mediaproxy.interfaces.accounting.%s" % mod.lower(), globals(),<br>
locals(), [""]).Accounting() for mod in set(Config.accounting)]<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: File<br>
"/usr/lib/python2.6/dist-packages/mediaproxy/interfaces/accounting/radius.py",<br>
line 59, in __init__<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: self.handler =<br>
RadiusAccounting()<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: File<br>
"/usr/lib/python2.6/dist-packages/mediaproxy/interfaces/accounting/radius.py",<br>
line 88, in __init__<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: secret = secrets[server]<br>
Apr 11 00:15:24 sip-dev media-dispatcher[8822]: KeyError: 'localhost'<br>
<br>
Of course the radius config file exists. If i disable radius accounting,<br>
Opensips dialogs with the radius and the mediaproxy.<br>
My OS is a debian 6.0.7 - 2.6.32-5-686<br>
Opensips: 1.9.0<br>
python-pyrad: 1.2<br>
<br>
Thanks.<br>
<br>
Leo.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Mediaproxy-Dispatcher-failed-to-start-when-radius-acc-is-enabled-tp7585795.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Mediaproxy-Dispatcher-failed-to-start-when-radius-acc-is-enabled-tp7585795.html</a><br>
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>