[OpenSIPS-Devel] [ opensips-Bugs-2351116 ] Error in creating RLS service document
SourceForge.net
noreply at sourceforge.net
Wed Nov 26 16:00:42 CET 2008
Bugs item #2351116, was opened at 2008-11-26 20:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2351116&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tools
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nathan (rmnathan)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error in creating RLS service document
Initial Comment:
Hi
I tried latest codes from trunk svn of opensips.I looked at the get_resource_list() in the subscribe.c has changed lot.
Instead of resource-list document , rls-services document is used to get the list.
I used openxcap to create resource-list document. But now when i tried to create rls-service document in openxcap am getting following error
Exception rendering:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/twisted/web2/stream.py", line 407, in _read
self._gotData(result)
File "/usr/lib/python2.5/site-packages/twisted/web2/stream.py", line 418, in _gotData
result.callback(None)
File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 243, in callback
self._startRunCallbacks(result)
File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "/usr/lib/python2.5/site-packages/xcap/authentication.py", line 178, in _finished_reading
d = self.authenticate(request)
File "/usr/lib/python2.5/site-packages/xcap/authentication.py", line 116, in authenticate
request.xcap_uri = parseNodeURI(uri, AuthenticationConfig.default_realm)
File "/usr/lib/python2.5/site-packages/xcap/uri.py", line 200, in parseNodeURI
return XCAPUri(xcap_root, resource_selector, default_realm)
File "/usr/lib/python2.5/site-packages/xcap/uri.py", line 180, in __init__
if not self.user.domain:
exceptions.AttributeError: 'NoneType' object has no attribute 'domain'
While trying to store(uri = "/xcap-root/rls-services/global/index") the following rls-service document
<?xml version="1.0" encoding="UTF-8"?>
<rls-services xmlns="urn:ietf:params:xml:ns:rls-services"
xmlns:rl="urn:ietf:params:xml:ns:resource-lists"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<service uri="sip:s3-1 at 192.168.166.150">
<resource-list>http://xcap-root@192.168.166.150/resource-lists/users/sip:s3- 1 at 192.168.166.150/resource-list.xml/~~/resource-lists/list[@name=%22default%22]
</resource-list>
<packages> <package>presence</package> </packages>
</service>
<service uri="sip:s3-1_lis1 at 192.168.166.150">
<list name="s3-1">
<entry uri="sip:c3-1 at 192.168.166.150"/>
</list>
<packages>
<package>presence</package>
</packages>
</service>
</rls-services>
Is there any anything(syntax) I might be missing?
Thanks in advance
Nathan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2351116&group_id=232389
More information about the Devel
mailing list