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