Skip to content

Instantly share code, notes, and snippets.

@vance-od
Created December 8, 2015 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vance-od/c4e1c783adba02d80c58 to your computer and use it in GitHub Desktop.
Save vance-od/c4e1c783adba02d80c58 to your computer and use it in GitHub Desktop.
incorrect method parsing
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:360]: tcp_read(): tcp_read: read 1025 bytes:#012INVITE sip:101@10.100.1.163:5060;transport=TCP;user=phone SIP/2.0#015#012Via: SIP/2.0/TCP 10.100.4.145:51220;branch=z9hG4bK32pl2x.ri.i3#015#012Max-Forwards: 70#015#012From: "Tester 4402" <sip:4402@10.100.1.163:5060;transport=TCP>;tag=wpp8iu#015#012To: <sip:101@10.100.1.163:5060;transport=TCP;user=phone>#015#012Call-ID: 1jwvtixkcro6r.lgfws9a3.q@10.100.1.163#015#012CSeq: 21490 INVITE#015#012Contact: <sip:4402@10.100.4.145:51220;transport=TCP>;+sip.instance="<urn:uuid:0d9a006d-0355-0008-0000-001188704937>"#015#012Allow: INVITE, CANCEL, BYE, ACK, REGISTER, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE, INFO, PRACK, UPDATE#015#012Content-Disposition: session#015#012Supported: replaces,100rel#015#012User-Agent: some user agent #015#012Content-Type: application/sdp#015#012Content-Length: 271#015#012#015#012v=0#015#012o=4402 28161 28161 IN IP4 10.100.4.145#015#012s=-#015#012c=IN IP4 10.100.4.145#015#012t=0 0#015#012a=sendrecv#015#012m=audio 50012 RTP/AVP 18 2 8 0#015#012a=rtpmap:18 G729/8000#015#012a=rtpmap:2 G726-32/8000/1#015#012a=rtpmap:8 PCMA/8000#015#012a=rtpmap:0 PCMU/8000#015#012a=ptime:20#015#012a=maxptime:80#015#012a=sendrecv#015#012a=rtcp:50013#015#012
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1319]: tcp_read_req(): read= 1025 bytes, parsed=1037, state=7, error=1
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1322]: tcp_read_req(): tcp_read_req: last char=0x0A, parsed msg=#012
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1355]: tcp_read_req(): tcp_read_req: end of header part
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1356]: tcp_read_req(): - received from: port 51220
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [ip_addr.c:243]: print_ip(): - received from: ip 10.100.4.145
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1359]: tcp_read_req(): tcp_read_req: headers:#012.
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1362]: tcp_read_req(): tcp_read_req: content-length= 271
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1364]: tcp_read_req(): tcp_read_req: body:#012v=0#015#012o=4402 28161 28161 IN IP4 10.100.4.145#015#012s=-#015#012c=IN IP4 10.100.4.145#015#012t=0 0#015#012a=sendrecv#015#012m=audio 50012 RTP/AVP 18 2 8 0#015#012a=rtpmap:18 G729/8000#015#012a=rtpmap:2 G726-32/8000/1#015#012a=rtpmap:8 PCMA/8000#015#012a=rtpmap:0 PCMU/8000#015#012a=ptime:20#015#012a=maxptime:80#015#012a=sendrecv#015#012a=rtcp:50013#015#012
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1378]: tcp_read_req(): receiving msg(0xb1ac9200, 1037, )
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [parser/msg_parser.c:623]: parse_msg(): SIP Request:
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [parser/msg_parser.c:625]: parse_msg(): method: <>
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [parser/msg_parser.c:627]: parse_msg(): uri: <sip:101@10.100.1.163:5060;transport=TCP;user=phone>
Dec 8 14:49:03 /usr/sbin/kamailio[5640]: DEBUG: <core> [parser/msg_parser.c:629]: parse_msg(): version: <SIP/2.0>
.............................
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment