[OpenSIPS-Users] Problem running MediaProxy / FreeRADIS

Khan khansfriend at gmail.com
Mon Apr 27 00:07:19 CEST 2009


Dear Users,

I have made bunch of changes in my opensips by upgrading to 1.5.1,
adding FreeRadius to my server, and MediaProxy 2.3.

Before making changes to config files for opensips it worked fine but
after making changes it gives me following errors... I am assuming i
have screwed up in putting proper values for OpenSIPS...


FreeRADIUS failure:
root# freeradius -X
radiusd: #### Opening IP addresses and Ports ####
listen {
       type = "auth"
       ipaddr = *
       port = 0
}
listen {
       type = "acct"
       ipaddr = *
       port = 0
}
listen {
       type = "control"
 listen {
       socket = "/var/run/freeradius/freeradius.sock"
 }
Failed binding to /var/run/freeradius/freeradius.sock: Permission denied



MediaProxy failure:
root# ./media-dispatcher --no-fork

Starting MediaProxy Dispatcher 2.3.4
Twisted is using epollreactor

fatal error: cannot read the RADIUS configuration file
fatal error: failed to create MediaProxy Dispatcher: 'servers'

Traceback (most recent call last):
--- <exception caught here> ---
 File "./media-dispatcher", line 56, in <module>
   dispatcher = Dispatcher()
 File "/etc/mediaproxy/mediaproxy-2.3.4/mediaproxy/dispatcher.py",
line 523, in __init__
   self.accounting =
[__import__("mediaproxy.interfaces.accounting.%s" % mod.lower(),
globals(), locals(), [""]).Accounting() for mod in
set(Config.accounting)]
 File "/etc/mediaproxy/mediaproxy-2.3.4/mediaproxy/interfaces/accounting/radius.py",
line 53, in __init__
   self.radius = RadiusAccounting()
 File "/etc/mediaproxy/mediaproxy-2.3.4/mediaproxy/interfaces/accounting/radius.py",
line 74, in __init__
   secrets = dict(line.rstrip("\n").split(None, 1) for line in
open(config["servers"]) if len(line.split(None, 1)) == 2 and not
line.startswith("#"))
exceptions.KeyError: 'servers'

-- 
Please HELP...


Khan


VoIP Rookie
Every beginning has an end regardless we believe it or not...



More information about the Users mailing list