<p></p>
<p>lost module uses the standard header parsing function. <code>lost_get_from_header</code> is just a wrapper function to return a string pointer and uses <code>parse_headers</code>, which in your case returns an error. I did use the sipp example but had no header parsing issues, see below (OS: alpine:latest docker image)</p>
<pre><code>6(13) INFO: {1 1 INVITE 1-7655@127.0.0.1} <script>: ### ESRP - INVITE request received 
Sock: tcp:172.16.16.176:38763
From: sip:sipp@127.0.0.1:2345
To:   sip:service@127.0.0.1:5060
###
 6(13) INFO: {1 1 INVITE 1-7655@127.0.0.1} <script>: INVITE urn:service:sos SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:2345;branch=z9hG4bK-7655-1-0
From: sipp <sip:sipp@127.0.0.1:2345>;tag=7655SIPpTag001
To: service <sip:service@127.0.0.1:5060>
Call-ID: 1-7655@127.0.0.1
CSeq: 1 INVITE
Contact: sip:sipp@127.0.0.1:2345
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
Content-Length:   129

v=0
o=user1 53655765 2353687637 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 6000 RTP/AVP 0
a=rtpmap:0 PCMU/8000

 6(13) WARNING: {1 1 INVITE 1-7655@127.0.0.1} lost [functions.c:257]: lost_held_function(): P-A-I header not found, trying From header ...
 6(13) INFO: {1 1 INVITE 1-7655@127.0.0.1} lost [functions.c:271]: lost_held_function(): ### HELD id [sip:sipp@127.0.0.1:2345]
 6(13) WARNING: {1 1 INVITE 1-7655@127.0.0.1} lost [functions.c:480]: lost_held_function(): locationRequest error response: [locationUnknown]
 6(13) INFO: {1 1 INVITE 1-7655@127.0.0.1} <script>: ### ESRP - held request failed
 6(13) INFO: {1 1 INVITE 1-7655@127.0.0.1} <script>: ### ESRP - held request returned err:
locationUnknown
 6(13) INFO: {1 1 INVITE 1-7655@127.0.0.1} <script>: ### ESRP - service urn received
 6(13) INFO: {1 1 INVITE 1-7655@127.0.0.1} <script>: INVITE urn:service:sos SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:2345;branch=z9hG4bK-7655-1-0
From: sipp <sip:sipp@127.0.0.1:2345>;tag=7655SIPpTag001
To: service <sip:service@127.0.0.1:5060>
Call-ID: 1-7655@127.0.0.1
CSeq: 1 INVITE
Contact: sip:sipp@127.0.0.1:2345
Max-Forwards: 69
Subject: Performance Test
Content-Type: application/sdp
Content-Length:   129

v=0
o=user1 53655765 2353687637 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 6000 RTP/AVP 0
a=rtpmap:0 PCMU/8000

 6(13) INFO: {1 1 INVITE 1-7655@127.0.0.1} <script>: ###
 6(13) INFO: {1 1 INVITE 1-7655@127.0.0.1} lost [functions.c:891]: lost_function(): ### LOST urn        [urn:service:sos]
 6(13) ERROR: {1 1 INVITE 1-7655@127.0.0.1} lost [functions.c:923]: lost_function(): geolocation header not found
</code></pre>

<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/issues/2723#issuecomment-830822660">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJZ4FMUBWA7MCBLFGDTLVSMTANCNFSM436VQGFA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZIGX2333Q2WCXMK3ZTTLVSMTA5CNFSM436VQGFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGGCVSBA.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/issues/2723#issuecomment-830822660",
"url": "https://github.com/kamailio/kamailio/issues/2723#issuecomment-830822660",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>