30 lines
809 B
Python
30 lines
809 B
Python
# $Id$
|
|
import inc_sip as sip
|
|
import inc_sdp as sdp
|
|
|
|
# Some non-SIP URI's in Contact header
|
|
#
|
|
complete_msg = \
|
|
"""SUBSCRIBE sip:localhost SIP/2.0
|
|
Via: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9
|
|
Max-Forwards: 70
|
|
From: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298
|
|
To: <sip:localhost>
|
|
Call-ID: 3373d9eb32aa458db7e69c7ea51e0bd7
|
|
CSeq: 0 SUBSCRIBE
|
|
Contact: mailto:dontspam@pjsip.org
|
|
Contact: <mailto:dontspam@pjsip.org>
|
|
Contact: http://www.pjsip.org/the%20path.cgi?pname=pvalue
|
|
Event: presence
|
|
Expires: 600
|
|
Accept: application/pidf+xml, application/xpidf+xml
|
|
Allow-Events: presence, refer
|
|
User-Agent: PJSUA v0.9.0-trunk/win32
|
|
Content-Length: 0
|
|
"""
|
|
|
|
|
|
sendto_cfg = sip.SendtoCfg( "Non SIP URI in Contact",
|
|
"--null-audio --auto-answer 200",
|
|
"", 400, complete_msg=complete_msg)
|
|
|