[OpenSIPS-Users] RLS Services: subscription expanded to 0 contacts.
Hi, I am facing the issue posted previously. It is very clear what happens. Your rls-services document looks like this: rls-services xmlns:rl=urn:ietf:params:xml:ns:resource-lists xmlns=urn:ietf:params:xml:ns:rls-services service uri=sip:alice at net1.test http://lists.opensips.org/cgi-bin/mailman/listinfo/users ;pres-list=Default resource-listhttp://xcap.net1.test/xcap-root/resource-lists/users/sip%3aal ice%40net1.test/index/~~/resource-lists/list...@name=%22default%22%5d http://xcap.net1.test/xcap-root/resource-lists/users/sip%3aalice%40net1.tes t/index/~~/resource-lists/list...@name=%22default%22%5d%3c/resource-list /resource-list packages packagepresence/package /packages /service /rls-services] It has a reference to a resouce-list document where the list is actually defined. Unfortunately opensips does not have support for this. It only works with the list being defined inside the rls-services document. This is on the list of improvements and will be included until the next major release. I am using OpenSIPS 1.5. Is it addressed in the release or do I need to upgrade to 1.6? Regards, Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] RLS Services: subscription expanded to 0 contacts.
Hi, I am trying to get an RLS server setup working and find the following issue. Client sends SUBSCRIBE with list URI. RLS expands the list URI to individual URIs. Sends individual subscribe to Presence Server (co-located) Presence server responds with 202 or 200 response code. I have an ngrep on port 5060 and I can see NOTIFY being sent by the presence server. Along with the log Send_notify_request: NOTIFY client SIP URI via presence server URI on behalf of contact URI for event presence. However, when the contact presence status changes and is PUBLISHed, RLS does not NOTIFY the client. In the logs I can see the error 0 dialogs found. Please let me know of any specific configuration required to make this work. Regards Sanjeev From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Adrian Georgescu Sent: Wednesday, October 21, 2009 8:59 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] RLS Services: subscription expanded to 0 contacts. There are two major issues related to the implementing of such feature: 1. You expose your server to information provisioned in a remote system 2. OpenSIPS child may block waiting for the response from the remote XCAP server So though this feature is well defined in the standards, it can introduce a lot of problems for the operator that implements it. -- Adrian On Oct 21, 2009, at 10:55 AM, Sanjeev BA wrote: Hi, I am facing the issue posted previously. It is very clear what happens. Your rls-services document looks like this: rls-services xmlns:rl=urn:ietf:params:xml:ns:resource-lists xmlns=urn:ietf:params:xml:ns:rls-services service uri=sip:alice at net1.test http://lists.opensips.org/cgi-bin/mailman/listinfo/users ;pres-list=Default resource-listhttp://xcap.net1.test/xcap-root/resource-lists/users/sip%3aal ice%40net1.test/index/~~/resource-lists/list...@name=%22default%22%5d http://xcap.net1.test/xcap-root/resource-lists/users/sip%3aalice%40net1.tes t/index/~~/resource-lists/list...@name=%22default%22%5d%3c/resource-list /resource-list packages packagepresence/package /packages /service /rls-services] It has a reference to a resouce-list document where the list is actually defined. Unfortunately opensips does not have support for this. It only works with the list being defined inside the rls-services document. This is on the list of improvements and will be included until the next major release. I am using OpenSIPS 1.5. Is it addressed in the release or do I need to upgrade to 1.6? Regards, Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Question Regarding Watchers table.
Hi, What watcher A adds presentity B to his contact list using OpenXCAP, how is the watchers/active_watchers table updated? I assume that once the B is added to the the xcap entry for A, the xcap server would send a refreshWatchers command, that would make opensips presence module to update the watchers/active_watchers table and subsequently, presence status changes would be NOTIFY ed to the watchers. I have set force_active parameter to 1 in opensips config. Please provide some info on how this interaction works. Any pointers will also be helpful. Regards, Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration
Hi, I was able to get around this issue by giving the complete IP address. Please refer to OpenXCAP Ticket #90: subnet in trusted_peers does not work The issue I am currently facing is as follows. OpenXCAP receives a PUT request to add a new contact and shows an error as below. error: Unhandled error in Deferred: Traceback (most recent call last): File /usr/lib/python2.5/site-packages/twisted/protocols/basic.py, line 239, in dataReceived return self.rawDataReceived(data) File /usr/lib/python2.5/site-packages/twisted/web/http.py, line 467, in rawDataReceived self.handleResponseEnd() File /usr/lib/python2.5/site-packages/twisted/web/http.py, line 430, in handleResponseEnd self.handleResponse(b) File /usr/lib/python2.5/site-packages/twisted/web/xmlrpc.py, line 279, in handleResponse self.factory.parseResponse(contents) --- exception caught here --- File /usr/lib/python2.5/site-packages/twisted/web/xmlrpc.py, line 307, in parseResponse response = xmlrpclib.loads(contents)[0][0] File /usr/lib/python2.5/xmlrpclib.py, line 1132, in loads return u.close(), u.getmethodname() File /usr/lib/python2.5/xmlrpclib.py, line 787, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: Fault -506: 'Requested command (pua_publish) is not available!' Stopping factory twisted.web.xmlrpc._QueryFactory instance at 0x891f70c Kindly let me know how to address this. Regards, Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Adrian Georgescu Sent: Saturday, October 17, 2009 3:56 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration For this 401 problem, can you provide an example of the document your try to PUT and let us know the XCAP client you use so that we can reproduce your problem. -- Adrian On Oct 14, 2009, at 4:11 AM, Sanjeev BA wrote: Even with basic authentication, OpenXCAP returns 401 - UnAuthorized response for a XCAP GET request. And I have 10.0.0.0/24 in my trusted peer list of openxcap config. Not sure what is the issue here. Please help. Regard,s sanjeev -Original Message- From: Sanjeev BA [mailto:as290...@samsung.com] Sent: Monday, October 12, 2009 8:59 PM To: 'OpenSIPS users mailling list' Subject: RE: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration Thanks for the quick reply. I would like to know if there is a way to get rid of OpenXCAP and let OpenSIPS perform the role of XDM server as well. Is this possible? Are there any XDMS modules for OpenSIPS? Regards, Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org ] On Behalf Of Inaki Baz Castillo Sent: Monday, October 12, 2009 7:24 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration El Domingo, 11 de Octubre de 2009, Sanjeev BA escribio: Hi, I have successfully been able to test opensips with openxcap. XCAP documents are modified and subscribe/notify/watcher procedures are fine with third party SIP clients. I am in the process of testing my presence user agent in this setup. While trying to add a new contact, I get a 401 unauthorized response. The 401 sent by OpenXCAP is wrong as it has a malformed WWW- Authenticate header: http://openxcap.org/ticket/121 Perhaps it works with some devices/softphones ignoring the invalid \n character in opaque field. However a HTTP strict client will fail (as EyeBeam does). Anyhow it seems that nobody cares this bug (no response, comment or bug confirmation in 3 months). I tryed to find it but I haven't good Python skills. As a dirty workaround you can use Basic authentication. However note that some clients (as EyeBeam) don't support Basic authentication. Regards. -- Inaki Baz Castillo i...@aliax.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] (no subject)
Is it possible to use fix_nated_contact() in 200 OK response received from the client. Could someone please post a cfg section that would do this? Regards Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] fix_nated_contact usage
Resending with subject. From: Sanjeev BA [mailto:as290...@samsung.com] Sent: Friday, October 16, 2009 5:13 PM To: 'OpenSIPS users mailling list' Subject: Is it possible to use fix_nated_contact() in 200 OK response received from the client. Could someone please post a cfg section that would do this? Regards Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] fix_nated_contact usage
Figured out from older posts and changed on_reply_route(). Thanks Sanjeev From: Sanjeev BA [mailto:as290...@samsung.com] Sent: Friday, October 16, 2009 5:14 PM To: 'OpenSIPS users mailling list' Subject: fix_nated_contact usage Resending with subject. From: Sanjeev BA [mailto:as290...@samsung.com] Sent: Friday, October 16, 2009 5:13 PM To: 'OpenSIPS users mailling list' Subject: Is it possible to use fix_nated_contact() in 200 OK response received from the client. Could someone please post a cfg section that would do this? Regards Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration
Tried to get around this by adding IP address individually to trusted_peer list. Seems to do the trick. A config setting like 10.0.0.0/24 does not seem to work. Kindly check this ticket. http://openxcap.org/ticket/90 Regards Sanjeev -Original Message- From: Sanjeev BA [mailto:as290...@samsung.com] Sent: Thursday, October 15, 2009 2:56 PM To: 'OpenSIPS users mailling list' Subject: RE: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration Has anyonbe been able to make OpenXCAP work with OpenSIPS using digest authentication?I am seeing an error in twisted/web2 python script, but I do not know how to fix it. I cannot proceed any further due to the error detailed below. Any help regarding this issue would be highly appreciated. Thanks in advance, Regards Sanjeev -Original Message- From: Sanjeev BA [mailto:as290...@samsung.com] Sent: Thursday, October 15, 2009 8:50 AM To: 'OpenSIPS users mailling list' Subject: RE: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration Yes. Here's the sequence. After changing to digest, I can observe a 500 Internal Server Error in the OpenXCAP server. Logs are provided below. Client Request T 2009/10/15 08:42:04.997913 10.254.140.240:43525 - 10.89.10.235:80 [AP] GET /xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40imsdem o.com/directory.xml HTTP/1.1. Host: 10.89.10.235:80. Content-length: 0. Connection: keep-alive. . 401 Response ## T 2009/10/15 08:42:05.106696 10.89.10.235:80 - 10.254.140.240:43525 [AP] HTTP/1.1 401 Unauthorized. Date: Wed, 14 Oct 2009 23:42:05 GMT. Content-Length: 141. Content-Type: text/html. WWW-Authenticate: digest nonce=62026475982401434245613, opaque=23870f726b78fb5d872eced92ca0c1dd-NjI0NDQ0MDI2NDc1OTgyNDAxNDM0MjQ1NjE zLDEwLjI1NC4xNDAuMjQwLDEyNTU1NjM3MjU=, realm=imsdemo.com, algorithm=MD5, qop=auth. Server: OpenXCAP/1.1.2.. Date: Wed, 14 Oct 2009 12:17:24 GMT. Content-Length: 141. Content-Type: text/html. WWW-Authenticate: basic realm=imsdemo.com. Server: OpenXCAP/1.1.2. . htmlheadtitleUnauthorized/title/headbodyh1Unauthorized/h1p You are not authorized to access this resource./p/body/html Second GET from client # T 2009/10/15 08:42:05.378179 10.254.140.240:43527 - 10.89.10.235:80 [AP] GET /xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40imsdem o.com/directory.xml HTTP/1.1. Host: 10.89.10.235:80. Authorization: Digest username=tester, realm=imsdemo.com, qop=auth, nonce=62026475982401434245613, algorithm=MD5, uri=/xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40i msdemo.com/directory.xml, response=, cnonce=poc123test, opaque=23870f726b78fb5d872eced92ca0c1dd-NjI0NDQ0MDI2NDc1OTgyNDAxNDM0MjQ1NjE zLDEwLjI1NC4xNDAuMjQwLDEyNTU1NjM., nc=0001. Content-length: 0. Connection: keep-alive. 500 Internal Server Error ## T 2009/10/15 08:42:05.387184 10.89.10.235:80 - 10.254.140.240:43527 [AP] HTTP/1.1 500 Internal Server Error. Date: Wed, 14 Oct 2009 23:42:05 GMT. Content-Length: 96. Content-Type: text/plain. Server: OpenXCAP/1.1.2. . An error occurred while processing the request. More information is available in the server log. XCAP Server Error Log. 10.254.140.240 'GET /xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40imsdem o.com/directory.xml HTTP/1.1' 401 0 141 - - REQUEST headers: Host: 10.89.10.235:80 NjI0NDQ0MDI2NDc1OTgyNDAxNDM0MjQ1NjEzLDEwLjI1NC4xNDAuMjQwLDEyNTU1NjM error: 10.254.140.240 'GET /xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40imsdem o.com/directory.xml HTTP/1.1' 500 0 96 - - error: REQUEST headers: error: Host: 10.89.10.235:80 error: Authorization: Digest username=tester, realm=imsdemo.com, qop=auth, nonce=62026475982401434245613, algorithm=MD5, uri=/xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40i msdemo.com/directory.xml, response=, cnonce=poc123test, opaque=23870f726b78fb5d872eced92ca0c1dd-NjI0NDQ0MDI2NDc1OTgyNDAxNDM0MjQ1NjE zLDEwLjI1NC4xNDAuMjQwLDEyNTU1NjM, nc=0001 error: RESPONSE headers: error: Content-Type: text/plain error: RESPONSE: Content-Type: text/plain error: An error occurred while processing the request. More information is available in the server log. error: TRACEBACK (most recent call last): error:File /usr/lib/python2.5/site-packages/twisted/web2/server.py, line 268, in lambda error: d.addCallback(lambda res, req: res.renderHTTP(req), self) error:File /usr/lib/python2.5/site-packages/xcap/authentication.py, line 284, in renderHTTP error: d = self.authenticate(request) error:File /usr/lib/python2.5/site-packages/xcap/authentication.py, line 212, in authenticate error: (request,), None) error:File /usr/lib/python2.5/site-packages/twisted/internet/defer.py, line 186, in addCallbacks error: self._runCallbacks() error: --- exception caught here --- error:File /usr/lib/python2.5/site-packages/twisted/internet/defer.py, line 328, in _runCallbacks error: self.result = callback(self.result, *args
[OpenSIPS-Users] OpenXCAP stops with this error.
Hi, OpenXCAP receives a PUT request to add a new contact and shows an error as below. error: Unhandled error in Deferred: Traceback (most recent call last): File /usr/lib/python2.5/site-packages/twisted/protocols/basic.py, line 239, in dataReceived return self.rawDataReceived(data) File /usr/lib/python2.5/site-packages/twisted/web/http.py, line 467, in rawDataReceived self.handleResponseEnd() File /usr/lib/python2.5/site-packages/twisted/web/http.py, line 430, in handleResponseEnd self.handleResponse(b) File /usr/lib/python2.5/site-packages/twisted/web/xmlrpc.py, line 279, in handleResponse self.factory.parseResponse(contents) --- exception caught here --- File /usr/lib/python2.5/site-packages/twisted/web/xmlrpc.py, line 307, in parseResponse response = xmlrpclib.loads(contents)[0][0] File /usr/lib/python2.5/xmlrpclib.py, line 1132, in loads return u.close(), u.getmethodname() File /usr/lib/python2.5/xmlrpclib.py, line 787, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: Fault -506: 'Requested command (pua_publish) is not available!' Stopping factory twisted.web.xmlrpc._QueryFactory instance at 0x891f70c How can I resolve this error? Please help. Regards, Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS returns 400 Bad Request for PUBLISH
Thanks for the reply. First error I have been able to resolve. This is my presence handling script. route { ... if( is_method(PUBLISH|SUBSCRIBE)) route(2); ... } route[2] { if (!t_newtran()) { sl_reply_error(); exit; }; if(is_method(PUBLISH)) { handle_publish(); #t_release(); } else if( is_method(SUBSCRIBE)) { handle_subscribe(); #t_release(); } exit; } Regards, Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Saul Ibarra Sent: Wednesday, October 14, 2009 2:26 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] OpenSIPS returns 400 Bad Request for PUBLISH Error messages are quite descriptive ;) You've tried to record_route that PUBLISH request twice... and also the content length it's zero so what does that PUBLISH actulally 'mean'? Maybe if you show us some little piece of your script (the one andling the publish stuff) we could help you on the first error. On Wed, Oct 14, 2009 at 7:19 AM, Sanjeev BA as290...@samsung.com wrote: Error logs from OpenSIPS console. Oct 14 14:01:46 [4880] DBG:core:parse_msg:? method:? PUBLISH Oct 14 14:01:46 [4880] DBG:core:parse_msg:? uri: sip:tes...@imsdemo.com Oct 14 14:01:46 [4880] DBG:core:parse_msg:? version: SIP/2.0 Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=2 Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: cseq CSeq: 1 PUBLISH Oct 14 14:01:46 [4880] DBG:core:parse_to: end of header reached, state=10 Oct 14 14:01:46 [4880] DBG:core:parse_to: display={}, ruri={sip:tes...@imsdemo.com} Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: To [27]; uri=[sip:tes...@imsdemo.com] Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: to body [sip:tes...@imsdemo.com ] Oct 14 14:01:46 [4880] DBG:core:parse_via_param: found param type 232, branch = z9hG4bK2559870494smg; state=6 Oct 14 14:01:46 [4880] DBG:core:parse_via_param: found param type 238, transport = UDP; state=16 Oct 14 14:01:46 [4880] DBG:core:parse_via: end of header reached, state=5 Oct 14 14:01:46 [4880] DBG:core:parse_headers: via found, flags=2 Oct 14 14:01:46 [4880] DBG:core:parse_headers: this is the first via Oct 14 14:01:46 [4880] DBG:core:receive_msg: After parse_msg... Oct 14 14:01:46 [4880] DBG:core:receive_msg: preparing to run routing scripts... Oct 14 14:01:46 [4880] DBG:maxfwd:is_maxfwd_present: value = 70 Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=80 Oct 14 14:01:46 [4880] DBG:uri:has_totag: no totag Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=78 Oct 14 14:01:46 [4880] DBG:tm:t_lookup_request: start searching: hash=30511, isACK=0 Oct 14 14:01:46 [4880] DBG:tm:matching_3261: RFC3261 transaction matching failed Oct 14 14:01:46 [4880] DBG:tm:t_lookup_request: no transaction found Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=200 Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: content_length=0 Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: found end of header Oct 14 14:01:46 [4880] DBG:rr:find_first_route: No Route headers found Oct 14 14:01:46 [4880] DBG:rr:loose_route: There is no Route HF Oct 14 14:01:46 [4880] ERROR:rr:w_record_route: Double attempt to record-route Oct 14 14:01:46 [4880] DBG:core:grep_sock_info: checking if host==us: 11==12 ? [imsdemo.com] == [10.89.10.235] Oct 14 14:01:46 [4880] DBG:core:grep_sock_info: checking if port 5060 matches port 5060 Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags= Oct 14 14:01:46 [4880] DBG:presence:search_event: start event= [presence] Oct 14 14:01:46 [4880] DBG:presence:handle_publish: SIP-If-Match header not found Oct 14 14:01:46 [4880] DBG:presence:generate_ETag: etag= a.1255496470.4880.1.0 / 21 Oct 14 14:01:46 [4880] DBG:presence:handle_publish: new etag? = a.1255496470.4880.1.0 Oct 14 14:01:46 [4880] DBG:presence:handle_publish: Expires header found, value= 3600 Oct 14 14:01:46 [4880] ERROR:presence:handle_publish: No E-Tag and no body found Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags= Oct 14 14:01:46 [4880] DBG:core:check_via_address: params 10.254.140.195, 10.254.140.195, 0 Oct 14 14:01:46 [4880] DBG:sl:run_sl_callbacks: callback id 0 entered Oct 14 14:01:46 [4880] DBG:tm:t_newtran: transaction on entrance=(nil) Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags= Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=78 Oct 14 14:01:46 [4880] DBG:tm:t_lookup_request: start searching: hash=30511, isACK=0 Oct 14 14:01:46 [4880] DBG:tm:matching_3261: RFC3261 transaction matching failed Oct 14 14:01:46 [4880] DBG:tm:t_lookup_request: no transaction found Oct 14 14:01:46 [4880] DBG:tm:run_reqin_callbacks: trans=0xb3a09a30, callback type 1
Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration
Even with basic authentication, OpenXCAP returns 401 - UnAuthorized response for a XCAP GET request. And I have 10.0.0.0/24 in my trusted peer list of openxcap config. Not sure what is the issue here. Please help. Regard,s sanjeev -Original Message- From: Sanjeev BA [mailto:as290...@samsung.com] Sent: Monday, October 12, 2009 8:59 PM To: 'OpenSIPS users mailling list' Subject: RE: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration Thanks for the quick reply. I would like to know if there is a way to get rid of OpenXCAP and let OpenSIPS perform the role of XDM server as well. Is this possible? Are there any XDMS modules for OpenSIPS? Regards, Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Inaki Baz Castillo Sent: Monday, October 12, 2009 7:24 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration El Domingo, 11 de Octubre de 2009, Sanjeev BA escribio: Hi, I have successfully been able to test opensips with openxcap. XCAP documents are modified and subscribe/notify/watcher procedures are fine with third party SIP clients. I am in the process of testing my presence user agent in this setup. While trying to add a new contact, I get a 401 unauthorized response. The 401 sent by OpenXCAP is wrong as it has a malformed WWW-Authenticate header: http://openxcap.org/ticket/121 Perhaps it works with some devices/softphones ignoring the invalid \n character in opaque field. However a HTTP strict client will fail (as EyeBeam does). Anyhow it seems that nobody cares this bug (no response, comment or bug confirmation in 3 months). I tryed to find it but I haven't good Python skills. As a dirty workaround you can use Basic authentication. However note that some clients (as EyeBeam) don't support Basic authentication. Regards. -- Inaki Baz Castillo i...@aliax.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration
T 2009/10/14 21:17:24.833815 10.254.140.202:34878 - 10.89.10.235:80 [AP] GET /xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40imsdem o.com/directory.xml HTTP/1.1. Host: 10.89.10.235:80. Content-length: 0. Connection: keep-alive. . ## T 2009/10/14 21:17:24.835431 10.89.10.235:80 - 10.254.140.202:34878 [AP] HTTP/1.1 401 Unauthorized. Date: Wed, 14 Oct 2009 12:17:24 GMT. Content-Length: 141. Content-Type: text/html. WWW-Authenticate: basic realm=imsdemo.com. Server: OpenXCAP/1.1.2. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Inaki Baz Castillo Sent: Wednesday, October 14, 2009 8:56 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration El Miércoles, 14 de Octubre de 2009, Sanjeev BA escribió: Even with basic authentication, OpenXCAP returns 401 - UnAuthorized response for a XCAP GET request. And I have 10.0.0.0/24 in my trusted peer list of openxcap config. Not sure what is the issue here. Please help. Get a capture of the HTTP traffic *in the server*: ngrep -d eth0 -W byline -T -i -t port OPENXCAP_LISTEN_PORT and paste it here. -- Iñaki Baz Castillo i...@aliax.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS returns 400 Bad Request for PUBLISH
Hi, After debugging I figured out that the client was sending an empty publish. I could correct the issue in the client. Thanks for your support. Regards Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Saul Ibarra Sent: Wednesday, October 14, 2009 11:54 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] OpenSIPS returns 400 Bad Request for PUBLISH Who is sending that empty publish request? On Wed, Oct 14, 2009 at 8:14 AM, Sanjeev BA as290...@samsung.com wrote: Thanks for the reply. First error I have been able to resolve. This is my presence handling script. route { ... ? ? ? ?if( is_method(PUBLISH|SUBSCRIBE)) ? ? ? ? ? ? ? ? ? ? ? ?route(2); ... } route[2] { ? ? ? ?if (!t_newtran()) ? ? ? ?{ ? ? ? ? ? ? ? ?sl_reply_error(); ? ? ? ? ? ? ? ?exit; ? ? ? ?}; ? ? ? ?if(is_method(PUBLISH)) ? ? ? ?{ ? ? ? ? ? ? ? ?handle_publish(); ? ? ? ? ? ? ? ?#t_release(); ? ? ? ?} ? ? ? ?else ? ? ? ?if( is_method(SUBSCRIBE)) ? ? ? ?{ ? ? ? ? ? ? ? ?handle_subscribe(); ? ? ? ? ? ? ? ?#t_release(); ? ? ? ?} ? ? ? ?exit; } Regards, Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Saul Ibarra Sent: Wednesday, October 14, 2009 2:26 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] OpenSIPS returns 400 Bad Request for PUBLISH Error messages are quite descriptive ;) You've tried to record_route that PUBLISH request twice... and also the content length it's zero so what does that PUBLISH actulally 'mean'? Maybe if you show us some little piece of your script (the one andling the publish stuff) we could help you on the first error. On Wed, Oct 14, 2009 at 7:19 AM, Sanjeev BA as290...@samsung.com wrote: Error logs from OpenSIPS console. Oct 14 14:01:46 [4880] DBG:core:parse_msg:? method:? PUBLISH Oct 14 14:01:46 [4880] DBG:core:parse_msg:? uri: sip:tes...@imsdemo.com Oct 14 14:01:46 [4880] DBG:core:parse_msg:? version: SIP/2.0 Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=2 Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: cseq CSeq: 1 PUBLISH Oct 14 14:01:46 [4880] DBG:core:parse_to: end of header reached, state=10 Oct 14 14:01:46 [4880] DBG:core:parse_to: display={}, ruri={sip:tes...@imsdemo.com} Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: To [27]; uri=[sip:tes...@imsdemo.com] Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: to body [sip:tes...@imsdemo.com ] Oct 14 14:01:46 [4880] DBG:core:parse_via_param: found param type 232, branch = z9hG4bK2559870494smg; state=6 Oct 14 14:01:46 [4880] DBG:core:parse_via_param: found param type 238, transport = UDP; state=16 Oct 14 14:01:46 [4880] DBG:core:parse_via: end of header reached, state=5 Oct 14 14:01:46 [4880] DBG:core:parse_headers: via found, flags=2 Oct 14 14:01:46 [4880] DBG:core:parse_headers: this is the first via Oct 14 14:01:46 [4880] DBG:core:receive_msg: After parse_msg... Oct 14 14:01:46 [4880] DBG:core:receive_msg: preparing to run routing scripts... Oct 14 14:01:46 [4880] DBG:maxfwd:is_maxfwd_present: value = 70 Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=80 Oct 14 14:01:46 [4880] DBG:uri:has_totag: no totag Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=78 Oct 14 14:01:46 [4880] DBG:tm:t_lookup_request: start searching: hash=30511, isACK=0 Oct 14 14:01:46 [4880] DBG:tm:matching_3261: RFC3261 transaction matching failed Oct 14 14:01:46 [4880] DBG:tm:t_lookup_request: no transaction found Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=200 Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: content_length=0 Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: found end of header Oct 14 14:01:46 [4880] DBG:rr:find_first_route: No Route headers found Oct 14 14:01:46 [4880] DBG:rr:loose_route: There is no Route HF Oct 14 14:01:46 [4880] ERROR:rr:w_record_route: Double attempt to record-route Oct 14 14:01:46 [4880] DBG:core:grep_sock_info: checking if host==us: 11==12 ? [imsdemo.com] == [10.89.10.235] Oct 14 14:01:46 [4880] DBG:core:grep_sock_info: checking if port 5060 matches port 5060 Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags= Oct 14 14:01:46 [4880] DBG:presence:search_event: start event= [presence] Oct 14 14:01:46 [4880] DBG:presence:handle_publish: SIP-If-Match header not found Oct 14 14:01:46 [4880] DBG:presence:generate_ETag: etag= a.1255496470.4880.1.0 / 21 Oct 14 14:01:46 [4880] DBG:presence:handle_publish: new etag? = a.1255496470.4880.1.0 Oct 14 14:01:46 [4880] DBG:presence:handle_publish: Expires header found, value= 3600 Oct 14 14:01:46 [4880] ERROR:presence:handle_publish: No E-Tag and no body found Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags= Oct 14 14:01:46 [4880] DBG:core:check_via_address: params 10.254.140.195, 10.254.140.195, 0 Oct 14 14
Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration
: binascii.Error: Incorrect padding -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Inaki Baz Castillo Sent: Wednesday, October 14, 2009 9:41 PM To: users@lists.opensips.org Subject: Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration El Miércoles, 14 de Octubre de 2009, Sanjeev BA escribió: T 2009/10/14 21:17:24.833815 10.254.140.202:34878 - 10.89.10.235:80 [AP] GET /xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40imsde m o.com/directory.xml HTTP/1.1. Host: 10.89.10.235:80. Content-length: 0. Connection: keep-alive. . ## T 2009/10/14 21:17:24.835431 10.89.10.235:80 - 10.254.140.202:34878 [AP] HTTP/1.1 401 Unauthorized. Date: Wed, 14 Oct 2009 12:17:24 GMT. Content-Length: 141. Content-Type: text/html. WWW-Authenticate: basic realm=imsdemo.com. Server: OpenXCAP/1.1.2. Doesn't the client send a new GET request containing credentials after that 401??? Note however that, theorically, XCAP doesn't allow Basic authentication, but just Digest. And some clients (as EyeBeam) just implements Digest. If you client doesn't re-send the request with credentials upon receipt of 401 then: - Your XCAP client doesn't support Basic. - You XCAP client doesn't like the 401 for any other reason. -- Iñaki Baz Castillo i...@aliax.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration
Has anyonbe been able to make OpenXCAP work with OpenSIPS using digest authentication?I am seeing an error in twisted/web2 python script, but I do not know how to fix it. I cannot proceed any further due to the error detailed below. Any help regarding this issue would be highly appreciated. Thanks in advance, Regards Sanjeev -Original Message- From: Sanjeev BA [mailto:as290...@samsung.com] Sent: Thursday, October 15, 2009 8:50 AM To: 'OpenSIPS users mailling list' Subject: RE: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration Yes. Here's the sequence. After changing to digest, I can observe a 500 Internal Server Error in the OpenXCAP server. Logs are provided below. Client Request T 2009/10/15 08:42:04.997913 10.254.140.240:43525 - 10.89.10.235:80 [AP] GET /xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40imsdem o.com/directory.xml HTTP/1.1. Host: 10.89.10.235:80. Content-length: 0. Connection: keep-alive. . 401 Response ## T 2009/10/15 08:42:05.106696 10.89.10.235:80 - 10.254.140.240:43525 [AP] HTTP/1.1 401 Unauthorized. Date: Wed, 14 Oct 2009 23:42:05 GMT. Content-Length: 141. Content-Type: text/html. WWW-Authenticate: digest nonce=62026475982401434245613, opaque=23870f726b78fb5d872eced92ca0c1dd-NjI0NDQ0MDI2NDc1OTgyNDAxNDM0MjQ1NjE zLDEwLjI1NC4xNDAuMjQwLDEyNTU1NjM3MjU=, realm=imsdemo.com, algorithm=MD5, qop=auth. Server: OpenXCAP/1.1.2.. Date: Wed, 14 Oct 2009 12:17:24 GMT. Content-Length: 141. Content-Type: text/html. WWW-Authenticate: basic realm=imsdemo.com. Server: OpenXCAP/1.1.2. . htmlheadtitleUnauthorized/title/headbodyh1Unauthorized/h1p You are not authorized to access this resource./p/body/html Second GET from client # T 2009/10/15 08:42:05.378179 10.254.140.240:43527 - 10.89.10.235:80 [AP] GET /xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40imsdem o.com/directory.xml HTTP/1.1. Host: 10.89.10.235:80. Authorization: Digest username=tester, realm=imsdemo.com, qop=auth, nonce=62026475982401434245613, algorithm=MD5, uri=/xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40i msdemo.com/directory.xml, response=, cnonce=poc123test, opaque=23870f726b78fb5d872eced92ca0c1dd-NjI0NDQ0MDI2NDc1OTgyNDAxNDM0MjQ1NjE zLDEwLjI1NC4xNDAuMjQwLDEyNTU1NjM., nc=0001. Content-length: 0. Connection: keep-alive. 500 Internal Server Error ## T 2009/10/15 08:42:05.387184 10.89.10.235:80 - 10.254.140.240:43527 [AP] HTTP/1.1 500 Internal Server Error. Date: Wed, 14 Oct 2009 23:42:05 GMT. Content-Length: 96. Content-Type: text/plain. Server: OpenXCAP/1.1.2. . An error occurred while processing the request. More information is available in the server log. XCAP Server Error Log. 10.254.140.240 'GET /xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40imsdem o.com/directory.xml HTTP/1.1' 401 0 141 - - REQUEST headers: Host: 10.89.10.235:80 NjI0NDQ0MDI2NDc1OTgyNDAxNDM0MjQ1NjEzLDEwLjI1NC4xNDAuMjQwLDEyNTU1NjM error: 10.254.140.240 'GET /xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40imsdem o.com/directory.xml HTTP/1.1' 500 0 96 - - error: REQUEST headers: error: Host: 10.89.10.235:80 error: Authorization: Digest username=tester, realm=imsdemo.com, qop=auth, nonce=62026475982401434245613, algorithm=MD5, uri=/xcap-root/org.openmobilealliance.xcap-directory/users/sip%3Atester%40i msdemo.com/directory.xml, response=, cnonce=poc123test, opaque=23870f726b78fb5d872eced92ca0c1dd-NjI0NDQ0MDI2NDc1OTgyNDAxNDM0MjQ1NjE zLDEwLjI1NC4xNDAuMjQwLDEyNTU1NjM, nc=0001 error: RESPONSE headers: error: Content-Type: text/plain error: RESPONSE: Content-Type: text/plain error: An error occurred while processing the request. More information is available in the server log. error: TRACEBACK (most recent call last): error:File /usr/lib/python2.5/site-packages/twisted/web2/server.py, line 268, in lambda error: d.addCallback(lambda res, req: res.renderHTTP(req), self) error:File /usr/lib/python2.5/site-packages/xcap/authentication.py, line 284, in renderHTTP error: d = self.authenticate(request) error:File /usr/lib/python2.5/site-packages/xcap/authentication.py, line 212, in authenticate error: (request,), None) error:File /usr/lib/python2.5/site-packages/twisted/internet/defer.py, line 186, in addCallbacks error: self._runCallbacks() error: --- exception caught here --- error:File /usr/lib/python2.5/site-packages/twisted/internet/defer.py, line 328, in _runCallbacks error: self.result = callback(self.result, *args, **kw) error:File /usr/lib/python2.5/site-packages/xcap/authentication.py, line 217, in _trustedPeerLoginFailed error: return HTTPAuthResource.authenticate(self, request) error:File /usr/lib/python2.5/site-packages/twisted/web2/auth/wrapper.py, line 181, in authenticate error: authHeader[1], request) error:File /usr/lib/python2.5/site-packages/twisted/web2/auth/wrapper.py, line 145, in login error: creds = factory.decode
Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration
Hi, With XCAP auth scheme set to basic I do observe the same issue as mentioned in the ticket. I tried changing the XCAP authentication scheme from basic to digest. After this change, xdm client posted a second PUT with Auth details, but this time the server returned 500 Internal server error. Internally, I can see an OpenXCAP failure in base64.decodestring(input) Error base64.py, line 321 ... return bin2ascii.a2b_base64(s) incorrect padding. Not sure how to resolve this. Regards, Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Inaki Baz Castillo Sent: Tuesday, October 13, 2009 4:39 PM To: users@lists.opensips.org Subject: Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration El Martes, 13 de Octubre de 2009, Sanjeev BA escribió: I use Pytho-twisted 8.2.0-1ubuntu1on Ubuntu 8.04.3 Have you checked if your issue is the same as the report?: http://openxcap.org/ticket/121 Thanks. -- Iñaki Baz Castillo i...@aliax.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Are user registrations stored?
Hi, I think I did not state my problem clearly. I restart both opensips and my sip client. After restart of both opensips and sip client, the sip client registers with a new Contact. Since I DO NOT want registration persistence across restarts, I have set the db_mode param to 0. Inspite of this, opensips remembers the previous Contacts of my sip client. (I can see the older contacts in 200 OK of REGISTER) This is my issue. Thanks and Regards, Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Tuesday, October 13, 2009 11:15 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Are user registrations stored? Sanjeev BA wrote: Here is the problem I have. I typically restart opensips multiple times and after each restart, my sip client REGISTERS with a new IP. you restart opensips and the SIP client gets a new IP ? ? ? hard to belive it as there is no connection between the 2 actions. However, opensips seems to remember all the old Contacts as I can see them listed in the 200 OK. The param is set to 0. the param must be different than 0 to get registration persistence across restarts. Regards, Bogdan Please advice. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Tuesday, October 13, 2009 12:03 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Are user registrations stored? Hi Sanjeev, Sanjeev BA wrote: Hi, Between two successive runs of opensips, are user registrations stored in a temporary file (or) DB? Could you please provide me the details of the file or table name? USRLOC module does persistence across reboots via DB (table location). But if the DB is used by the module, and how it is used, depends on the db_mode param. See: http://www.opensips.org/html/docs/modules/1.5.x/usrloc.html#id227873 By default, the mode is 0 - no persistence, so you need to explicitly set it to another value to get the DB persistence. Regards, Bogdan Regards Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OpenSIPS returns 400 Bad Request for PUBLISH
Hi, I am observing an error response from OpenSIPS. It returns 400 Bad Request for the following PUBLISH request. PUBLISH sip:tes...@imsdemo.com SIP/2.0 Expires: 3600 Event: presence Privacy: None Accept-Contact: *;+g.3gpp.Pua;explicit Contact: sip:tes...@10.10.10.20 Call-ID: 2189952...@imsdemo.com CSeq: 1 PUBLISH Max-Forwards: 70 From: sip:tes...@imsdemo.com;tag=1842963402 To: sip:tes...@imsdemo.com Via:SIP/2.0/UDP 10.254.140.195:5060;branch=z9hG4bK132770389smg;transport=UDP Content-Length: 0 Regards, Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS returns 400 Bad Request for PUBLISH
Error logs from OpenSIPS console. Oct 14 14:01:46 [4880] DBG:core:parse_msg: method: PUBLISH Oct 14 14:01:46 [4880] DBG:core:parse_msg: uri: sip:tes...@imsdemo.com Oct 14 14:01:46 [4880] DBG:core:parse_msg: version: SIP/2.0 Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=2 Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: cseq CSeq: 1 PUBLISH Oct 14 14:01:46 [4880] DBG:core:parse_to: end of header reached, state=10 Oct 14 14:01:46 [4880] DBG:core:parse_to: display={}, ruri={sip:tes...@imsdemo.com} Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: To [27]; uri=[sip:tes...@imsdemo.com] Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: to body [sip:tes...@imsdemo.com ] Oct 14 14:01:46 [4880] DBG:core:parse_via_param: found param type 232, branch = z9hG4bK2559870494smg; state=6 Oct 14 14:01:46 [4880] DBG:core:parse_via_param: found param type 238, transport = UDP; state=16 Oct 14 14:01:46 [4880] DBG:core:parse_via: end of header reached, state=5 Oct 14 14:01:46 [4880] DBG:core:parse_headers: via found, flags=2 Oct 14 14:01:46 [4880] DBG:core:parse_headers: this is the first via Oct 14 14:01:46 [4880] DBG:core:receive_msg: After parse_msg... Oct 14 14:01:46 [4880] DBG:core:receive_msg: preparing to run routing scripts... Oct 14 14:01:46 [4880] DBG:maxfwd:is_maxfwd_present: value = 70 Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=80 Oct 14 14:01:46 [4880] DBG:uri:has_totag: no totag Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=78 Oct 14 14:01:46 [4880] DBG:tm:t_lookup_request: start searching: hash=30511, isACK=0 Oct 14 14:01:46 [4880] DBG:tm:matching_3261: RFC3261 transaction matching failed Oct 14 14:01:46 [4880] DBG:tm:t_lookup_request: no transaction found Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=200 Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: content_length=0 Oct 14 14:01:46 [4880] DBG:core:get_hdr_field: found end of header Oct 14 14:01:46 [4880] DBG:rr:find_first_route: No Route headers found Oct 14 14:01:46 [4880] DBG:rr:loose_route: There is no Route HF Oct 14 14:01:46 [4880] ERROR:rr:w_record_route: Double attempt to record-route Oct 14 14:01:46 [4880] DBG:core:grep_sock_info: checking if host==us: 11==12 [imsdemo.com] == [10.89.10.235] Oct 14 14:01:46 [4880] DBG:core:grep_sock_info: checking if port 5060 matches port 5060 Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags= Oct 14 14:01:46 [4880] DBG:presence:search_event: start event= [presence] Oct 14 14:01:46 [4880] DBG:presence:handle_publish: SIP-If-Match header not found Oct 14 14:01:46 [4880] DBG:presence:generate_ETag: etag= a.1255496470.4880.1.0 / 21 Oct 14 14:01:46 [4880] DBG:presence:handle_publish: new etag = a.1255496470.4880.1.0 Oct 14 14:01:46 [4880] DBG:presence:handle_publish: Expires header found, value= 3600 Oct 14 14:01:46 [4880] ERROR:presence:handle_publish: No E-Tag and no body found Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags= Oct 14 14:01:46 [4880] DBG:core:check_via_address: params 10.254.140.195, 10.254.140.195, 0 Oct 14 14:01:46 [4880] DBG:sl:run_sl_callbacks: callback id 0 entered Oct 14 14:01:46 [4880] DBG:tm:t_newtran: transaction on entrance=(nil) Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags= Oct 14 14:01:46 [4880] DBG:core:parse_headers: flags=78 Oct 14 14:01:46 [4880] DBG:tm:t_lookup_request: start searching: hash=30511, isACK=0 Oct 14 14:01:46 [4880] DBG:tm:matching_3261: RFC3261 transaction matching failed Oct 14 14:01:46 [4880] DBG:tm:t_lookup_request: no transaction found Oct 14 14:01:46 [4880] DBG:tm:run_reqin_callbacks: trans=0xb3a09a30, callback type 1, id 0 entered Oct 14 14:01:46 [4880] DBG:tm:cleanup_uac_timers: RETR/FR timers reset Oct 14 14:01:46 [4880] DBG:tm:insert_timer_unsafe: [2]: 0xb3a09a78 (41) Oct 14 14:01:46 [4880] DBG:tm:t_unref: UNREF_UNSAFE: after is 0 Oct 14 14:01:46 [4880] DBG:core:destroy_avp_list: destroying list (nil) Oct 14 14:01:46 [4880] DBG:core:receive_msg: cleaning up Oct 14 14:01:51 [4885] DBG:tm:timer_routine: timer routine:2,tl=0xb3a09a78 next=(nil), timeout=41 Oct 14 14:01:51 [4885] DBG:tm:wait_handler: removing 0xb3a09a30 from table Oct 14 14:01:51 [4885] DBG:tm:delete_cell: delete transaction 0xb3a09a30 Oct 14 14:01:51 [4885] DBG:tm:wait_handler: done Oct 14 14:02:50 [4885] DBG:presence:update_db_subs: delete expired Oct 14 14:02:50 [4885] DBG:db_mysql:db_mysql_do_prepared_query: conn=0x8167ee8 (tail=135699504) MC=0x816ba48 Oct 14 14:02:50 [4885] DBG:db_mysql:db_mysql_do_prepared_query: new query=|delete from active_watchers where expires?| Oct 14 14:02:50 [4885] DBG:db_mysql:db_mysql_do_prepared_query: new statement(0x8169f70) on connection: (0x8167ee8) 0x8169c30 Oct 14 14:02:50 [4885] DBG:db_mysql:db_mysql_do_prepared_query: set values for the statement run Oct 14 14:02:50 [4885] DBG:db_mysql:db_mysql_val2bind: added val (0): len=4; type=3; is_null=0 Oct 14 14:02:50 [4885]
Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration
Thanks for the clarification. Regards, Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Inaki Baz Castillo Sent: Monday, October 12, 2009 9:14 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration El Lunes, 12 de Octubre de 2009, Sanjeev BA escribió: Thanks for the quick reply. I would like to know if there is a way to get rid of OpenXCAP and let OpenSIPS perform the role of XDM server as well. Is this possible? Are there any XDMS modules for OpenSIPS? Not sure what you mean. OpenSIPS acts, in this case, as presence server while OpenXCAP acts as a XCAP server. OpenSIPS presence_xml module reads the XCAP documents from database. Other approach is using xcap_client module so OpenSIPS will fetch the document fomr the XCAP server using HTTP/XCAP protocol. About XDM, note that OpenSIPS and OpenXCAP don't implement OMA's stuf. Instead they implement IETF pure SIMPLE/SCAP protocol (which is a specification that doesn't exist at all). -- Iñaki Baz Castillo i...@aliax.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration
I use Pytho-twisted 8.2.0-1ubuntu1on Ubuntu 8.04.3 Regards, Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Inaki Baz Castillo Sent: Tuesday, October 13, 2009 12:04 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] OpenSIPS - OpenXCAP integration El Lunes, 12 de Octubre de 2009, Adrian Georgescu escribio: We will address this issue. Thanks. Just to add more info, I use Debian Leeny 64 bits so Twisted version is 8.1.0: ii python-twisted-bin 8.1.0-4 ii python-twisted-conch1:8.1.0-1 ii python-twisted-core 8.1.0-4 ii python-twisted-names8.1.0-1 ii python-twisted-web 8.1.0-1 ii python-twisted-web2 8.1.0-1 -- Inaki Baz Castillo i...@aliax.net ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Are user registrations stored?
Hi, Between two successive runs of opensips, are user registrations stored in a temporary file (or) DB? Could you please provide me the details of the file or table name? Regards Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Are user registrations stored?
Here is the problem I have. I typically restart opensips multiple times and after each restart, my sip client REGISTERS with a new IP. However, opensips seems to remember all the old Contacts as I can see them listed in the 200 OK. The param is set to 0. Please advice. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Tuesday, October 13, 2009 12:03 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Are user registrations stored? Hi Sanjeev, Sanjeev BA wrote: Hi, Between two successive runs of opensips, are user registrations stored in a temporary file (or) DB? Could you please provide me the details of the file or table name? USRLOC module does persistence across reboots via DB (table location). But if the DB is used by the module, and how it is used, depends on the db_mode param. See: http://www.opensips.org/html/docs/modules/1.5.x/usrloc.html#id227873 By default, the mode is 0 - no persistence, so you need to explicitly set it to another value to get the DB persistence. Regards, Bogdan Regards Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OpenSIPS - OpenXCAP integration
Hi, I have successfully been able to test opensips with openxcap. XCAP documents are modified and subscribe/notify/watcher procedures are fine with third party SIP clients. I am in the process of testing my presence user agent in this setup. While trying to add a new contact, I get a 401 unauthorized response. Subscriber table has the entry for the user. OpenXCAP uses OpenSIPS backend with basic authentication. OpenSIPS operates with mi_proxy module. Content Type = application/resource-list+xml The XCAP request is as follows. ?xml version=1.0 encoding=UTF-8? resource-lists xmlns=urn:ietf:params:xml:ns:resource-lists xmlns:oma=urn:oma:params:ns:resource-list:oma-uriusage list name=sip:frie...@imsdemo.com display-namefriends/display-name /list /resource-lists Are there any changes required in openxcap/opensips setup to support this PUT request? Please advice. Regards, Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OpenXCAP-OpenSIPS
Hi, I am trying to get OpenSIPS working with OpenXCAP. Has anyone in the group, tried this before? OpenXCAP best practices mentions the following. The rpc management interface exposed by OpenSER needs to be protected by iptables or other methods otherwise is reachable from the network. The mi_xmlrpc seem to freeze with no reason after awhile, a restart of the proxy is necessary, next version will use the datagram interface which seem to be more stable. Avoid using built-in rpc management interface above and use http://download.ag-projects.com/OpenXCAP/ opensips-mi-proxy package, it provides both access list and stable control interface Does this still hold true? Is there an associated email thread which discusses how to setup OpenXCAP with OpenSIPS? Please advice. Regards Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] problem starting XCAP server on redhat linux
Try executing with the --no-fork option. It may give you some clue. Regards Sanjeev -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Peter Lemenkov Sent: Wednesday, October 07, 2009 8:58 PM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] problem starting XCAP server on redhat linux 2009/10/7 Susheela sushee...@alcatel-lucent.com: Hi, ? I am new to openxcap, have installed Version 1.1.2 on redhat linux box, but having problem while starting the server. ?looks like it is failing at process.daemonize(pidFile) There are various possible reasons (perhaps, you'll need superuser's privileges for creating pid-file - just my guess), so I cannot say something valuable here. However, I advice you to grab srpm-file from there and test it. https://bugzilla.redhat.com/show_bug.cgi?id=525432 -- With best regards, Peter Lemenkov. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Login to OpenSIPS website
Hi, I have been trying to login to OpenSIPS website using the Login option. However, everytime I click on the confirmation email link, I see a webpage with error messages. From existing email account. Error: Your email link is not synchronized with the state of the password file. Please reissue your change-password request. (or) From Gmail Please use the link provided in the email to access this page. Has anyone faced this issue before? Please advice. Regards, Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] NOTIFY Help
Hi, Kindly help me to resolve the following issue. SIP client executing in VMWare on windows (host connection shared). OpenSIPS is Registrar+Proxy+Presence Server mode. SIP client sends REGISTER SUBSCRIBE using VMNet Private IP address (u...@192.168.x.x). Windows host, forwards the msg and the 200 OKs back to client. When OpenSIPS sends NOTIFY, it sends it to the private IP 192.168.X.X. Is there a way to make OpenSIPS send the NOTIFY to windows host? Regards, Sanjeev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users