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.<br>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? <br>
<br>Thank you for answering so fast!<br><br>Best regards<br><br>Pablo<br><br><div class="gmail_quote">2010/4/6 Saúl Ibarra Corretgé <span dir="ltr"><<a href="mailto:saul@ag-projects.com">saul@ag-projects.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<div><div></div><div class="h5"><br>
On 6/4/10 10:51 AM, Pablo Martin Rodriguez wrote:<br>
> Hi all<br>
><br>
> I'm just a newbie with OpenSIPS, but I got it working fine. The problem<br>
> is that I need to connect it with OpenXCAP, and I can't find a way to<br>
> make it work, even alone. When I try to run OpenXCAP by itself, with the<br>
> xmlrpc_url line commented in the config file, I get this error:<br>
><br>
> Starting OpenXCAP 1.1.2<br>
> fatal error: failed to create OpenXCAP 1.1.2: unsupported operand<br>
> type(s) for +: 'NoneType' and 'str'<br>
> Traceback (most recent call last):<br>
> File "/usr/bin/openxcap", line 61, in <module><br>
> from xcap.server import XCAPServer<br>
> File "/usr/lib/python2.5/site-packages/xcap/server.py", line 18, in<br>
> <module><br>
> from xcap import authentication<br>
> File "/usr/lib/python2.5/site-packages/xcap/authentication.py", line<br>
> 23, in <module><br>
> from xcap.appusage import getApplicationForURI, namespaces<br>
> File "/usr/lib/python2.5/site-packages/xcap/appusage/__init__.py",<br>
> line 515, in <module><br>
> theStorage = ServerConfig.backend.Storage()<br>
> File "/usr/lib/pymodules/python2.5/application/python/util.py", line<br>
> 35, in __call__<br>
> return cls._instance_creator(*args, **kw)<br>
> File "<string>", line 1, in __init__<br>
> File "/usr/lib/pymodules/python2.5/application/python/util.py", line<br>
> 29, in instance_creator<br>
> cls._instances[key] = super(Singleton, cls).__call__(*args, **kwargs)<br>
> File<br>
> "/usr/lib/python2.5/site-packages/xcap/interfaces/backend/opensips.py",<br>
> line 40, in __init__<br>
> self._mi = ManagementInterface(Config.xmlrpc_url)<br>
> File "/usr/lib/pymodules/python2.5/application/python/util.py", line<br>
> 35, in __call__<br>
> return cls._instance_creator(*args, **kw)<br>
> File "<string>", line 1, in __init__<br>
> File "/usr/lib/pymodules/python2.5/application/python/util.py", line<br>
> 29, in instance_creator<br>
> cls._instances[key] = super(Singleton, cls).__call__(*args, **kwargs)<br>
> File "/usr/lib/python2.5/site-packages/xcap/interfaces/opensips.py",<br>
> line 54, in __init__<br>
> self.proxy = xmlrpc.Proxy(url + '/RPC2')<br>
> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'<br>
><br>
> And, of course, when I get this line uncommented I get a segmentation<br>
> fault.<br>
> It looks like that module needs the url string, but when it has, then<br>
> OpenXCAP crashes suddenly, and I get no clue on why has failed. Anyway,<br>
> OpenSIPS works properly, with xml_rpc module running as well. I hope it<br>
> has an easy solution.<br>
><br>
<br>
</div></div>I assume you are using OpenSIPS as the backend, right? If so, you'll<br>
need to specify the xmlrpc_url. Which versions of python-application and<br>
python-gnutls are you using? There is a known issue causing the segfault<br>
you mention.<br>
<br>
<br>
Regards,<br>
<font color="#888888"><br>
--<br>
Saúl Ibarra Corretgé<br>
AG Projects<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</font></blockquote></div><br>