~ubuntu-branches/ubuntu/maverick/sflphone/maverick

« 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: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-06-03 15:59:46 UTC
  • Revision ID: james.westby@ubuntu.com-20100603155946-ybe8d8o8zx8lp0m8
Tags: upstream-0.9.8.3
ImportĀ upstreamĀ versionĀ 0.9.8.3

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