blob: 13c2449833d4eb057e8afc40bac9d6fb2ddd3311 [file] [log] [blame]
Alexandre Lision67916dd2014-01-24 13:33:04 -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=pjmedia
10c=IN IP4 127.0.0.1
11t=0 0
12m=audio 4000 RTP/AVP 0 101
13a=rtpmap:0 PCMU/8000
14a=sendrecv
15a=rtpmap:101 telephone-event/8000
16a=fmtp:101 0-15
17"""
18
19pjsua_args = "--null-audio --auto-answer 200 --timer-min-se 90"
20extra_headers = "Supported: timer\nSession-Expires: 1800;refresher=uac\n"
21include = ["Session-Expires:.*;refresher=ua[cs]"]
22exclude = []
23sendto_cfg = sip.SendtoCfg("Session Timer offer refresher uac", pjsua_args, sdp, 200,
24 extra_headers=extra_headers,
25 resp_inc=include, resp_exc=exclude)
26