blob: 2e369edbfa55f6031b743b474823b382d0c42b5f [file] [log] [blame]
Benny Prijono0fe5acff2008-06-28 00:39:58 +00001# $Id$
2import inc_sip as sip
3import inc_sdp as sdp
4
5# There's some report that incoming MESSAGE without body will crash pjsua
6#
7complete_msg = \
8"""MESSAGE sip:localhost SIP/2.0
9Via: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9
10Max-Forwards: 70
11From: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298
12To: <sip:localhost>
13Call-ID: 3373d9eb32aa458db7e69c7ea51e0bd7
14CSeq: 23809 MESSAGE
15Contact: <sip:192.168.0.14:5060>
16User-Agent: PJSUA v0.8.0-trunk/win32
17Content-Type: text/plain
18Content-Length: 50
19"""
20
21
22sendto_cfg = sip.SendtoCfg( "empty MESSAGE", "--null-audio --auto-answer 200",
23 "", 488, complete_msg=complete_msg)
24