No subject
Thu Jan 29 11:41:19 CET 2009
Account <null>@<null> tried to publish presence event for sip:123456789 at 10.=
1.1.1:5060 resulting in a SIP/2.0 403 Publishing presence events for others=
is forbidden
If anyone could give out a hand, it would be greatly appreciated!
mobius
--_000_0B36E6F55C608645BE5021F7B30B7D896924A9FD80hermesrealize_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"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=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal>Hello everyone,<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>I’ve been struggling for a few days with OpenSIP=
S and
OpenXCAP and I’ve reached a certain point where I think I could reall=
y
use some help on the matter. I’ve configured a dedicated OpenSIPS ins=
tance
with pretty much the configuration mentioned in the openxcap website (<a
href=3D"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=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>I’ve also managed with quite a bit of tweaking t=
o
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=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>python 2.6.4<o:p></o:p></p>
<p class=3DMsoNormal>python-application 1.2.3<o:p></o:p></p>
<p class=3DMsoNormal>python-gnutls 1.1.8-1<o:p></o:p></p>
<p class=3DMsoNormal>python-lxml 2.1.5-1<o:p></o:p></p>
<p class=3DMsoNormal>python-sqlobject 0.10.6<o:p></o:p></p>
<p class=3DMsoNormal>python-twisted-core 8.2.0-3<o:p></o:p></p>
<p class=3DMsoNormal>python-twisted-web 8.2.0-2<o:p></o:p></p>
<p class=3DMsoNormal>python-twisted-web2 8.1.0-2<o:p></o:p></p>
<p class=3DMsoNormal>python-zope.interface 3.5.2-1<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>On a ubuntu-server 9.10<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>I’ve also installed the python-xcaplib that came=
with
OpenXCAP.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>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=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>test_pidf_manipulation (test_presrules.PresenceRulesTe=
st)
...
FAIL  =
; &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;  =
;
<o:p></o:p></p>
<p class=3DMsoNormal>Testing different ways of inserting an element as desc=
ribed
in examples from Section 8.2.3 ...
FAIL  =
; &n=
bsp;  =
; &n=
bsp;
<o:p></o:p></p>
<p class=3DMsoNormal>Testing PUT requests of form '*[@att=3D"some"=
;]'
which require looking into body of PUT ...
FAIL  =
; &n=
bsp;
&nb=
sp; =
<o:p></o:p></p>
<p class=3DMsoNormal>test_operations (test_resourcelists.DocumentTest) ...
FAIL  =
; &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;  =
;
<o:p></o:p></p>
<p class=3DMsoNormal>test_operations (test_rlsservices.DocumentTest) ...
FAIL  =
; &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;  =
;
<o:p></o:p></p>
<p class=3DMsoNormal>test_pidf_manipulation (test_pidf.PIDFTest) ... FAIL<o=
:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>OpenXCAP while in –no-fork shows lots of trace b=
acks
such as:<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>File
"/opt/xcap/share/pyshared/xcap/appusage/__init__.py", line 91, in
_check_schema_validation<o:p></o:p></p>
<p class=3DMsoNormal> =
raise errors.SchemaValidationError(comment=3Dself.xml_schema.error_log)<o:p=
></o:p></p>
<p class=3DMsoNormal>
xcap.errors.SchemaValidationError: <schema-validation-error><!--<o=
:p></o:p></p>
<p class=3DMsoNormal>
<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=3DMsoNormal>
--></schema-validation-error><o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>xcap.uri.NodeParsingError: Failed to parse node:
'/resource-lists/list[@name=3D"friends"]/external[]/@anchor'<o:p>=
</o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>File
"/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", lin=
e
328, in
_runCallbacks &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;
&nb=
sp; <o:p></o:p></p>
<p class=3DMsoNormal> =
self.result =3D callback(self.result, *args,
**kw) &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp;
<o:p></o:p></p>
<p class=3DMsoNormal>File "/opt/xcap/share/pyshared/xcap/appusage/__in=
it__.py",
line 247, in
_cb_get_attribute &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp;
<o:p></o:p></p>
<p class=3DMsoNormal> =
raise errors.ResourceNotFound<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>File "/opt/xcap/share/pyshared/xcap/resource.py&q=
uot;,
line 23, in
checkEtag =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
<o:p></o:p></p>
<p class=3DMsoNormal> =
http.checkPreconditions(request, etag=3DETag(etag)) =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp;
<o:p></o:p></p>
<p class=3DMsoNormal>File
"/usr/lib/python2.6/dist-packages/twisted/web2/http.py", line 256=
, in
checkPreconditions &nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
<o:p></o:p></p>
<p class=3DMsoNormal> =
raise HTTPError(StatusResponse(responsecode.PRECONDITION_FAILED,
"Requested resource does not have a matching
ETag.")) &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;  =
;
<o:p></o:p></p>
<p class=3DMsoNormal>
twisted.web2.http.HTTPError:<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>File
"/opt/xcap/share/pyshared/xcap/appusage/__init__.py", line 486, i=
n
get_document_local &nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
<o:p></o:p></p>
<p class=3DMsoNormal> =
self._not_implemented('users') &nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp;
<o:p></o:p></p>
<p class=3DMsoNormal>File
"/opt/xcap/share/pyshared/xcap/appusage/__init__.py", line 126, i=
n
_not_implemented  =
; &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp;
<o:p></o:p></p>
<p class=3DMsoNormal> =
raise errors.ResourceNotFound("Application %s does not implement %s
context" % (self.id,
context)) =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp; =
&nb=
sp;
<o:p></o:p></p>
<p class=3DMsoNormal>
xcap.errors.ResourceNotFound: Application xcap-caps does not implement user=
s
context<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>Could it be there is something wrong with my python-tw=
isted
version? Also please note that in order to make openxcap run in fork mode a=
nd
log the errors I had to disable the Syslog error writing as mentioned also =
in
the ticket <a href=3D"http://openxcap.org/ticket/136">http://openxcap.org/t=
icket/136</a>
which I’ve opened.<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>Is maybe the test suite of openxcap obsolete?<o:p></o:=
p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>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=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>if (has_totag()) {<o:p></o:p></p>
<p class=3DMsoNormal style=3D'text-indent:.5in'>if (loose_route()) {<o:p></=
o:p></p>
<p class=3DMsoNormal style=3D'text-indent:.5in'> &nb=
sp;
…<o:p></o:p></p>
<p class=3DMsoNormal style=3D'text-indent:.5in'>} else {<o:p></o:p></p>
<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'>if
(is_method("SUBSCRIBE") && $rd =3D=3D "VOIP_IP"=
) {<o:p></o:p></p>
<p class=3DMsoNormal> =
&nb=
sp;
&nb=
sp;
rewritehostport("PRESENCE_SERVER:PRESENCE_PORT");<o:p></o:p></p>
<p class=3DMsoNormal style=3D'text-indent:.5in'> &nb=
sp; =
&nb=
sp;
t_relay();<o:p></o:p></p>
<p class=3DMsoNormal> =
&nb=
sp;
&nb=
sp; exit;<o:p></o:p></p>
<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'>}<o:p></o:=
p></p>
<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'>…<o:=
p></o:p></p>
<p class=3DMsoNormal style=3D'text-indent:.5in'>}<o:p></o:p></p>
<p class=3DMsoNormal>}<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>…<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>if( is_method("PUBLISH|SUBSCRIBE|NOTIFY") ) =
{<o:p></o:p></p>
<p class=3DMsoNormal> =
rewritehostport("PRESENCE_SERVER:PRESENCE_PORT");<o:p></o:p></p>
<p class=3DMsoNormal> =
t_relay();<o:p></o:p></p>
<p class=3DMsoNormal> =
exit;<o:p></o:p></p>
<p class=3DMsoNormal>}<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>Requests seem to be properly forwarded to the
Presence-OpenSIPS however I could use some confirmation that what I am doin=
g is
correct. I see that adding on eyebeam a contact appears on the list, howeve=
r it
appears grayed-out, I cannot subscribe to presence information of it.<o:p><=
/o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>From time to time I also see messages on OpenSIPS-Pres=
ence
like: <o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>Account <null>@<null> tried to publish pre=
sence
event for <a href=3D"sip:123456789 at 10.1.1.1:5060">sip:123456789 at 10.1.1.1:50=
60</a>
resulting in a SIP/2.0 403 Publishing presence events for others is forbidd=
en<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>If anyone could give out a hand, it would be greatly
appreciated! <o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal>mobius<o:p></o:p></p>
</div>
</body>
</html>
--_000_0B36E6F55C608645BE5021F7B30B7D896924A9FD80hermesrealize_--
More information about the Users
mailing list