blob: 6299f4ed0ec99562fed336d32484d3d58e5c758c [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001# $Id$
2import inc_sip as sip
3import inc_sdp as sdp
4
5# Answer for codec AMR should not contain fmtp octet-align=1
6
7sdp = \
8"""
9v=0
10o=- 3428650655 3428650655 IN IP4 192.168.1.9
11s=pjmedia
12c=IN IP4 192.168.1.9
13t=0 0
14a=X-nat:0
15m=audio 4000 RTP/AVP 99 101
16a=rtcp:4001 IN IP4 192.168.1.9
17a=rtpmap:99 AMR/8000
18a=sendrecv
19a=rtpmap:101 telephone-event/8000
20a=fmtp:101 0-15
21"""
22
23pjsua_args = "--null-audio --auto-answer 200 --add-codec AMR"
24extra_headers = ""
25include = [""]
26exclude = ["octet-align=1"] # response must not include fmtp 'octet-align=1'
27
28sendto_cfg = sip.SendtoCfg("AMR negotiation should not contain 'octet-align=1'", pjsua_args, sdp, 200,
29 extra_headers=extra_headers,
30 resp_inc=include, resp_exc=exclude)
31