blob: 7827ec11a17ba4be09f518020d67be55d156bbfe [file] [log] [blame]
Alexandre Lision67916dd2014-01-24 13:33:04 -05001# $Id$
2import inc_sip as sip
3import inc_sdp as sdp
4
5body = \
6"""
7--12345
8Content-Type: application/notsdp
9
10v=0
11o=- 0 0 IN IP4 127.0.0.1
12s=pjmedia
13c=IN IP4 127.0.0.1
14t=0 0
15m=audio 4000 RTP/AVP 0 101
16a=rtpmap:0 PCMU/8000
17a=sendrecv
18a=rtpmap:101 telephone-event/8000
19a=fmtp:101 0-15
20
21--12345
22Content-Type: text/plain
23
24Hi there this is definitely not SDP
25
26--12345--
27"""
28
29args = "--null-audio --auto-answer 200 --max-calls 1"
30extra_headers = "Content-Type: multipart/mixed; boundary=12345"
31include = []
32exclude = []
33
34sendto_cfg = sip.SendtoCfg( "Multipart/mixed body without SDP",
35 pjsua_args=args, sdp="", resp_code=400,
36 extra_headers=extra_headers, body=body,
37 resp_inc=include, resp_exc=exclude)
38