blob: 88fd249bfcf1cfc7c4a2b9fcc74433a557aa2782 [file] [log] [blame]
Alexandre Lision8af73cb2013-12-10 14:11:20 -05001# $Id$
2import inc_sip as sip
3import inc_sdp as sdp
4
5# Torture message from RFC 4475
6# 3.1.1. Valid Messages
7# 3.1.1.2. Wide Range of Valid Characters
8complete_msg = \
9"""!interesting-Method0123456789_*+`.%indeed'~ sip:1_unusual.URI~(to-be!sure)&isn't+it$/crazy?,/;;*:&it+has=1,weird!*pas$wo~d_too.(doesn't-it)@example.com SIP/2.0
10Via: SIP/2.0/UDP host1.example.com;rport;branch=z9hG4bK-.!%66*_+`'~
11To: "BEL:\\\x07 NUL:\\\x00 DEL:\\\x7F" <sip:1_unusual.URI~(to-be!sure)&isn't+it$/crazy?,/;;*@example.com>
12From: token1~` token2'+_ token3*%!.- <sip:mundane@example.com> ;fromParam''~+*_!.-%="\xD1\x80\xD0\xB0\xD0\xB1\xD0\xBE\xD1\x82\xD0\xB0\xD1\x8E\xD1\x89\xD0\xB8\xD0\xB9";tag=_token~1'+`*%!-.
13Call-ID: intmeth.word%ZK-!.*_+'@word`~)(><:\\/"][?}{
14CSeq: 139122385 !interesting-Method0123456789_*+`.%indeed'~
15Max-Forwards: 255
16extensionHeader-!.%*+_`'~: \xEF\xBB\xBF\xE5\xA4\xA7\xE5\x81\x9C\xE9\x9B\xBB
17Content-Length: 0
18
19"""
20
21
22sendto_cfg = sip.SendtoCfg( "RFC 4475 3.1.1.2",
23 "--null-audio --auto-answer 200",
24 "", 405, complete_msg=complete_msg)
25