[OpenSIPS-Users] OpenXCAP Test Examples
ASHWINI NAIDU
ashwini.naidu at gmail.com
Thu May 21 09:26:02 CEST 2009
Server monitor,
As per i know i haven't found anything other than openxcap. i have also got
it working till where you have achieved on debian 4, CENTOS 5. Actually with
debian 5 everything is working working fine including the put,get and delete
methods with openxcap and sip-simple client. But still on my way to discover
how to use it properly.
On Thu, May 21, 2009 at 11:10 AM, server monitor <
sms.server.monitoring at gmail.com> wrote:
> Thanks Aswini, is there any scenario in which openxcap will run?
>
> Is there another project out there that will let you test presence docs and
> resource lists?
>
> I have managed to get everything to compile on Fedora core and very
> hesitant to start experimenting with mysqldb.
>
> Does anyone have any insight?
>
> Thanks,
> Rob
>
>
>
>
>
> On Wed, May 20, 2009 at 10:24 PM, ASHWINI NAIDU <ashwini.naidu at gmail.com>wrote:
>
>> hi server monitor,
>>
>> This error is becos of the python-mysqldb which you are using doesn't
>> support the kind of stream data you are trying to send. If the
>> python-mysqldb(which supports and clears the following errors) is upgraded
>> there is a reconnect error. i am yet to find the solution for this. if you
>> find the solution please let me know.
>>
>>
>> On Thu, May 21, 2009 at 5:14 AM, server monitor <
>> sms.server.monitoring at gmail.com> wrote:
>>
>>> Hi All, testing a new OpenSips(1.6.0dev0-notls (i386/linux) and OpenXCAP
>>> Server using xcapclient and contained examples.
>>>
>>> pres-rules PUT looks good:
>>>
>>> [root at y examples]# xcapclient -i pres-rules.xml put
>>> put
>>> http://x.y.com/xcap-root/pres-rules/users/sip:8888888888@x.y.com/index
>>> 200 OK
>>> etag: "110ff8cd75ce541886107061f70c36ff"
>>> content-type: application/auth-policy+xml
>>>
>>> pres-rules GET returns the following error:
>>>
>>> [root at y examples]# xcapclient --app pres-rules get
>>> get
>>> http://x.y.com/xcap-root/pres-rules/users/sip:8888888888@x.y.com/index
>>> 500 Internal Server Error
>>> content-type: text/plain
>>> content-length: 96
>>> An error occurred while processing the request. More information is
>>> available in the server log.
>>>
>>> Log trace:
>>>
>>> May 20 07:07:55 localhost openxcap[8994]: error: 192.168.1.103 'GET
>>> /xcap-root/pres-rules/users/sip:8888888888 at x.y.com/index HTTP/1.1' 500 0
>>> 96 'python-xcaplib/1.0.9' -
>>> May 20 07:07:55 localhost openxcap[8994]: error: RESPONSE headers:
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011Content-Type:
>>> text/plain
>>> May 20 07:07:55 localhost openxcap[8994]: error: TRACEBACK (most recent
>>> call last):
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File
>>> "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 1137, in
>>> mainLoop
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011
>>> self.runUntilCurrent()
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File
>>> "/usr/lib/python2.5/site-packages/twisted/internet/base.py", line 729, in
>>> runUntilCurrent
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 f(*a, **kw)
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File
>>> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 243, in
>>> callback
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011
>>> self._startRunCallbacks(result)
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File
>>> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 312, in
>>> _startRunCallbacks
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011
>>> self._runCallbacks()
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011--- <exception
>>> caught here> ---
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File
>>> "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in
>>> _runCallbacks
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 self.result =
>>> callback(self.result, *args, **kw)
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File
>>> "/usr/lib/python2.5/site-packages/xcap/resource.py", line 47, in
>>> sendResponse
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 response =
>>> http.Response(response.code, stream=response.data)
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 File
>>> "/usr/lib/python2.5/site-packages/twisted/web2/http.py", line 109, in
>>> __init__
>>> May 20 07:07:55 localhost openxcap[8994]: error: #011 self.stream =
>>> IByteStream(stream)
>>> May 20 07:07:55 localhost openxcap[8994]: error:
>>> #011exceptions.TypeError: ('Could not adapt', array('c', '<?xml
>>> version="1.0" encoding="UTF-8"?>\r\n<ruleset
>>> xmlns="urn:ietf:params:xml:ns:common-policy"
>>> xmlns:pr="urn:ietf:params:xml:ns:pres-rules" xmlns:cp="
>>> www.counterpath.com/privacy-lists">\r\n<rule
>>> id="pres_whitelist">\r\n<conditions>\r\n<identity>\r\n<one id="
>>> sip:bob at example.com <sip%3Abob at example.com>"/>\r\n<one id="
>>> sip:alice at example.com <sip%3Aalice at example.com>"/>\r\n<many domain="
>>> ag-projects.com">\r\n</many>\r\n</identity>\r\n</conditions>\r\n<actions>\r\n<pr:sub-handling>allow</pr:sub-handling>\r\n</actions>\r\n<transformations>\r\n<pr:provide-services>\r\n<pr:all-services/>\r\n</pr:provide-services>\r\n<pr:provide-persons>\r\n<pr:all-persons/>\r\n</pr:provide-persons>\r\n<pr:provide-devices>\r\n<pr:all-devices/>\r\n</pr:provide-devices>\r\n<pr:provide-all-attributes/>\r\n</transformations>\r\n</rule>\r\n<rule
>>> id="pres_blacklist">\r\n<conditions>\r\n<identity>\r\n<one id="
>>> sip:40316600024 at abc.com <sip%3A40316600024 at abc.com>"/>\r\n</identity>\r\n</conditions>\r\n<actions>\r\n<pr:sub-handling>block</pr:sub-handling>\r\n</actions>\r\n<transformations/>\r\n</rule>\r\n</ruleset>'),
>>> <InterfaceClass twisted.web2.stream.IByteStream>)
>>>
>>> Thanks for any clues,
>>> Rob
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>>
>> --
>> Thanking You,
>> Ashwini BR Naidu
>>
>
>
--
Thanking You,
Ashwini BR Naidu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090521/269cc6cf/attachment-0001.htm
More information about the Users
mailing list