Well, yes, the backend is OpenSIPS, and actually I've just realized that the problem is not in that point: if it has an url, the python script continues. The version that I have installed for python-application is 1.2.3 and for python-gnutls is 1.2.0. Perhaps these versions are not right?
Thank you for answering so fast! Best regards Pablo 2010/4/6 Saúl Ibarra Corretgé <[email protected]> > 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 > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
