Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sendto/999_message_no_body.py

raw symbols SCIP
1 import inc_sip as sip
2 import inc_sdp as sdp
3
4 # Incoming MESSAGE without body is now accepted
5 #
6 complete_msg = \
7 """MESSAGE sip:localhost SIP/2.0
8 Via: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9
9 Max-Forwards: 70
10 From: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298
11 To: <sip:localhost>
12 Call-ID: 3373d9eb32aa458db7e69c7ea51e0bd7
13 CSeq: 23809 MESSAGE
14 Contact: <sip:192.168.0.14:5060>
15 User-Agent: PJSUA v0.8.0-trunk/win32
16 Content-Type: text/plain
17 Content-Length: 50
18 """
19
20
21 sendto_cfg = sip.SendtoCfg( "empty MESSAGE", "--null-audio --auto-answer 200",
22 "", 200, complete_msg=complete_msg)
23