Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sendto/300_srtp_crypto_case_insensitive.py

raw symbols SCIP
1 import inc_sip as sip
2 import inc_sdp as sdp
3
4 sdp = \
5 """
6 v=0
7 o=- 0 0 IN IP4 127.0.0.1
8 s=tester
9 c=IN IP4 127.0.0.1
10 t=0 0
11 m=audio 4000 RTP/SAVP 0 101
12 a=rtpmap:0 PCMU/8000
13 a=sendrecv
14 a=rtpmap:101 telephone-event/8000
15 a=fmtp:101 0-15
16 a=crypto:1 AeS_Cm_128_HmAC_shA1_80 inline:WnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5yxQ
17 a=crypto:2 aEs_cM_128_HMaC_ShA1_32 inline:t0r0/apkukU7JjjfR0mY8GEimBq4OiPEm9eKSFOx
18 """
19
20 args = "--null-audio --auto-answer 200 --max-calls 1 --use-srtp 2 --srtp-secure 0"
21 include = ["m=audio \d+ RTP/SAVP", "a=crypto"]
22 exclude = []
23
24 sendto_cfg = sip.SendtoCfg( "caller has used mixed case in crypto attr, callee must process that normally",
25 pjsua_args=args, sdp=sdp, resp_code=200,
26 resp_inc=include, resp_exc=exclude)