[OpenSER-Users] Mediaproxy radius error?
Mike O'Connor
mike at pineview.net
Thu Feb 21 08:14:46 CET 2008
Hi Max
Looks to me from that traceback that its unable to open your dictionary's
Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: abort("cannot read
radius dictionaries: %s" % str(e))
I'd be check that each of the file are available and readable by the
proxydispatcher process.
Mike
Max Lock wrote:
> Hi Folks,
>
> I've got mediaproxy running with openser fine, however I want to
> enable accounting. I've tested accounting to a database, and that seems
> fine. however as soon as I try radius accounting, it seems to crash out
> with the errors pasted below.
>
> I'm no coder, but it looks like a global variable called filename is
> not defined?
>
> my mediaproxy.ini radius stanza is as follows and the radius
> dictionaries are all present:
>
> [Radius]
> secret = secret
> server = cdrradius
> authport = 1812
> acctport = 1813
> dictionaries = /etc/radiusclient-ng/dictionary,
> /etc/openser/dictionary.radius, /usr/local/mediaproxy/dictionary
> retries = 2
> timeout = 3
>
> Any ideas?
>
> -Cheers Max
>
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: Traceback (most recent
> call last):
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
> "/usr/local/mediaproxy/mediaproxy.py", line 71, in <module>
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: import rtphandler
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
> "/usr/local/mediaproxy/modules/rtphandler.py", line 56, in <module>
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: from accounting import
> accounting, StopRecord, StopRecordSerializer, QueuedItemProcessingThread
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
> "/usr/local/mediaproxy/modules/accounting.py", line 330, in <module>
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: accounting =
> RadiusAccountingThread()
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
> "/usr/local/mediaproxy/modules/accounting.py", line 308, in __init__
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: self.__radius =
> RadiusAccounting()
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
> "/usr/local/mediaproxy/modules/radius.py", line 50, in __init__
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: abort("cannot read
> radius dictionaries: %s" % str(e))
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: File
> "/var/lib/python-support/python2.5/pyrad/dictionary.py", line 67, in __str__
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]:
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: if hasattr(self, filename):
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: NameError
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: :
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: global name 'filename'
> is not defined
> Feb 20 16:14:19 lhc-voipgate mediaproxy[20721]: exiting.
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: Traceback (most
> recent call last):
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
> "/usr/local/mediaproxy/proxydispatcher.py", line 65, in <module>
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: import dispatcher
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
> "/usr/local/mediaproxy/modules/dispatcher.py", line 39, in <module>
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: from accounting
> import accounting, StopRecordSerializer, UnserializeError
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
> "/usr/local/mediaproxy/modules/accounting.py", line 330, in <module>
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: accounting =
> RadiusAccountingThread()
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
> "/usr/local/mediaproxy/modules/accounting.py", line 308, in __init__
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: self.__radius =
> RadiusAccounting()
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
> "/usr/local/mediaproxy/modules/radius.py", line 50, in __init__
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: abort("cannot read
> radius dictionaries: %s" % str(e))
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: File
> "/var/lib/python-support/python2.5/pyrad/dictionary.py", line 67, in __str__
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]:
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: if hasattr(self,
> filename):
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: NameError
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: :
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: global name
> 'filename' is not defined
> Feb 20 16:14:19 lhc-voipgate proxydispatcher[20727]: exiting.
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list