Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sendto/260_multipart_err_no_sdp.py

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