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

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject/tests/pjsua/scripts-sendto/999_message_no_body.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: 999_message_no_body.py 2884 2009-08-17 08:29:47Z bennylp $
2
 
import inc_sip as sip
3
 
import inc_sdp as sdp
4
 
 
5
 
# Incoming MESSAGE without body is now accepted
6
 
#
7
 
complete_msg = \
8
 
"""MESSAGE sip:localhost SIP/2.0
9
 
Via: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9
10
 
Max-Forwards: 70
11
 
From: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298
12
 
To: <sip:localhost>
13
 
Call-ID: 3373d9eb32aa458db7e69c7ea51e0bd7
14
 
CSeq: 23809 MESSAGE
15
 
Contact: <sip:192.168.0.14:5060>
16
 
User-Agent: PJSUA v0.8.0-trunk/win32
17
 
Content-Type: text/plain
18
 
Content-Length: 50
19
 
"""
20
 
 
21
 
 
22
 
sendto_cfg = sip.SendtoCfg( "empty MESSAGE", "--null-audio --auto-answer 200", 
23
 
                            "", 200, complete_msg=complete_msg)
24