<p></p>
<blockquote>
<p>tested config</p>
<pre><code>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)
modparam("lost", "post_request", 1)
modparam("http_client", "httpcon", "lostsrv=>http://api.example.com/api/lost");


request_route {
  $var(res) = lost_query("lostsrv", "$var(uri)", "$var(name)", "$var(err)");
  xlog("L_INFO", "LOST findService: Result code $var(res)\nUri: $var(uri)\nName: $var(name)\n");
}
</code></pre>
<p>Test with one <code>Geolocation</code> header.<br>
LOST request send with HTTP headers like</p>
<pre><code>POST /api/lost HTTP/1.1
Host: api.example.com
User-Agent: kamailio (5.5.0-pre0 (x86_64/linux))
Accept: */*
Content-Type: application/lost+xml;charset=utf-8
Content-Length: 526
</code></pre>
<p>Here may be updated</p>
<pre><code>Accept: application/lost+xml
</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>: that looks like another http_client API fix as the API call does not support to set a specific header.</p>
<blockquote>
<p>Also in Kamailio console, I can see this error message when <code>Geolocation</code> passed as a value</p>
<pre><code> 1(82) ERROR: <core> [core/parser/parse_body.c:510]: part_multipart_headers_cmp(): error code: "-9" error text: "We reached the end of the buffer".
</code></pre>
<p>Looks as here here "ERROR" level misslead.<br>
My test SIPp script attached.</p>
<p><a href="https://github.com/kamailio/kamailio/files/6255191/test_call.xml.gz">test_call.xml.gz</a></p>
<p>The script may be started using the command</p>
<pre><code>sipp -m 1 -sf test_call.xml -p 2345 127.0.0.1
</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>: I see the same ERROR, but I suspect it is more of a WARNING</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-813096928">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJKL2O4WUL44BFKVCLTHDF4LANCNFSM4ZGSJGLQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZPHTTPRXOGJTJX4OUTTHDF4LA5CNFSM4ZGSJGL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGB3N7YA.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-813096928",
"url": "https://github.com/kamailio/kamailio/pull/2675#issuecomment-813096928",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>