<p></p>
<h3>Description</h3>
<p>For some reason <code>From</code> header cannot be parsed.</p>
<h4>Reproduction</h4>
<p>Tested config</p>
<pre><code>listen=udp:127.0.0.1:5060
loadmodule "pv.so"
loadmodule "http_client.so"
loadmodule "lost.so"

modparam("http_client", "httpcon", "http://example.com=>http://example.com");


request_route {
    lost_held_query("http://example.com", "$var(pidf)", "$var(geo_url)", "$var(err)");
}
</code></pre>
<p>Client sipp</p>
<pre><code>sipp -m 1 -sn uac  -p 2345 127.0.0.1
</code></pre>
<h4>Log Messages</h4>
<p>Kamailio output</p>
<pre><code> 1(7643) WARNING: lost [functions.c:252]: lost_held_function(): P-A-I header not found, trying From header ...
 1(7643) ERROR: lost [utilities.c:644]: lost_get_from_header(): From header not found
 1(7643) ERROR: lost [functions.c:259]: lost_held_function(): no device id found
 2(7644) WARNING: lost [functions.c:252]: lost_held_function(): P-A-I header not found, trying From header ...
 2(7644) ERROR: lost [utilities.c:644]: lost_get_from_header(): From header not found
 2(7644) ERROR: lost [functions.c:259]: lost_held_function(): no device id found
 3(7645) WARNING: lost [functions.c:252]: lost_held_function(): P-A-I header not found, trying From header ...
 3(7645) ERROR: lost [utilities.c:644]: lost_get_from_header(): From header not found
 3(7645) ERROR: lost [functions.c:259]: lost_held_function(): no device id found
</code></pre>
<h4>SIP Traffic</h4>
<pre><code>INVITE sip:service@127.0.0.1:5060 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
</code></pre>
<h3>Additional Information</h3>
<p>current master</p>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<p>CentOS 8 x86_64</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/issues/2723">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJ5JNYMGLD5AU5D2D3TLRR67ANCNFSM436VQGFA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZP465JZ3R22YMVIOZLTLRR67A5CNFSM436VQGFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NAUTCIQ.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",
"url": "https://github.com/kamailio/kamailio/issues/2723",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>