~ubuntu-branches/ubuntu/raring/sflphone/raring

« back to all changes in this revision

Viewing changes to sflphone-common/libs/pjproject/tests/pjsua/scripts-sendto/156_err_sdp_bad_net_type.py

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2011-11-25 13:24:12 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20111125132412-dc4qvhyosk74cd42
Tags: 1.0.1-4
Don't assume that arch:all packages will get built (closes: #649726)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: 156_err_sdp_bad_net_type.py 2066 2008-06-26 19:51:01Z bennylp $
2
 
import inc_sip as sip
3
 
import inc_sdp as sdp
4
 
 
5
 
sdp = \
6
 
"""
7
 
v=0
8
 
o=- 0 0 IN IP4 127.0.0.1
9
 
s=pjmedia
10
 
c=AF IP4 127.0.0.1
11
 
t=0 0
12
 
m=audio 4000 RTP/AVP 0 101
13
 
a=rtpmap:0 PCMU/8000
14
 
a=sendrecv
15
 
a=rtpmap:101 telephone-event/8000
16
 
a=fmtp:101 0-15
17
 
"""
18
 
 
19
 
pjsua_args = "--null-audio --auto-answer 200"
20
 
extra_headers = ""
21
 
include = [ "Warning: " ]       # better have Warning header
22
 
exclude = []
23
 
sendto_cfg = sip.SendtoCfg("Bad SDP network type", pjsua_args, sdp, 400, 
24
 
                           extra_headers=extra_headers,
25
 
                           resp_inc=include, resp_exc=exclude) 
26
 
                           
27