blob: 61662b79609815c7506e5a2e8c25756b43f0013e [file] [log] [blame]
Alexandre Lision8af73cb2013-12-10 14:11:20 -05001# $Id$
2import inc_sip as sip
3import inc_sdp as sdp
4
5# Answer for codec AMR should 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=fmtp:99 octet-align=1
19a=sendrecv
20a=rtpmap:101 telephone-event/8000
21a=fmtp:101 0-15
22"""
23
24pjsua_args = "--null-audio --auto-answer 200 --add-codec AMR"
25extra_headers = ""
26include = ["octet-align=1"] # response must include 'octet-align=1'
27exclude = []
28
29sendto_cfg = sip.SendtoCfg("AMR negotiation should response with fmtp 'octet-align=1'", pjsua_args, sdp, 200,
30 extra_headers=extra_headers,
31 resp_inc=include, resp_exc=exclude)
32