[SR-Users] Kamailio geolocation module
Daniel-Constantin Mierla
miconda at gmail.com
Mon Nov 23 21:34:41 CET 2015
Hello,
you should be able to extract the value of <gml:pos> node using the
re.subst transformation over $rb variables:
https://www.kamailio.org/wiki/cookbooks/devel/transformations#resubst_expression
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.
Cheers,
Daniel
On 23/11/15 14:52, Mititelu Stefan wrote:
> Hi,
>
> On Mon, Nov 23, 2015 at 10:38 AM, Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
> If you need to do some kind of processing based on geolocation data,
> then describe a bit more about what you want to achieve, kamailio
> has a
> lot of configuration file tools that may help (e.g., xml parser with
> xpath support -- xmlops module).
>
>
> Yes, I am thinking of the capability to extract that geolocation data
> from the xml (when the "Geolocation-Routing: yes").
>
> 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:
> - save the initial value of this call
> - compute the value difference relative to the initial value (as
> geolocation data is received for further messages)
> - trigger something when a certain difference is reached (e.g. log a
> message)
>
> Can I approach this somehow with current Kamailio?
>
> Thanks,
> Stefan
>
> [1] https://tools.ietf.org/html/rfc6442#page-11
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151123/5ce9f5fa/attachment.html>
More information about the sr-users
mailing list