blob: cf8bf487aa686cae474a845c522f744a2981a36e [file] [log] [blame]
Alexandre Lision67916dd2014-01-24 13:33:04 -05001# $Id$
2import inc_sip as sip
3import inc_sdp as sdp
4
5# Too long key should be rejected
6sdp = \
7"""
8v=0
9o=- 0 0 IN IP4 127.0.0.1
10s=-
11c=IN IP4 127.0.0.1
12t=0 0
13m=audio 5000 RTP/SAVP 0
14a=crypto:1 aes_cm_128_hmac_sha1_80 inline:WnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5yxQWnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5yxQ
15"""
16
17pjsua_args = "--null-audio --auto-answer 200 --use-srtp 2 --srtp-secure 0"
18extra_headers = ""
19include = []
20exclude = []
21
22sendto_cfg = sip.SendtoCfg("SRTP receive too long key", pjsua_args, sdp, 406,
23 extra_headers=extra_headers,
24 resp_inc=include, resp_exc=exclude)
25