tested this config file
```
listen=udp:127.0.0.1:5060
loadmodule "xlog.so"
loadmodule "pv.so"
loadmodule "http_client.so"
loadmodule "lost.so"
loadmodule "textopsx.so"

modparam("lost", "exact_type", 1)

request_route {
  $var(geo_uri) = @hf_value.geolocation[1].uri;
  if ($(var(geo_uri){s.select,0,:}) =~ "http|https") {
    $var(res) = lost_held_dereference("$var(geo_uri)", "emergencyDispatch", 
"civic geodetic", "$var(pidf)", "$var(err)");
    xlog("L_INFO", "HELD location dereference: Result code 
$var(res)\n$var(pidf)");
  }
}
```

During URL dereferencing send this request
```
POST /webhook HTTP/1.1
Host: 217.12.247.98
User-Agent: kamailio (5.5.0-pre0 (x86_64/linux))
Content-Type: application/held+xml;charset=utf-8
Accept: application/pidf+xml,application/held+xml;q=0.5
Content-Length: 192

<?xml version="1.0"?>
<locationRequest xmlns="urn:ietf:params:xml:ns:geopriv:held" 
responseTime="emergencyDispatch"><locationType exact="false">civic 
geodetic</locationType></locationRequest>
```

According to config file `modparam("lost", "exact_type", 1)` but in real 
request send `locationType exact="false"`

-- 
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-813022331
_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to