Hello,
apparently I missed the follow ups on this discussion, dragged in by other topics on mailing list.
Can you get the pcap with all the traffic taken on kamailio server for the call (from initial invite to the end of the call)? I expect that content length is mismatching or there is a '\0' inside the sdp.
Hello Daniel,
Thank for reply !
do you have the pcap for such message?
Here is the message, I capture via Wireshark on client:Session Initiation Protocol (INVITE)Request-Line: INVITE sip:buiduchahai@happy.anttel-pro.ab-kz-02.antbuddy.com SIP/2.0Message HeaderVia: SIP/2.0/TCP 10.0.2.15:57735;rport;branch=z9hG4bKPjaXcUF2ZkxyQGYCb3a57cPQ3rkcKMY.eS;aliasMax-Forwards: 70From: "Phap Huynh" <sip:huynhngocphap@happy.anttel-pro.ab-kz-02.antbuddy.com>;tag=zJBNvD67y3E.1I5Y5ZrRI4JmP5JKeNWOCall-ID: ftMudIpIQeKWwP8kQDi2z1S0D1sV3KaBCSeq: 29055 INVITEAllow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONSSupported: replaces, 100rel, timer, norefersubSession-Expires: 1800Min-SE: 9User-Agent: CSipSimple_hlteatt-19/r55[truncated]Proxy-Authorization: Digest username="huynhngocphap", realm="happy.anttel-pro.ab-kz-02.antbuddy.com", nonce="452a7bce-d326-11e6-a605-e9dce514db6e", uri="sip:buiduchahai@happy.anttel-pro.ab-kz-02.antbuddy.com", response="71749deContent-Type: application/sdpContent-Length: 299Message BodySession Description ProtocolSession Description Protocol Version (v): 0Owner/Creator, Session Id (o): - 3692596134 3692596134 IN IP4 10.0.2.15Session Name (s): pjmediaConnection Information (c): IN IP4 10.0.2.15Time Description, active time (t): 0 0Media Description, name and address (m): audio 4002 RTP/AVP 9 0 8 101Connection Information (c): IN IP4 10.0.2.15Media Attribute (a): rtcp:4003 IN IP4 10.0.2.15Media Attribute (a): sendrecvMedia Attribute (a): rtpmap:9 G722/8000Media Attribute (a): rtpmap:0 PCMU/8000Media Attribute (a): rtpmap:8 PCMA/8000Media Attribute (a): rtpmap:101 telephone-event/8000Media Attribute (a): fmtp:101 0-16
And this is message I receive on Freeswitch:------------------------------------------------------------------------INVITE sip:buiduchahai@happy.anttel-pro.ab-kz-02.antbuddy.com SIP/2.0Via: SIP/2.0/TCP 125.212.212.40:5060;branch=z9hG4bK0d89.3807a4cf41ce9b48a7d1a75826762d6e.0;i=533cVia: SIP/2.0/TCP 10.0.2.15:57735;received=49.156.54.54;rport=50785;branch=z9hG4bKPjaXcUF2ZkxyQGYCb3a57cPQ3rkcKMY.eS;aliasMax-Forwards: 50From: "Phap Huynh" <sip:huynhngocphap@happy.anttel-pro.ab-kz-02.antbuddy.com>;tag=zJBNvD67y3E.1I5Y5ZrRI4JmP5JKeNWOCall-ID: ftMudIpIQeKWwP8kQDi2z1S0D1sV3KaBCSeq: 29055 INVITEAllow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONSSupported: replaces, 100rel, timer, norefersubSession-Expires: 1800Min-SE: 9User-Agent: CSipSimple_hlteatt-19/r55Proxy-Authorization: Digest username="huynhngocphap", realm="happy.anttel-pro.ab-kz-02.antbuddy.com", nonce="452a7bce-d326-11e6-a605-e9dce514db6e", uri="sip:buiduchahai@happy.anttel-pro.ab-kz-02.antbuddy.com", response="71749de35a220aef0b92c9ade03f90b7", algorithm=MD5, cnonce="px.OiQUg2zZmYh.0-MmLC0f.-ZPXYa1V", qop=auth, nc=00000001Content-Type: application/sdpContent-Length: 289X-AUTH-IP: 49.156.54.54X-AUTH-PORT: 50785
v=0o=- 3692596134 3692596134 IN IP4 49.156.54.54s=pjmediac=IN IP4 49.156.54.54t=0 0m=audio 4002 RTP/AVP 9 0 8 101c=IN IP4 49.156.54.54a=rtcp:4003a=sendrecva=rtpmap:9 G722/8000a=rtpmap:0 PCMU/8000a=oldmediaip:10.0.2.15a=oldmediaip:10.0.2.15a=oldmediaip:10.0.2.15------------------------------------------------------------------------
You can see, it missing:Media Attribute (a): rtpmap:8 PCMA/8000Media Attribute (a): rtpmap:101 telephone-event/8000Media Attribute (a): fmtp:101 0-16
Is it happening for the ACK you pasted or some other message?It only happen on ACK messages, when my client reply 200 OK /SDP to server to establish call.
For more detail: I use another soft phone on Android like Zoiper and test with the same scenario, it work ok. And when my client use 3G, it still work ok.
Regards,Hai Bui
On Thu, Jan 5, 2017 at 10:25 PM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
______________________________Hello,
do you have the pcap for such message? Is it happening for the ACK you pasted or some other message?
Cheers,
Daniel
On 05/01/2017 12:16, Hai Bui Duc Ha wrote:
Hi all,
I have problem when make call with my Android mobile use PJSIP library.Scenario:
my client -> Kamailio -> Freeswitch (media server) -> another client (soft phone on Windows)
my client:+ use Bluestack+ Capture via Wireshark+ use Wifi
Issue: The call will be drop after ~ 30 second.
I see the error on Kamailio:Jan 5 16:08:59 ab-kz-02 kamailio[6343]: ERROR: <core> [parser/parse_fline.c:257]: parse_first_line(): parse_first_line: bad message (offset: 13)Jan 5 16:08:59 ab-kz-02 kamailio[6343]: ERROR: <core> [parser/parse_fline.c:257]: parse_first_line(): parse_first_line: bad message (offset: 13)Jan 5 16:08:59 ab-kz-02 kamailio[6343]: ERROR: <core> [parser/msg_parser.c:690]: parse_msg(): ERROR: parse_msg: message=<p:8 PCMA/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-16#015#012ACK sip:buiduchahai@125.212.212. 36:11000;transport=tcp SIP/2.0#015#012Via: SIP/2.0/TCP 10.0.2.15:57735;rport;branch=z9hG4bKPjlgc13AjrUrFJHq60vWhGq sUaGXi2F98Z;alias#015#012Max- Forwards: 70#015#012From: "Phap Huynh" <sip:huynhngocphap@happy. anttel-pro.ab-kz-02.antbuddy. >;tag=zJBNvD67y3E.com 1I5Y5ZrRI4JmP5JKeNWO#015# 012To: <sip:buiduchahai@happy.anttel- pro.ab-kz-02.antbuddy.com >;tag=2SF4D790Zy6Kj#015#012Call- ID: ftMudIpIQeKWwP8kQDi2z1S0D1sV3K aB#015#012CSeq: 29055 ACK#015#012Route: <sip:125.212.212.40;transport= tcp;lr;ftag=zJBNvD67y3E. #015#1I5Y5ZrRI4JmP5JKeNWO> 012Content-Length: 0#015#012#015#012> Jan 5 16:08:59 ab-kz-02 kamailio[6343]: ERROR: <core> [receive.c:129]: receive_msg(): core parsing of SIP message failed (49.156.54.54:50785/2)
Seem to the server error when parse(on INVITE SDP)a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
(on new ACK message)Via: SIP/2.0/TCP 10.0.2.15:57735;rport;branch=z9hG4bKPjlgc13AjrUrFJHq60vWhGq sUaGXi2F98Z;alias Max-Forwards: 70From: "Phap Huynh" <sip:huynhngocphap@happy.anttel-pro.ab-kz-02.antbuddy. >;tag=zJBNvD67y3E.com 1I5Y5ZrRI4JmP5JKeNWO To: <sip:buiduchahai@happy.anttel-pro.ab-kz-02.antbuddy.com >;tag=2SF4D790Zy6Kj Call-ID: ftMudIpIQeKWwP8kQDi2z1S0D1sV3KaB CSeq: 29055 ACKContent-Length: 0
I think the SIP message is fragmented but when resume package is not correct.Do you have any advice ? Thank you for watching !
Regards,Hai Bui
--
Hai Bui
VoIP engineer, Cvoice team, HTK-HCM Office
Mobile: +84-165-618-9876
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/ cgi-bin/mailman/listinfo/sr- users -- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com_________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/ cgi-bin/mailman/listinfo/sr- users --Hai BuiVoIP engineer, Cvoice team, HTK-HCM OfficeMobile: +84-165-618-9876
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com