<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hello everyone,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I’ve been struggling for a few days with OpenSIPS and
OpenXCAP and I’ve reached a certain point where I think I could really
use some help on the matter. I’ve configured a dedicated OpenSIPS instance
with pretty much the configuration mentioned in the openxcap website (<a
href="http://www.openxcap.org/wiki/Installation">http://www.openxcap.org/wiki/Installation</a>)
although I had to change it quite a bit for it to work with OpenSIPS 1.6.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I’ve also managed with quite a bit of tweaking to
force openxcap and opensips-mi-proxy to work from non-standard directories.
I’ve used the following versions:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>python 2.6.4<o:p></o:p></p>
<p class=MsoNormal>python-application 1.2.3<o:p></o:p></p>
<p class=MsoNormal>python-gnutls 1.1.8-1<o:p></o:p></p>
<p class=MsoNormal>python-lxml 2.1.5-1<o:p></o:p></p>
<p class=MsoNormal>python-sqlobject 0.10.6<o:p></o:p></p>
<p class=MsoNormal>python-twisted-core 8.2.0-3<o:p></o:p></p>
<p class=MsoNormal>python-twisted-web 8.2.0-2<o:p></o:p></p>
<p class=MsoNormal>python-twisted-web2 8.1.0-2<o:p></o:p></p>
<p class=MsoNormal>python-zope.interface 3.5.2-1<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>On a ubuntu-server 9.10<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I’ve also installed the python-xcaplib that came with
OpenXCAP.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>However when I run the test.py suite I get 6 failures which
I don’t know what to make of them:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>test_pidf_manipulation (test_presrules.PresenceRulesTest)
...
FAIL
<o:p></o:p></p>
<p class=MsoNormal>Testing different ways of inserting an element as described
in examples from Section 8.2.3 ...
FAIL
<o:p></o:p></p>
<p class=MsoNormal>Testing PUT requests of form '*[@att="some"]'
which require looking into body of PUT ...
FAIL
<o:p></o:p></p>
<p class=MsoNormal>test_operations (test_resourcelists.DocumentTest) ...
FAIL
<o:p></o:p></p>
<p class=MsoNormal>test_operations (test_rlsservices.DocumentTest) ...
FAIL
<o:p></o:p></p>
<p class=MsoNormal>test_pidf_manipulation (test_pidf.PIDFTest) ... FAIL<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>OpenXCAP while in –no-fork shows lots of trace backs
such as:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>File
"/opt/xcap/share/pyshared/xcap/appusage/__init__.py", line 91, in
_check_schema_validation<o:p></o:p></p>
<p class=MsoNormal>
raise errors.SchemaValidationError(comment=self.xml_schema.error_log)<o:p></o:p></p>
<p class=MsoNormal>
xcap.errors.SchemaValidationError: <schema-validation-error><!--<o:p></o:p></p>
<p class=MsoNormal>
<string>:3:0:ERROR:SCHEMASV:SCHEMAV_CVC_COMPLEX_TYPE_3_2_2: Element
'{urn:ietf:params:xml:ns:resource-lists}list', attribute 'some-attribute': The
attribute 'some-attribute' is not allowed.<o:p></o:p></p>
<p class=MsoNormal>
--></schema-validation-error><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>xcap.uri.NodeParsingError: Failed to parse node:
'/resource-lists/list[@name="friends"]/external[]/@anchor'<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>File
"/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line
328, in
_runCallbacks
<o:p></o:p></p>
<p class=MsoNormal>
self.result = callback(self.result, *args,
**kw)
<o:p></o:p></p>
<p class=MsoNormal>File "/opt/xcap/share/pyshared/xcap/appusage/__init__.py",
line 247, in
_cb_get_attribute
<o:p></o:p></p>
<p class=MsoNormal>
raise errors.ResourceNotFound<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>File "/opt/xcap/share/pyshared/xcap/resource.py",
line 23, in
checkEtag
<o:p></o:p></p>
<p class=MsoNormal>
http.checkPreconditions(request, etag=ETag(etag))
<o:p></o:p></p>
<p class=MsoNormal>File
"/usr/lib/python2.6/dist-packages/twisted/web2/http.py", line 256, in
checkPreconditions
<o:p></o:p></p>
<p class=MsoNormal>
raise HTTPError(StatusResponse(responsecode.PRECONDITION_FAILED,
"Requested resource does not have a matching
ETag."))
<o:p></o:p></p>
<p class=MsoNormal>
twisted.web2.http.HTTPError:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>File
"/opt/xcap/share/pyshared/xcap/appusage/__init__.py", line 486, in
get_document_local
<o:p></o:p></p>
<p class=MsoNormal>
self._not_implemented('users')
<o:p></o:p></p>
<p class=MsoNormal>File
"/opt/xcap/share/pyshared/xcap/appusage/__init__.py", line 126, in
_not_implemented
<o:p></o:p></p>
<p class=MsoNormal>
raise errors.ResourceNotFound("Application %s does not implement %s
context" % (self.id,
context))
<o:p></o:p></p>
<p class=MsoNormal>
xcap.errors.ResourceNotFound: Application xcap-caps does not implement users
context<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Could it be there is something wrong with my python-twisted
version? Also please note that in order to make openxcap run in fork mode and
log the errors I had to disable the Syslog error writing as mentioned also in
the ticket <a href="http://openxcap.org/ticket/136">http://openxcap.org/ticket/136</a>
which I’ve opened.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Is maybe the test suite of openxcap obsolete?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>As for the OpenSIPS, I’ve modified my main
OpenSIPS server to forward PUBLISH|SUBSCRIBE|NOTIFY requests to the
Presence-OpenSIPS as follows:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>if (has_totag()) {<o:p></o:p></p>
<p class=MsoNormal style='text-indent:.5in'>if (loose_route()) {<o:p></o:p></p>
<p class=MsoNormal style='text-indent:.5in'>
…<o:p></o:p></p>
<p class=MsoNormal style='text-indent:.5in'>} else {<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'>if
(is_method("SUBSCRIBE") && $rd == "VOIP_IP") {<o:p></o:p></p>
<p class=MsoNormal>
rewritehostport("PRESENCE_SERVER:PRESENCE_PORT");<o:p></o:p></p>
<p class=MsoNormal style='text-indent:.5in'>
t_relay();<o:p></o:p></p>
<p class=MsoNormal>
exit;<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'>}<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'>…<o:p></o:p></p>
<p class=MsoNormal style='text-indent:.5in'>}<o:p></o:p></p>
<p class=MsoNormal>}<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>…<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>if( is_method("PUBLISH|SUBSCRIBE|NOTIFY") ) {<o:p></o:p></p>
<p class=MsoNormal>
rewritehostport("PRESENCE_SERVER:PRESENCE_PORT");<o:p></o:p></p>
<p class=MsoNormal>
t_relay();<o:p></o:p></p>
<p class=MsoNormal>
exit;<o:p></o:p></p>
<p class=MsoNormal>}<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Requests seem to be properly forwarded to the
Presence-OpenSIPS however I could use some confirmation that what I am doing is
correct. I see that adding on eyebeam a contact appears on the list, however it
appears grayed-out, I cannot subscribe to presence information of it.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>From time to time I also see messages on OpenSIPS-Presence
like: <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Account <null>@<null> tried to publish presence
event for <a href="sip:123456789@10.1.1.1:5060">sip:123456789@10.1.1.1:5060</a>
resulting in a SIP/2.0 403 Publishing presence events for others is forbidden<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>If anyone could give out a hand, it would be greatly
appreciated! <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>mobius<o:p></o:p></p>
</div>
</body>
</html>