[sr-dev] [kamailio/kamailio] cannot parse From header (#2723)
sergey-safarov
notifications at github.com
Sat May 1 22:45:35 CEST 2021
### Description
For some reason `From` header cannot be parsed.
#### Reproduction
Tested config
```
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)");
}
```
Client sipp
```
sipp -m 1 -sn uac -p 2345 127.0.0.1
```
#### Log Messages
Kamailio output
````
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
````
#### SIP Traffic
```
INVITE sip:service at 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 at 127.0.0.1:2345>;tag=7655SIPpTag001
To: service <sip:service at 127.0.0.1:5060>
Call-ID: 1-7655 at 127.0.0.1
CSeq: 1 INVITE
Contact: sip:sipp at 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
```
### Additional Information
current master
* **Operating System**:
CentOS 8 x86_64
--
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/issues/2723
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210501/cc74d2b3/attachment.htm>
More information about the sr-dev
mailing list