[OpenSIPS-Users] Problem starting OpenXCAP

Pablo Martin Rodriguez ustrum at gmail.com
Tue Apr 6 10:51:40 CEST 2010


Hi all

I'm just a newbie with OpenSIPS, but I got it working fine. The problem is
that I need to connect it with OpenXCAP, and I can't find a way to make it
work, even alone. When I try to run OpenXCAP by itself, with the xmlrpc_url
line commented in the config file, I get this error:

Starting OpenXCAP 1.1.2
fatal error: failed to create OpenXCAP 1.1.2: unsupported operand type(s)
for +: 'NoneType' and 'str'
Traceback (most recent call last):
  File "/usr/bin/openxcap", line 61, in <module>
    from xcap.server import XCAPServer
  File "/usr/lib/python2.5/site-packages/xcap/server.py", line 18, in
<module>
    from xcap import authentication
  File "/usr/lib/python2.5/site-packages/xcap/authentication.py", line 23,
in <module>
    from xcap.appusage import getApplicationForURI, namespaces
  File "/usr/lib/python2.5/site-packages/xcap/appusage/__init__.py", line
515, in <module>
    theStorage = ServerConfig.backend.Storage()
  File "/usr/lib/pymodules/python2.5/application/python/util.py", line 35,
in __call__
    return cls._instance_creator(*args, **kw)
  File "<string>", line 1, in __init__
  File "/usr/lib/pymodules/python2.5/application/python/util.py", line 29,
in instance_creator
    cls._instances[key] = super(Singleton, cls).__call__(*args, **kwargs)
  File
"/usr/lib/python2.5/site-packages/xcap/interfaces/backend/opensips.py", line
40, in __init__
    self._mi = ManagementInterface(Config.xmlrpc_url)
  File "/usr/lib/pymodules/python2.5/application/python/util.py", line 35,
in __call__
    return cls._instance_creator(*args, **kw)
  File "<string>", line 1, in __init__
  File "/usr/lib/pymodules/python2.5/application/python/util.py", line 29,
in instance_creator
    cls._instances[key] = super(Singleton, cls).__call__(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/xcap/interfaces/opensips.py", line
54, in __init__
    self.proxy = xmlrpc.Proxy(url + '/RPC2')
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

And, of course, when I get this line uncommented I get a segmentation fault.

It looks like that module needs the url string, but when it has, then
OpenXCAP crashes suddenly, and I get no clue on why has failed. Anyway,
OpenSIPS works properly, with xml_rpc module running as well. I hope it has
an easy solution.

Thanks a million in advance

Pablo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100406/204c9a16/attachment-0001.htm 


More information about the Users mailing list