blob: 35f803c7f14c5a67633288eecd47c962f516e01f [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.1. A Short Tortuous INVITE
8complete_msg = \
9"""INVITE sip:vivekg@chair-dnrc.example.com;unknownparam SIP/2.0
10TO :
11 sip:vivekg@chair-dnrc.example.com ; tag = 1918181833n
12from : "J Rosenberg \\\\\\"" <sip:jdrosen@example.com>
13 ;
14 tag = 98asjd8
15MaX-fOrWaRdS: 0068
16Call-ID: wsinv.ndaksdj@192.0.2.1
17Content-Length : 150
18cseq: 0009
19 INVITE
20Via : SIP / 2.0
21 /UDP
22 192.0.2.2;rport;branch=390skdjuw
23s :
24NewFangledHeader: newfangled value
25 continued newfangled value
26UnknownHeaderWithUnusualValue: ;;,,;;,;
27Content-Type: application/sdp
28Route:
29 <sip:services.example.com;lr;unknownwith=value;unknown-no-value>
30v: SIP / 2.0 / TCP spindle.example.com ;
31 branch = z9hG4bK9ikj8 ,
32 SIP / 2.0 / UDP 192.168.255.111 ; branch=
33 z9hG4bK30239
34m:"Quoted string \\"\\"" <sip:jdrosen@example.com> ; newparam =
35 newvalue ;
36 secondparam ; q = 0.33
37
38v=0
39o=mhandley 29739 7272939 IN IP4 192.0.2.3
40s=-
41c=IN IP4 192.0.2.4
42t=0 0
43m=audio 49217 RTP/AVP 0 12
44m=video 3227 RTP/AVP 31
45a=rtpmap:31 LPC
46"""
47
48
49sendto_cfg = sip.SendtoCfg( "RFC 4475 3.1.1.1",
50 "--null-audio --auto-answer 200",
51 "", 481, complete_msg=complete_msg)
52