<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>I'm trying to get state of endpoint from PUBLISH message in a
most simple way using <font face="Courier New, Courier,
monospace">xmlops</font> module</p>
<p>Trying to make this</p>
<pre>$xml(body=>doc) = $rb;
log("L_ERR", "$rU is now in state $xml(body=>xpath:/dialog-info/dialog/state)\n");</pre>
<p>XML in PUBLISH itself</p>
<pre><?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity=<a class="moz-txt-link-rfc2396E" href="sip:88881@dev.company">"sip:88881@dev.company"</a>>
<dialog id="v6qmEYf5yI" direction="initiator">
<state>confirmed</state>
</dialog>
</dialog-info></pre>
<p><br>
</p>
<p>Actual text in log is <br>
</p>
<pre>... <script>: 88881 is now in state
</pre>
<p>Means it's empty. <font face="Courier New, Courier, monospace">xmlops</font>
module is loaded with no parameters. Tried also string <br>
</p>
<pre>$xml(body=>xpath:/dialog-info/dialog/state/text())
</pre>
<p>-> same result<br>
</p>
<p>What am I missing here?</p>
<p>kamailio 5.4.6<br>
</p>
<pre class="moz-signature" cols="72">--
Thanks in advance,
Igor</pre>
</body>
</html>