<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
you should be able to extract the value of <gml:pos> node
using the re.subst transformation over $rb variables:<br>
<br>
<a class="moz-txt-link-freetext" href="https://www.kamailio.org/wiki/cookbooks/devel/transformations#resubst_expression">https://www.kamailio.org/wiki/cookbooks/devel/transformations#resubst_expression</a><br>
<br>
I noticed we have functions only to append, set and remove a part of
multipart body. I plan to add the function to get a content of a
multipart body, that will make it work then with xmlops module for
this particular case.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 23/11/15 14:52, Mititelu Stefan
wrote:<br>
</div>
<blockquote
cite="mid:CAO7wsJsqz7GPAApO4Q+1u0eESvELA=g=_WPXqw9cvUk-Wxk-uA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 23, 2015 at 10:38 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
If you need to do some kind of processing based on
geolocation data,<br>
then describe a bit more about what you want to achieve,
kamailio has a<br>
lot of configuration file tools that may help (e.g., xml
parser with<br>
xpath support -- xmlops module).<br>
</blockquote>
<div><br>
</div>
<div>Yes, I am thinking of the capability to extract that
geolocation data from the xml (when the
"Geolocation-Routing: yes").<br>
<br>
Consider the example from the section 5.1 from [1].
Suppose I want to extract "<gml:pos>32.86726
-97.16054</gml:pos>" data and do some processing
with it:<br>
</div>
<div>- save the initial value of this call<br>
</div>
<div>- compute the value difference relative to the initial
value (as geolocation data is received for further
messages)<br>
</div>
<div>- trigger something when a certain difference is
reached (e.g. log a message)<br>
<br>
</div>
<div>Can I approach this somehow with current Kamailio?<br>
</div>
<div><br>
</div>
<div>Thanks,<br>
</div>
<div>Stefan<br>
<br>
[1] <a moz-do-not-send="true"
href="https://tools.ietf.org/html/rfc6442#page-11">https://tools.ietf.org/html/rfc6442#page-11</a><br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/kat">http://asipto.com/kat</a></pre>
</body>
</html>