Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sendto/001_torture_4475_3_1_1_3.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.3. Valid Use of the % Escaping Mechanism
7 complete_msg = \
8 """INVITE sip:sips%3Auser%[email protected] SIP/2.0
9 To: sip:%75se%[email protected]
10 From: <sip:I%20have%[email protected]>;tag=$FROM_TAG
11 Max-Forwards: 87
12 i: esc01.239409asdfakjkn23onasd0-3234
13 CSeq: 234234 INVITE
14 Via: SIP/2.0/UDP host5.example.net;rport;branch=z9hG4bKkdjuw
15 C: application/sdp
16 Contact:
17 <sip:cal%6Cer@$LOCAL_IP:$LOCAL_PORT;%6C%72;n%61me=v%61lue%25%34%31>
18 Content-Length: 150
19
20 v=0
21 o=mhandley 29739 7272939 IN IP4 192.0.2.1
22 s=-
23 c=IN IP4 192.0.2.1
24 t=0 0
25 m=audio 49217 RTP/AVP 0 12
26 m=video 3227 RTP/AVP 31
27 a=rtpmap:31 LPC
28 """
29
30
31 sendto_cfg = sip.SendtoCfg( "RFC 4475 3.1.1.3",
32 "--null-audio --auto-answer 200",
33 "", 200, complete_msg=complete_msg)
34