📄 raw-tests.txt
字号:
"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\r\n" "a=rtpmap:31 LPC\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.25 INVITE with the illegal use of escaped headers in Request-URIchar* txt = ("INVITE sip:user@company.com?Route=%3Csip:sip.example.com%3E SIP/2.0\r\n""To: sip:user@company.com\r\n""From: sip:caller@university.edu;tag=341518\r\n""Max-Forwards: 7\r\n""Call-ID: 5@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\r\n" "a=rtpmap:31 LPC\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.26 INVITE containing an unknown scheme in the Request URIchar* txt = ("INVITE name:user SIP/2.0\r\n""To: sip:user@company.com\r\n""From: sip:caller@university.edu;tag=384\r\n""Max-Forwards: 3\r\n""Call-ID: 6@10.0.0.1\r\n""CSeq: 1 INVITE\r\n""Via: SIP/2.0/UDP 135.180.130.133;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\r\n" "a=rtpmap:31 LPC\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.27 OPTIONS with no LWS between display name and "<"char* txt = ("OPTIONS sip:user@company.com SIP/2.0\r\n""To: sip:user@company.com\r\n""From: "caller"<sip:caller@example.com>;tag=323\r\n""Max-Forwards: 70\r\n""Call-ID: 1234abcd@10.0.0.1\r\n""CSeq: 1 OPTIONS\r\n""Via: SIP/2.0/UDP 135.180.130.133:5060;branch=z9hG4bKkdjuw\r\n" "\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.28 OPTIONS with extran LWS between display name and "<"char* txt = ("OPTIONS sip:user@company.com SIP/2.0\r\n""To: sip:user@company.com\r\n""From: "caller" <sip:caller@example.com>;tag=32\r\n""Max-Forwards: 70\r\n""Call-ID: 1234abcd@10.0.0.1\r\n""CSeq: 2 OPTIONS\r\n""Via: SIP/2.0/UDP 135.180.130.133:5060;branch=z9hG4bKkdjuw\r\n" "\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.29 INVITE with an illegal SIP Date formatchar* txt = "INVITE sip:user@company.com SIP/2.0\r\n""To: sip:user@company.com\r\n""From: sip:caller@university.edu;tag=2\r\n""Max-Forwards: 70\r\n""Call-ID: 7@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""Date: Fri, 01 Jan 2010 16:00:00 EST\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\r\n""a=rtpmap:31 LPC\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.30 INVITE with Passed Expries Timechar* txt = "INVITE sip:user@company.com SIP/2.0\r\n""To: sip:user@company.com\r\n""From: sip:caller@university.edu;tag=3843\r\n""Max-Forwards: 70\r\n""Call-ID: 8@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""Expires: Thu, 01 Dec 1994 16:00:00 GMT\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\r\n""a=rtpmap:31 LPC\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.31 INVITE with Max-Forwards Set to Zerochar* txt = "INVITE sip:user@company.com SIP/2.0\r\n""To: sip:user@company.com\r\n""From: sip:caller@university.edu;tag=3ghsd41\r\n""Call-ID: 9@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""Max-Forwards: 0\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\r\n""a=rtpmap:31 LPC\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.32 REGISTER with a Escaped Header in a Legal SIP URI of a Contact"REGISTER sip:company.com SIP/2.0\r\n""To: sip:user@company.com\r\n""From: sip:user@company.com;tag=8\r\n""Max-Forwards: 70\r\n""Contact: sip:user@host.company.com\r\n""Call-ID: k345asrl3fdbv@10.0.0.1\r\n""CSeq: 1 REGISTER\r\n""Via: SIP/2.0/UDP 135.180.130.133:5060;branch=z9hG4bKkdjuw\r\n""Contact: <sip:user@example.com?Route=%3Csip:sip.example.com%3E> 2.33 REGISTER with a Escaped Header in a Illegal SIP URI of a Contact\r\n""\r\n"auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.33 REGISTER with a Escaped Header in a Illegal SIP URI of a Contactchar* txt = "REGISTER sip:company.com SIP/2.0\r\n""To: sip:user@company.com\r\n""From: sip:user@company.com;tag=998332\r\n""Max-Forwards: 70\r\n""Contact: sip:user@host.company.com\r\n""Call-ID: k345asrl3fdbv@10.0.0.1\r\n""CSeq: 1 REGISTER\r\n""Via: SIP/2.0/UDP 135.180.130.133:5060;branch=z9hG4bKkdjuw\r\n""Contact: sip:user@example.com?Route=%3Csip:sip.example.com%3E\r\n""\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.34 INVITE with Long Values in Headerschar* txt = "INVITE sip:user@company.com SIP/2.0\r\n""To: "I have a user name of extreme proportion"\r\n""<sip:user@company.com:6000;other\r\n""param=1234567890somethingelselong1234567890> From: sip:caller@university.edu;tag=12481841982424\r\n""Call-ID:\r\n""kl24ahsd546folnyt2vbak9sad98u23naodiunzds09a3bqw0sdfbsk34poouymnae00\r\n""3nsed09mfkvc74bd0cuwnms05dknw87hjpobd76f\r\n""CSeq: 1 INVITE\r\n""P-My-State: sldkjflzdsfaret0803adgaasd0afds0asdaasd\r\n""Via: SIP/2.0/TCP sip33.example.com\r\n""Via: SIP/2.0/TCP sip32.example.com\r\n""Via: SIP/2.0/TCP sip31.example.com\r\n""Via: SIP/2.0/TCP sip30.example.com\r\n""Via: SIP/2.0/TCP sip29.example.com\r\n""Via: SIP/2.0/TCP sip28.example.com\r\n""Via: SIP/2.0/TCP sip27.example.com\r\n""Via: SIP/2.0/TCP sip26.example.com\r\n""Via: SIP/2.0/TCP sip25.example.com\r\n""Via: SIP/2.0/TCP sip24.example.com\r\n""Via: SIP/2.0/TCP sip23.example.com\r\n""Via: SIP/2.0/TCP sip22.example.com\r\n""Via: SIP/2.0/TCP sip21.example.com\r\n""Via: SIP/2.0/TCP sip20.example.com\r\n""Via: SIP/2.0/TCP sip19.example.com\r\n""Via: SIP/2.0/TCP sip18.example.com\r\n""Via: SIP/2.0/TCP sip17.example.com\r\n""Via: SIP/2.0/TCP sip16.example.com\r\n""Via: SIP/2.0/TCP sip15.example.com\r\n""Via: SIP/2.0/TCP sip14.example.com\r\n""Via: SIP/2.0/TCP sip13.example.com\r\n""Via: SIP/2.0/TCP sip12.example.com\r\n""Via: SIP/2.0/TCP sip11.example.com\r\n""Via: SIP/2.0/TCP sip10.example.com\r\n""Via: SIP/2.0/TCP sip9.example.com\r\n""Via: SIP/2.0/TCP sip8.example.com\r\n""Via: SIP/2.0/TCP sip7.example.com\r\n""Via: SIP/2.0/TCP sip6.example.com\r\n""Via: SIP/2.0/TCP sip5.example.com\r\n""Via: SIP/2.0/TCP sip4.example.com\r\n""Via: SIP/2.0/TCP sip3.example.com\r\n""Via: SIP/2.0/TCP sip2.example.com\r\n""Via: SIP/2.0/TCP sip1.example.com\r\n""Via: SIP/2.0/TCP\r\n""host.example.com;received=135.180.130.133;branch=C1C3344E2710000000E\r\n""99E568E7potato10potato0potato0\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.35 OPTIONS with multiple headerschar* txt = "OPTIONS sip:135.180.130.133 SIP/2.0\r\n""Via: SIP/2.0/UDP company.com:5604\r\n""Max-Forwards: 70\r\n""From: sip:iuser@company.com;tag=74345345\r\n""To: sip:user@135.180.130.133\r\n""Call-ID: 1804928587@company.com\r\n""CSeq: 1 OPTIONS\r\n""Expires: 0 0l@company.com\r\n""To: sip:user@135.180.130.133\r\n""Call-ID: 1804928587@company.com\r\n""CSeq: 1 OPTIONS\r\n""Contact: sip:host.company.com\r\n""Expires: 0xpires: 0sip:host.company.com\r\n""Expires: 0\r\n""Contact: sip:host.company.com\r\n""\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.36 INVITE with large number of SDP attributes and telephone subscriber Request-URIchar* txt = "INVITE sip:+19725552222;phone\r\n""context=name%40domain;new=user?%22Route%3a%20X%40Y%3bZ=W%22@gw1.atla\r\n""ta.com;user=phone SIP/2.0\r\n""Via: SIP/2.0/UDP iftgw.biloxi.com:5060;branch=z9hG4bKjeefr3\r\n""Max-Forwards: 70\r\n""From:\r\n""<sip:+13035551111@ift.client.atlanta.com;user=phone>;tag=332lflke\r\n""To: sip:+16555552222@ss1.atlanta.com;user=phone\r\n""Call-ID: 1717@ift.client.atlanta.com\r\n""CSeq: 56 INVITE\r\n""Content-Type: application/sdp\r\n""Content-Length: 320\r\n""\r\n""v=0\r\n""o=faxgw1 2890844527 2890844527 IN IP4 iftgw.biloxi.com\r\n""s=-\r\n""c=IN IP4 iftmg.biloxi.com\r\n""t=0 0\r\n""m=image 49172 udptl t38\r\n""a=T38FaxVersion:0\r\n""a=T38maxBitRate:14400\r\n""a=T38FaxFillBitRemoval:0\r\n""a=T38FaxTranscodingMMR:0\r\n""a=T38FaxTranscodingJBIG:0\r\n""a=T38FaxRateManagement:transferredTCF\r\n""a=T38FaxMaxBuffer:260\r\n""a=T38FaxUdpEC:t38UDPR\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.37 REGISTER with a contact parameterchar* txt = "REGISTER sip:bell-tel.com SIP/2.0\r\n""Via: SIP/2.0/UDP saturn.bell-tel.com:5060;branch=z9hG4bKkdjuw\r\n""Max-Forwards: 70\r\n""From: sip:watson@bell-tel.com;tag=DkfVgjkrtMwaerKKpe\r\n""To: sip:watson@bell-tel.com\r\n""Call-ID: 70710@saturn.bell-tel.com\r\n""CSeq: 2 REGISTER\r\n""Contact: sip:+19725552222@gw1.atlanta.com;user=phone\r\n""\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.38 REGISTER with a url parameterchar* txt = "REGISTER sip:bell-tel.com SIP/2.0\r\n""Via: SIP/2.0/UDP saturn.bell-tel.com:5060;branch=z9hG4bKkdjuw\r\n""Max-Forwards: 70\r\n""From: sip:watson@bell-tel.com;tag=838293\r\n""To: sip:watson@bell-tel.com\r\n""Call-ID: 70710@saturn.bell-tel.com\r\n""CSeq: 3 REGISTER\r\n""Contact: <sip:+19725552222@gw1.atlanta.com;user=phone>\r\n""\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.39 INVITE with an Unquoted Display Name Containing Multiple Tokenschar* txt = ("INVITE sip:t.watson@ieee.org SIP/2.0\r\n""Via: SIP/2.0/UDP c.bell-tel.com:5060;branch=z9hG4bKkdjuw\r\n""Max-Forwards: 70\r\n""From: A. Bell <sip:a.g.bell@bell-tel.com>;tag=459843\r\n""To: T. Watson <sip:t.watson@ieee.org> Call-ID: 31414@c.bell-tel.com\r\n""CSeq: 1 INVITE\r\n""\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.40 INVITE with an Unquoted Display Name Containg Non-Token Characterschar* txt = ("INVITE sip:t.watson@ieee.org SIP/2.0\r\n""Via: SIP/2.0/UDP c.bell-tel.com:5060;branch=z9hG4bKkdjuw\r\n""Max-Forwards: 70\r\n""From: Bell, Alexander <sip:a.g.bell@bell-tel.com>;tag=43\r\n""To: Watson, Thomas <sip:t.watson@ieee.org> Call-ID: 31415@c.bell-tel.com\r\n""CSeq: 1 INVITE\r\n""\r\n")auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.41 INVITE with Unknown (Higher) Protocol Version in Start Line27 char* txt = ("INVITE sip:t.watson@ieee.org SIP/7.0\r\n""Via: SIP/2.0/UDP c.bell-tel.com;branch=z9hG4bKkdjuw\r\n""Max-Forwards: 70\r\n""From: A. Bell <sip:a.g.bell@bell-tel.com>;tag=qweoiqpe\r\n""To: T. Watson <sip:t.watson@ieee.org> Call-ID: 31417@c.bell-tel.com\r\n""CSeq: 1 INVITE\r\n""\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));2.42 INVITE with RFC2543 syntaxchar* txt = ("INVITE sip:UserB@biloxi.com SIP/2.0\r\n""Via: SIP/2.0/UDP iftgw.biloxi.com\r\n""From: <sip:+13035551111@ift.client.atlanta.com;user=phone>;tag=93752\r\n""Record-Route: <sip:UserB@biloxi.com;maddr=ss1.wcom.com> To: sip:+16505552222@ss1.atlanta.com;user=phone\r\n""Call-ID: 1717@ift.client.atlanta.com\r\n""CSeq: 56 INVITE\r\n""\r\n");auto_ptr<SipMessage> message(TestSupport::makeMessage(txt));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -