Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sendto/001_torture_4475_3_1_1_1.py

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