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