~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.1.0/tests/pjsua/scripts-sendto/001_torture_4475_3_1_1_3.py

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: 001_torture_4475_3_1_1_3.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.3. Valid Use of the % Escaping Mechanism
8
 
complete_msg = \
9
 
"""INVITE sip:sips%3Auser%40example.com@example.net SIP/2.0
10
 
To: sip:%75se%72@example.com
11
 
From: <sip:I%20have%20spaces@example.net>;tag=$FROM_TAG
12
 
Max-Forwards: 87
13
 
i: esc01.239409asdfakjkn23onasd0-3234
14
 
CSeq: 234234 INVITE
15
 
Via: SIP/2.0/UDP host5.example.net;rport;branch=z9hG4bKkdjuw
16
 
C: application/sdp
17
 
Contact:
18
 
  <sip:cal%6Cer@$LOCAL_IP:$LOCAL_PORT;%6C%72;n%61me=v%61lue%25%34%31>
19
 
Content-Length: 150
20
 
 
21
 
v=0
22
 
o=mhandley 29739 7272939 IN IP4 192.0.2.1
23
 
s=-
24
 
c=IN IP4 192.0.2.1
25
 
t=0 0
26
 
m=audio 49217 RTP/AVP 0 12
27
 
m=video 3227 RTP/AVP 31
28
 
a=rtpmap:31 LPC
29
 
"""
30
 
 
31
 
 
32
 
sendto_cfg = sip.SendtoCfg( "RFC 4475 3.1.1.3", 
33
 
                            "--null-audio --auto-answer 200", 
34
 
                            "", 200, complete_msg=complete_msg)
35