[sr-dev] [kamailio/kamailio] extensions to lost and http_client modules (#2675)

Wolfgang Kampichler notifications at github.com
Sun Apr 4 22:12:24 CEST 2021


> Use case when the call contains two `Geolocation` headers. Related `geoheader_type` param.
> 
> Example
> 
> ```
> Geolocation: <http://example.org/held-link>
> Geolocation: <cid:7607331117 at 10.3.90.20>
> ```
> 
> Technically such a call contains Geolocacation by_value and does not require deference first Geolocation header by_reference.
> 
> From my point of view.
> When used `emergencyRouting` routing need to prefer Geolocation by_value. This alow delivered call with minimal delays but maybe with low accuracy.
> When used `emergencyDispatch` routing needs to prefer Geolocation by_reference. This alow send HELD request to a mobile carrier and get latest mobile device location.
> 
> Technically on Kamailio maybe used `emergencyRouting` and on `PSAP` used `emergencyDispatch`.
> 
> So as idea, in lost request check the number of present Geolocation headers, if present more than one header:
> 
>     1. and used `emergencyRouting` then try search `by_value` Geolocation;
> 
>     2. and used `emergencyDispatch` then try to search and dereference `by_reference` Geolocation.

@sergey-safarov: basically that is what `lost_query` (lost_function) does. You may set the param `geoheader_type` to get only cid values (LocByValue) - in case there are several Geoloc header providing a cid you may either pick the first or the last one (`geoheader_order`).


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2675#issuecomment-813092845
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210404/6df230a5/attachment-0001.htm>


More information about the sr-dev mailing list