~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.0.1/tests/pjsua/scripts-sendto/001_torture_4475_3_1_1_1.py

  • Committer: Jackson Doak
  • Date: 2013-07-10 21:04:46 UTC
  • mfrom: (20.1.3 sid)
  • Revision ID: noskcaj@ubuntu.com-20130710210446-y8f587vza807icr9
Properly merged from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: 001_torture_4475_3_1_1_1.py 2505 2009-03-12 11:25:11Z bennylp $
 
2
import inc_sip as sip
 
3
import inc_sdp as sdp
 
4
 
 
5
# Torture message from RFC 4475
 
6
# 3.1.1.  Valid Messages
 
7
# 3.1.1.1.  A Short Tortuous INVITE
 
8
complete_msg = \
 
9
"""INVITE sip:vivekg@chair-dnrc.example.com;unknownparam SIP/2.0
 
10
TO :
 
11
 sip:vivekg@chair-dnrc.example.com ;   tag    = 1918181833n
 
12
from   : "J Rosenberg \\\\\\""       <sip:jdrosen@example.com>
 
13
  ;
 
14
  tag = 98asjd8
 
15
MaX-fOrWaRdS: 0068
 
16
Call-ID: wsinv.ndaksdj@192.0.2.1
 
17
Content-Length   : 150
 
18
cseq: 0009
 
19
  INVITE
 
20
Via  : SIP  /   2.0
 
21
 /UDP
 
22
    192.0.2.2;rport;branch=390skdjuw
 
23
s :
 
24
NewFangledHeader:   newfangled value
 
25
 continued newfangled value
 
26
UnknownHeaderWithUnusualValue: ;;,,;;,;
 
27
Content-Type: application/sdp
 
28
Route:
 
29
 <sip:services.example.com;lr;unknownwith=value;unknown-no-value>
 
30
v:  SIP  / 2.0  / TCP     spindle.example.com   ;
 
31
  branch  =   z9hG4bK9ikj8  ,
 
32
 SIP  /    2.0   / UDP  192.168.255.111   ; branch=
 
33
 z9hG4bK30239
 
34
m:"Quoted string \\"\\"" <sip:jdrosen@example.com> ; newparam =
 
35
      newvalue ;
 
36
  secondparam ; q = 0.33
 
37
 
 
38
v=0
 
39
o=mhandley 29739 7272939 IN IP4 192.0.2.3
 
40
s=-
 
41
c=IN IP4 192.0.2.4
 
42
t=0 0
 
43
m=audio 49217 RTP/AVP 0 12
 
44
m=video 3227 RTP/AVP 31
 
45
a=rtpmap:31 LPC
 
46
"""
 
47
 
 
48
 
 
49
sendto_cfg = sip.SendtoCfg( "RFC 4475 3.1.1.1",
 
50
                            "--null-audio --auto-answer 200",
 
51
                            "", 481, complete_msg=complete_msg)