blob: 2c741e44e7ee19193799fce8727442004f9cca5f [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001# $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=ice-ufrag:1234
14a=ice-pwd:5678
15a=rtpmap:0 PCMU/8000
16a=sendrecv
17a=rtpmap:101 telephone-event/8000
18a=fmtp:101 0-15
19a=candidate:XX 1 UDP 1234 127.0.0.1 4000 typ host
20a=candidate:YY 2 UDP 1234 127.0.0.1 4001 typ host
21"""
22
23args = "--null-audio --use-ice --auto-answer 200 --max-calls 1"
24include = ["a=ice-ufrag", # must have ICE
25 "a=candidate:[0-9a-zA-Z]+ 2 UDP" # must have RTCP component
26 ]
27exclude = [
28 "ice-mismatch" # must not mismatch
29 ]
30
31sendto_cfg = sip.SendtoCfg( "caller sends two components without a=rtcp line",
32 pjsua_args=args, sdp=sdp, resp_code=200,
33 resp_inc=include, resp_exc=exclude,
34 enable_buffer = True)
35