[OpenSIPS-Users] Problem starting OpenXCAP
Saúl Ibarra Corretgé
saul at ag-projects.com
Tue Apr 6 11:05:31 CEST 2010
Hi,
On 6/4/10 10:51 AM, Pablo Martin Rodriguez wrote:
> 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.
>
I assume you are using OpenSIPS as the backend, right? If so, you'll
need to specify the xmlrpc_url. Which versions of python-application and
python-gnutls are you using? There is a known issue causing the segfault
you mention.
Regards,
--
Saúl Ibarra Corretgé
AG Projects
More information about the Users
mailing list