blob: 0ec3849cf8c6f9aa37589cbeaa05de5a9e52710b [file] [log] [blame]
Nanang Izzuddin74f87462008-12-11 17:25:50 +00001# $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=rtcp:4382 IN IP4 192.168.0.4
14a=ice-ufrag:1234
15a=ice-pwd:5678
16a=rtpmap:0 PCMU/8000
17a=sendrecv
18a=rtpmap:101 telephone-event/8000
19a=fmtp:101 0-15
20a=candidate:XX 1 UDP 1234 127.0.0.1 4000 typ host
21a=candidate:YY 2 UDP 1234 127.0.0.2 4002 typ host
22"""
23
24args = "--null-audio --use-ice --auto-answer 200 --max-calls 1 --ice-no-rtcp"
25include = ["a=ice-ufrag"] # must have ICE
26exclude = [
27 "ice-mismatch", # must not mismatch
28 "a=candidate:[0-9a-zA-Z]+ 2 UDP" # must not have RTCP component
29 ]
30
31sendto_cfg = sip.SendtoCfg( "pjsua with --ice-no-rtcp ignores RTCP things in the SDP",
32 pjsua_args=args, sdp=sdp, resp_code=200,
33 resp_inc=include, resp_exc=exclude,
34 enable_buffer = True)
35