blob: a8b1d10c058a5140d37bd98178354c01d6176ada [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001# $Id$
2import inc_sip as sip
3import inc_sdp as sdp
4
5# Offer contains "inactive" attribute in the session, however the media
6# also has "sendonly" attribute. Answer should appropriately respond
7# direction attribute in media, instead of the one in session.
8sdp = \
9"""
10v=0
11o=- 0 0 IN IP4 127.0.0.1
12s=-
13c=IN IP4 127.0.0.1
14t=0 0
15a=inactive
16m=audio 5000 RTP/AVP 0
17a=sendonly
18"""
19
20pjsua_args = "--null-audio --auto-answer 200"
21extra_headers = ""
22include = ["Content-Type: application/sdp", # response must include SDP
23 "a=recvonly"
24 ]
25exclude = []
26
27sendto_cfg = sip.SendtoCfg("SDP direction in session", pjsua_args, sdp, 200,
28 extra_headers=extra_headers,
29 resp_inc=include, resp_exc=exclude)
30