Hi,
I have been experimenting with uploading, and modifying existing, XCAP
documents. I have been trying out the example from RFC 4827 and I can't
get it to work with Kamailio.
To upload the document (this works) I use the command: curl --digest -u
111:111 -T pidf.xml -X PUT
http://192.168.0.130:5060/xcap-root/pidf-manipulation/users/sip:111@mydomai…
To modify the document (this doesn't work) I use the command: curl
--digest -u 111:111 -T pidf_modify.xml -H "Content-Type:
application/xcap-el+xml" -X PUT
http://192.168.0.130:5060/xcap-root/pidf-manipulation/users/sip:111@mydomai…'x8eg92n'%5d/note
When I try to modify the document I get the error: "Apr 4 17:12:08
pd-laptop-linux kamailio[16862]: ERROR: xcap_server [xcap_server.c:596]:
no new content"
I went through the XCAP server code and added some debug and found that
the check on xcap_misc.c:491 is succeeding (which means "no selection
for xpath parent expression") and the document is not being changed.
Also, from my limited understanding of XPath and libxml2, I would have
expected the code path which should have been followed to go through the
else clause of the conditional on xcap_misc.c:468 - which means I don't
think that the xcaps_xpath_set() function is doing the right thing at
all.
Is there anyone here that is more familiar with libxml2 that can give me
any pointers here. As far as I can tell the XCAP server code looks OK
to me, and I believe the documents (attached) and my XCAP queries are
correct as well.
Thanks,
Peter
--
Peter Dunkley
Technical Director
Crocodile RCS Ltd
recently there has been commits that cause compiler warnings shown
below.
please fix or revert the commits.
-- juha
action.c: In function ‘run_actions’:
action.c:1583: warning: ‘ms’ may be used uninitialized in this function
CC (cc) [sip-proxy] msg_translator.o
msg_translator.c: In function ‘lumps_len’:
msg_translator.c:582: warning: ‘recv_address_str’ may be used uninitialized in this function
msg_translator.c:583: warning: ‘recv_port_str’ may be used uninitialized in this function
msg_translator.c:584: warning: ‘recv_port_no’ may be used uninitialized in this function
msg_translator.c: In function ‘process_lumps’:
msg_translator.c:921: warning: ‘recv_address_str’ may be used uninitialized in this function
msg_translator.c:922: warning: ‘recv_port_str’ may be used uninitialized in this function
msg_translator.c:923: warning: ‘recv_port_no’ may be used uninitialized in this function
CC (cc) [L libsrdb1.so.1.0] db_query.o
db_query.c: In function ‘db_do_submit_query’:
db_query.c:50: warning: ‘ms’ may be used uninitialized in this function
CC (cc) [M textops.so] textops.o
textops.c: In function ‘subst_hf_f’:
textops.c:2242: warning: ‘hfl’ may be used uninitialized in this function
textops.c: In function ‘search_hf_f’:
textops.c:2161: warning: ‘hfl’ may be used uninitialized in this function
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#76 - Debian build of berkeley module fails on debian etch
User who did this - Daniel-Constantin Mierla (miconda)
Reason for closing: Fixed
Additional comments about closing: The spec files are now specific per debian version.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=76
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#25 - Strange symbols in NOTIFY dialog-info+xml body
User who did this - Daniel-Constantin Mierla (miconda)
Reason for closing: Fixed
Additional comments about closing: I added a safety check for placeholder of version attribute -- closing this item because it is aged. Open a new one with debug messages if still an issue.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=25
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Module: sip-router
Branch: master
Commit: f9589ba8fde7dc30ff98fee225e16c3f5440b213
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f9589ba…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Apr 4 12:14:40 2012 +0200
presence_dialoginfo: safety check for version placeholder
- don't set version attribute if the expected placeholder is not in
place - related to FS#25
---
modules_k/presence_dialoginfo/notify_body.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules_k/presence_dialoginfo/notify_body.c b/modules_k/presence_dialoginfo/notify_body.c
index efa3b45..6a63d3e 100644
--- a/modules_k/presence_dialoginfo/notify_body.c
+++ b/modules_k/presence_dialoginfo/notify_body.c
@@ -316,6 +316,11 @@ str *dlginfo_body_setversion(subs_t *subs, str *body) {
}
version_start += 9;
+ /* safety check for placeholder - if it is body not set by the module,
+ * don't update the version */
+ if(strncmp(version_start, "00000000000\"", 12)!=0)
+ return NULL;
+
version_len = snprintf(version, MAX_INT_LEN + 2,"%d\"", subs->version);
if (version_len >= MAX_INT_LEN + 2) {
LM_ERR("failed to convert 'version' to string\n");