📄 raw-tests.txt
字号:
2.8 Unknown Method with CSeq Error
"NEWMETHOD sip:user@comapny.com SIP/2.0\r\n"
"To: sip:j.user@company.com\r\n"
"From: sip:caller@university.edu;tag=23411413\r\n"
"Max-Forwards: 3\r\n"
"Call-ID: 0ha0isndaksdj@10.0.1.1\r\n"
"CSeq: 8 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133;branch=z9hG4bKkdjuw\r\n"
"Content-Type: application/sdp\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n"
2.9 REGISTER with Unknown Authorization Scheme
char* txt = ("REGISTER sip:company.com SIP/2.0\r\n"
"To: sip:j.user@company.com\r\n"
"From: sip:j.user@company.com;tag=87321hj23128\r\n"
"Max-Forwards: 8\r\n"
"Call-ID: 0ha0isndaksdj@10.0.1.1\r\n"
"CSeq: 8 REGISTER\r\n"
"Via: SIP/2.0/UDP 135.180.130.133;branch=z9hG4bKkdjuw\r\n"
"Authorization: Super-PGP ajsohdaosdh0asyhdaind08yasdknasd09asidhas0d8\r\n\r\n");
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.10 Multiple SIP Request in a Single Message
char* txt = ("REGISTER sip:company.com SIP/2.0\r\n"
"To: sip:j.user@company.com\r\n"
"From: sip:j.user@company.com;tag=43251j3j324\r\n"
"Max-Forwards: 8\r\n"
"Call-ID: 0ha0isndaksdj@10.0.2.2\r\n"
"Contact: sip:j.user@host.company.com\r\n"
"CSeq: 8 REGISTER\r\n"
"Via: SIP/2.0/UDP 135.180.130.133;branch=z9hG4bKkdjuw\r\n"
"Content-Length: 0\r\n\r\n"
"INVITE sip:joe@company.com SIP/2.0\r\n"
"To: sip:joe@company.com\r\n"
"From: sip:caller@university.edu;tag=141334\r\n"
"Max-Forwards: 8\r\n"
"Call-ID: 0ha0isnda977644900765@10.0.0.1\r\n"
"CSeq: 8 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133;branch=z9hG4bKkdjuw\r\n"
"Content-Type: application/sdp\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m =video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n"
"\r\n");
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.11 INVITE missing Required Headers
char* txt = ("INVITE sip:user@company.com SIP/2.0\r\n"
"CSeq: 0 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133;branch=z9hG4bKkdjuw\r\n"
"Content-Type: application/sdp\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n"
"\r\n";
);
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.12 INVITE with Duplicate Required Headers
char* txt = ("INVITE sip:user@company.com SIP/2.0\r\n"
"Via: SIP/2.0/UDP 135.180.130.133;branch=z9hG4bKkdjuw\r\n"
"Max-Forwards: 70\r\n"
"CSeq: 0 INVITE\r\n"
"Call-ID: 98asdh@10.1.1.1\r\n"
"Call-ID: 98asdh@10.1.1.2\r\n"
"From: sip:caller@university.edu;tag=3413415\r\n"
"From: sip:caller@organization.org\r\n"
"To: sip:user@company.com\r\n"
"Content-Type: application/sdp\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n"
"\r\n";
);
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.13 INVITE with Illegal Expires Header
char* txt = ("INVITE sip:user@company.com SIP/2.0\r\n"
"Via: SIP/2.0/UDP 135.180.130.133;branch=z9hG4bKkdjuw\r\n"
"Max-Forwards: 88\r\n"
"CSeq: 0 INVITE\r\n"
"Call-ID: 98asdh@10.1.1.2\r\n"
"Expires: Thu, 44 Dec 19999 16:00:00 EDT\r\n"
"From: sip:caller@university.edu;tag=3651\r\n"
"To: sip:user@company.com\r\n"
"Content-Type: application/sdp\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n"
"\r\n";);
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.14 200 OK Response with Broadcast Via Header
char* txt = ("SIP/2.0 200 OK\r\n"
"Via: SIP/2.0/UDP 135.180.130.57;branch=0\r\n"
"Via: SIP/2.0/UDP 255.255.255.255;branch=0\r\n"
"Max-Forwards: 70\r\n"
"Call-ID: 0384840201@10.1.1.1\r\n"
"CSeq: 0 INVITE\r\n"
"From: sip:user@company.com;tag=11141343\r\n"
"To: sip:user@university.edu;tag=2229\r\n"
"Content-Type: application/sdp\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n");
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
"s=-\r\n"
"c=IN IP4 224.2.17.12/127\r\n"
char* txt = ("t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n"
);
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.15 INVITE with Invalid Via and Contact Headers
char* txt = ("INVITE sip:user@company.com SIP/2.0\r\n"
"To: sip:j.user@company.com\r\n"
"From: sip:caller@university.edu;tag=134161461246\r\n"
"Max-Forwards: 7\r\n"
"Call-ID: 0ha0isndaksdj@10.0.0.1\r\n"
"CSeq: 8 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133;;,;\r\n"
"Contact: "" <> ;,"Joe" <sip:joe@org.org>;;,,;;\r\n"
"Content-Type: application/sdp\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n");
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.16 INVITE with Incorrect Content-Length Header
char* txt = ("INVITE sip:user@company.com SIP/2.0\r\n"
"Max-Forwards: 80\r\n"
"To: sip:j.user@company.com\r\n"
"From: sip:caller@university.edu;tag=93942939o2\r\n"
"Call-ID: 0ha0isndaksdj@10.0.0.1\r\n"
"CSeq: 8 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133\r\n"
"Content-Type: application/sdp\r\n"
"Content-Length: 9999\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n"
);
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.17 INVITE with Invalid Value for Content-Length
char* txt = ("INVITE sip:user@company.com SIP/2.0\r\n"
"Max-Forwards: 254\r\n"
"To: sip:j.user@company.com\r\n"
"From: sip:caller@university.edu;tag=3\r\n"
"Call-ID: 0ha0isndaksdj@10.0.0.1\r\n"
"CSeq: 8 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133;branch=z9hG4bKkdjuw\r\n"
"Content-Type: application/sdp\r\n"
"Content-Length: -999\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n"
);
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.18 INVITE with Garbage after Message Body
char* txt = ("INVITE sip:user@company.com SIP/2.0\r\n"
"To: sip:j.user@company.com\r\n"
"From: sip:caller@university.edu;tag=3223\r\n"
"Max-Forwards: 7\r\n"
"Call-ID: 0ha0isndaksdj@10.0.0.1\r\n"
"CSeq: 8 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133\r\n"
"Content-Type: application/sdp\r\n"
"Content-Length: 138\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n"
"asdpasd08asdsdk:;;asd\r\n"
"a0sdjhg8a0''...'';;;;\r\n"
);
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.19 INVITE with Error in Display Name in To Header
char* txt = ("INVITE sip:user@company.com SIP/2.0\r\n"
"To: \"Mr. J. User <sip:j.user@company.com> From: sip:caller@university.edu;tag=93334\r\n"
"Max-Forwards: 10\r\n"
"Call-ID: 0ha0isndaksdj@10.0.0.1\r\n"
"CSeq: 8 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133:5050;branch=z9hG4bKkdjuw\r\n"
"Content-Type: application/sdp\r\n"
"Content-Length: 138\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n");
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.20 INVITE with a Semicolon-Separated Parameter in the "user" Part
char* txt = ("INVITE sip:user;par=u%40h.com@company.com SIP/2.0\r\n"
"To: sip:j_user@company.com\r\n"
"From: sip:caller@university.edu;tag=33242\r\n"
"Max-Forwards: 3\r\n"
"Call-ID: 0ha0isndaksdj@10.1.1.1\r\n"
"CSeq: 8 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133;branch=z9hG4bKkdjuw\r\n");
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.21 INVITE with Illegal Enclosing of Request-URI in "<>"
char* txt = ("INVITE <sip:user@company.com> SIP/2.0\r\n"
"To: sip:user@company.com\r\n"
"From: sip:caller@university.edu;tag=39291\r\n"
"Max-Forwards: 23\r\n"
"Call-ID: 1@10.0.0.1\r\n"
"CSeq: 1 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133\r\n"
"Content-Type: application/sdp\r\n"
"Content-Length: 174\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=3149328700 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n");
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.22 INVITE with Illegal LWS within Elements of Request-URI
char* txt = ("INVITE sip:user@company.com; transport=udp SIP/2.0\r\n"
"To: sip:user@company.com\r\n"
"From: sip:caller@university.edu;tag=231413434\r\n"
"Max-Forwards: 5\r\n"
"Call-ID: 2@10.0.0.1\r\n"
"CSeq: 1 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133:5060;branch=z9hG4bKkdjuw\r\n"
"Content-Type: application/sdp\r\n"
"Content-Length: 174\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=3149328700 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31\r\n"
"a=rtpmap:31 LPC\r\n");
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.23 INVITE with illegal >1 SP between elements of Request URI17
char* txt = ("INVITE sip:user@company.com SIP/2.0\r\n"
"Max-Forwards: 8\r\n"
"To: sip:user@company.com\r\n"
"From: sip:caller@university.edu;tag=8814\r\n"
"Call-ID: 3@10.0.0.1\r\n"
"CSeq: 1 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133:5060;branch=z9hG4bKkdjuw\r\n"
"Content-Type: application/sdp\r\n"
"Content-Length: 174\r\n"
"\r\n"
"v=0\r\n"
"o=mhandley 29739 7272939 IN IP4 126.5.4.3\r\n"
"s=-\r\n"
"c=IN IP4 135.180.130.88\r\n"
"t=0 0\r\n"
"m=audio 492170 RTP/AVP 0 12\r\n"
"m=video 3227 RTP/AVP 31"
"a=rtpmap:31 LPC\r\n");
auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
2.24 INVITE with a legal SIP URI containing escaped characters17
char* txt = ("INVITE sip:sip%3Auser%40example.com@company.com;other-param=summit\r\n"
"SIP/2.0\r\n"
"To: sip:user@company.com\r\n"
"From: sip:caller@university.edu;tag=938\r\n"
"Max-Forwards: 87\r\n"
"Call-ID: 4@10.0.0.1\r\n"
"CSeq: 1 INVITE\r\n"
"Via: SIP/2.0/UDP 135.180.130.133:5060;branch=z9hG4bKkdjuw\r\n"
"Content-Type: application/sdp\r\n"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -