Created
December 8, 2015 15:07
-
-
Save vance-od/01b5dff2d81f0878cff4 to your computer and use it in GitHub Desktop.
correct method parsing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dec 8 14:52:04 /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=z9hG4bKefaqz0dxrv28a1z5#015#012Max-Forwards: 70#015#012From: "Tester 4402" <sip:4402@10.100.1.163:5060;transport=TCP>;tag=0gg585t#015#012To: <sip:101@10.100.1.163:5060;transport=TCP;user=phone>#015#012Call-ID: rlg9j0g2b.jlz458lwklb@10.100.1.163#015#012CSeq: 24586 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: 269#015#012#015#012v=0#015#012o=4402 5363 5363 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 50016 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:50017#015#012 | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1319]: tcp_read_req(): read= 1025 bytes, parsed=1025, state=7, error=1 | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1322]: tcp_read_req(): tcp_read_req: last char=0x0A, parsed msg=#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=z9hG4bKefaqz0dxrv28a1z5#015#012Max-Forwards: 70#015#012From: "Tester 4402" <sip:4402@10.100.1.163:5060;transport=TCP>;tag=0gg585t#015#012To: <sip:101@10.100.1.163:5060;transport=TCP;user=phone>#015#012Call-ID: rlg9j0g2b.jlz458lwklb@10.100.1.163#015#012CSeq: 24586 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: Wildix W-AIR 03.55.00.09 9c75143400d9 11:88:70:49:37#015#012Content-Type: application/sdp#015#012Content-Length: 269#015#012#015#012v=0#015#012o=4402 5363 5363 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 50016 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:50017#015#012 | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1355]: tcp_read_req(): tcp_read_req: end of header part | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1356]: tcp_read_req(): - received from: port 51220 | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [ip_addr.c:243]: print_ip(): - received from: ip 10.100.4.145 | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1359]: tcp_read_req(): tcp_read_req: headers:#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=z9hG4bKefaqz0dxrv28a1z5#015#012Max-Forwards: 70#015#012From: "Tester 4402" <sip:4402@10.100.1.163:5060;transport=TCP>;tag=0gg585t#015#012To: <sip:101@10.100.1.163:5060;transport=TCP;user=phone>#015#012Call-ID: rlg9j0g2b.jlz458lwklb@10.100.1.163#015#012CSeq: 24586 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: Wildix W-AIR 03.55.00.09 9c75143400d9 11:88:70:49:37#015#012Content-Type: application/sdp#015#012Content-Length: 269#015#012#015#012. | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1362]: tcp_read_req(): tcp_read_req: content-length= 269 | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1364]: tcp_read_req(): tcp_read_req: body:#012v=0#015#012o=4402 5363 5363 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 50016 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:50017#015#012 | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [tcp_read.c:1378]: tcp_read_req(): receiving msg(0xb1ac9200, 1025, ) | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [parser/msg_parser.c:623]: parse_msg(): SIP Request: | |
Dec 8 14:52:04 /usr/sbin/kamailio[5640]: DEBUG: <core> [parser/msg_parser.c:625]: parse_msg(): method: <INVITE> | |
Dec 8 14:52:04 /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:52:04 /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