1
# $Id: 140_sdp_with_direction_attr_in_session_2.py 3086 2010-02-03 14:43:25Z nanang $
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.
11
o=- 0 0 IN IP4 127.0.0.1
16
m=audio 5000 RTP/AVP 0
20
pjsua_args = "--null-audio --auto-answer 200"
22
include = ["Content-Type: application/sdp", # response must include SDP
27
sendto_cfg = sip.SendtoCfg("SDP direction in session", pjsua_args, sdp, 200,
28
extra_headers=extra_headers,
29
resp_inc=include, resp_exc=exclude)