This issue has not been resolved. I am still getting the same error when
trying to use kamctl for anything.
I have tried all of the suggestions posted to date with no resolution. Is
there anything more I can provide to help resolve this problem?
Kurt
-----Original Message-----
From: sr-users-bounces(a)lists.sip-router.org
[mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of
sr-users-request(a)lists.sip-router.org
Sent: Monday, December 06, 2010 4:02 PM
To: sr-users(a)lists.sip-router.org
Subject: sr-users Digest, Vol 67, Issue 20
Send sr-users mailing list submissions to
sr-users(a)lists.sip-router.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
or, via email, send a message with subject or body 'help' to
sr-users-request(a)lists.sip-router.org
You can reach the person managing the list at
sr-users-owner(a)lists.sip-router.org
When replying, please edit your Subject line so it is more specific than
"Re: Contents of sr-users digest..."
Today's Topics:
1. presence_xml and xpath (Andreas Granig)
2. Re: presence_xml and xpath (Daniel-Constantin Mierla)
3. Re: presence_xml and xpath (Andreas Granig)
4. Re: presence_xml and xpath (Daniel-Constantin Mierla)
5. Re: presence_xml and xpath (Andreas Granig)
6. Re: Error opening Kamailio's FIFO (Kurt Mullen)
----------------------------------------------------------------------
Message: 1
Date: Mon, 06 Dec 2010 15:13:06 +0100
From: Andreas Granig <agranig(a)sipwise.com>
Subject: [SR-Users] presence_xml and xpath
To: sr-users(a)lists.sip-router.org
Message-ID: <4CFCEF72.4040308(a)sipwise.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
I'm having troubles fetching an xpath from an xml document using
presence_xml, so I probably do something wrong (using kamailio 3.0.x):
$xml(x=>doc) = '<?xml version="1.0"
encoding="utf-8"?><presence
xmlns="urn:ietf:params:xml:ns:pidf"
entity="sip:test@mydomain.com"><tuple
id="86ae65b7-42de-4399-b635-295caad13aac"><status><basic>none</basic></statu
s></tuple></presence>';
xlog("L_INFO", "all=$xml(x=>doc)\n");
-> prints the whole document, which is ok
xlog("L_INFO", "tmp1=$xml(x=>xpath:/)\n");
-> also prints the whole document (including the xml tag in the beginning,
not sure if this is ok)
xlog("L_INFO", "tmp2=$xml(x=>xpath:/presence)\n");
-> prints an empty string
How is this actually supposed to work? What I'd like to do in the end is
extracting for example the "none" from the "basic"-tag by specifying
"xpath:/presence/tuple/status/basic", which also returns an empty string
now, also when appended with "/text()".
Thanks a lot,
Andreas