<p></p>
<p>Use case when the call contains two <code>Geolocation</code> headers.</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>
<ol>
<li>and used <code>emergencyRouting</code> then try search <code>by_value</code> Geolocation;</li>
<li>and used <code>emergencyDispatch</code> then try to search and dereference <code>by_reference</code> Geolocation.</li>
</ol>

<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-813087678">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJV5LB6DHDTBFGAKVLTHC5CFANCNFSM4ZGSJGLQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJMS3BA6BUQYXCVZXDTHC5CFA5CNFSM4ZGSJGL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGB3LXPQ.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-813087678",
"url": "https://github.com/kamailio/kamailio/pull/2675#issuecomment-813087678",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>