Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sendto/252_multipart_ok_clutter.py

raw symbols SCIP
1 import inc_sip as sip
2 import inc_sdp as sdp
3
4 body = \
5 """
6 This is the preamble. It is to be ignored, though it
7 is a handy place for composition agents to include an
8 explanatory note to non-MIME conformant readers.
9
10 --123:45
11 Content-Type: text/plain
12
13 The first part is definitely not SDP
14
15 --123:45
16
17 This is implicitly typed plain US-ASCII text.
18 It does NOT end with a linebreak.
19 --123:45
20 Content-Type: application/sdp
21
22 v=0
23 o=- 0 0 IN IP4 127.0.0.1
24 s=pjmedia
25 c=IN IP4 127.0.0.1
26 t=0 0
27 m=audio 4000 RTP/AVP 0 101
28 a=rtpmap:0 PCMU/8000
29 a=sendrecv
30 a=rtpmap:101 telephone-event/8000
31 a=fmtp:101 0-15
32
33 --123:45--
34 This is the epilogue. It is also to be ignored.
35 """
36
37 args = "--null-audio --auto-answer 200 --max-calls 1"
38 extra_headers = "Content-Type: multipart/mixed; boundary=\"123:45\""
39 include = ["v=0", "m=audio"]
40 exclude = []
41
42 sendto_cfg = sip.SendtoCfg( "Valid but cluttered multipart/mixed body containing SDP",
43 pjsua_args=args, sdp="", resp_code=200,
44 extra_headers=extra_headers, body=body,
45 resp_inc=include, resp_exc=exclude)
46