[SR-Users] Publish XML and xpath
Igor Olhovskiy
igorolhovskiy at gmail.com
Thu Feb 10 16:01:17 CET 2022
Hello,
I'm trying to get state of endpoint from PUBLISH message in a most
simple way using xmlops module
Trying to make this
$xml(body=>doc) = $rb;
log("L_ERR", "$rU is now in state $xml(body=>xpath:/dialog-info/dialog/state)\n");
XML in PUBLISH itself
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:88881 at dev.company">
<dialog id="v6qmEYf5yI" direction="initiator">
<state>confirmed</state>
</dialog>
</dialog-info>
Actual text in log is
... <script>: 88881 is now in state
Means it's empty. xmlops module is loaded with no parameters. Tried also
string
$xml(body=>xpath:/dialog-info/dialog/state/text())
-> same result
What am I missing here?
kamailio 5.4.6
--
Thanks in advance,
Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220210/1cedb823/attachment.htm>
More information about the sr-users
mailing list