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

2. and used `emergencyDispatch` then try to search and dereference `by_reference` Geolocation.
</code></pre>
</blockquote>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/sergey-safarov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sergey-safarov">@sergey-safarov</a>: basically that is what <code>lost_query</code> (lost_function) does. You may set the param <code>geoheader_type</code> 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 (<code>geoheader_order</code>).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2675#issuecomment-813092845">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLVRQW6DT6KGML7W23THDB2RANCNFSM4ZGSJGLQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJXVBSC256CYZNE2J3THDB2RA5CNFSM4ZGSJGL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGB3M73I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2675#issuecomment-813092845",
"url": "https://github.com/kamailio/kamailio/pull/2675#issuecomment-813092845",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>