[OpenSIPS-Users] OpenSIPS with OpenXCAP
Cao Lei-MNW784
lei.cao at motorola.com
Fri Jul 3 04:29:21 CEST 2009
Hello,
You may try to use xml-rpc instead of opensips-mi-proxy?
I don't use opensips-mi-proxy, so, can't give much help.
Searching "opensips/socket" in google may give you some hints on the
problem.
Thanks & Regards
Cao, Charles
-----Original Message-----
From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Michael Ciupka
Sent: Thursday, July 02, 2009 10:26 PM
To: users at lists.opensips.org
Subject: [OpenSIPS-Users] OpenSIPS with OpenXCAP
Hello,
i want to upload my presence-rules.xml to authorize or not authorize
watchers. when i upload the document to openxcap i get these error in my
syslog:
can anybody help me to resolve the problems?
i think a big problem is that the server can not find the socket from
opensips in /var/run/opensips/socket. anybody know what can be the
reason?
Jul 2 16:14:47 chillazz-desktop openxcap[7654]: Starting factory
<twisted.web.xmlrpc._QueryFactory instance at 0xb505d86c>
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: Got XMLRPC
request from 192.168.2.6: refreshWatchers (sip:bob at example.com presence
0)
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: error: cannot
write request to /var/run/opensips/socket: No such file or directory
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: error: Error
while processing command refreshWatchers (sip:bob at example.com presence
0): Cannot send request to OpenSIPS
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: Exception
rendering:
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: Traceback
(most recent call last):
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 186,
in addCallbacks
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
self._runCallbacks()
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328,
in _runCallbacks
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
self.result = callback(self.result, *args, **kw)
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 289,
in _continue
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
self.unpause()
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 285,
in unpause
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
self._runCallbacks()
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: --- <exception
caught here> ---
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328,
in _runCallbacks
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
self.result = callback(self.result, *args, **kw)
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/var/lib/python-support/python2.5/miproxy/proxy.py", line 89, in
_cbRender
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: code =
int(code)
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
exceptions.ValueError: invalid literal for int() with base 10: 'Cannot'
Jul 2 16:14:47 chillazz-desktop openxcap[7654]: error: Error while
notifying OpenSIPS management interface for user bob at example.com:
('500', 'Internal Server Error')
Jul 2 16:14:47 chillazz-desktop openxcap[7654]: Starting factory
<twisted.web.xmlrpc._QueryFactory instance at 0xb505dd0c>
Jul 2 16:14:47 chillazz-desktop openxcap[7654]: Stopping factory
<twisted.web.xmlrpc._QueryFactory instance at 0xb505d86c>
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: Got XMLRPC
request from 192.168.2.6: pua_publish (sip:bob at example.com 3600
xcap-diff application/xcap-diff+xml . . <?xml version="1.0"
encoding="UTF-8"?>
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: <xcap-diff
xmlns="urn:ietf:params:xml:ns:xcap-diff"
xcap-root="https://xcap.example.com/xcap-root">
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: <document
new-etag="ae0b43e23a1f71b581e04049e815dd90"
sel="http://192.168.2.6/xcap-root/pres-rules/users/bob/pres-rules.xml"
previous-etag="98cd61d84d2f2144cc6ecb8014eac49c"/>
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: </xcap-diff>
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: )
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: error: cannot
write request to /var/run/opensips/socket: No such file or directory
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: error: Error
while processing command pua_publish (sip:bob at example.com 3600 xcap-diff
application/xcap-diff+xml . . <?xml version="1.0" encoding="UTF-8"?>
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: error:
<xcap-diff xmlns="urn:ietf:params:xml:ns:xcap-diff"
xcap-root="https://xcap.example.com/xcap-root">
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: error:
<document new-etag="ae0b43e23a1f71b581e04049e815dd90"
sel="http://192.168.2.6/xcap-root/pres-rules/users/bob/pres-rules.xml"
previous-etag="98cd61d84d2f2144cc6ecb8014eac49c"/>
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: error:
</xcap-diff>
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: error: ):
Cannot send request to OpenSIPS
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: Exception
rendering:
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: Traceback
(most recent call last):
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 186,
in addCallbacks
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
self._runCallbacks()
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328,
in _runCallbacks
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
self.result = callback(self.result, *args, **kw)
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 289,
in _continue
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
self.unpause()
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 285,
in unpause
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
self._runCallbacks()
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: --- <exception
caught here> ---
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328,
in _runCallbacks
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
self.result = callback(self.result, *args, **kw)
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: File
"/var/lib/python-support/python2.5/miproxy/proxy.py", line 89, in
_cbRender
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]: code =
int(code)
Jul 2 16:14:47 chillazz-desktop opensips-mi-proxy[7666]:
exceptions.ValueError: invalid literal for int() with base 10: 'Cannot'
Jul 2 16:14:47 chillazz-desktop openxcap[7654]: error: Unhandled error
in Deferred:
Jul 2 16:14:47 chillazz-desktop openxcap[7654]: Traceback (most recent
call last):
Jul 2 16:14:47 chillazz-desktop openxcap[7654]: Failure:
exceptions.ValueError: ('500', 'Internal Server Error')
Jul 2 16:14:47 chillazz-desktop openxcap[7654]: Stopping factory
<twisted.web.xmlrpc._QueryFactory instance at 0xb505dd0c>
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list