diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-12-22 18:54:58 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-12-22 18:54:58 +0000 |
commit | 0723dbc601c74330f792db67ad75f6d580c30d8b (patch) | |
tree | a10e1cc45bdeb80210168f2e26421ae0d7e7295d /tests/pjsua/scripts-sendto/363_non_sip_uri_subscribe.py | |
parent | 341dea971f9d548cc922f5f3446d80130a1d57d9 (diff) |
Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2392 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/pjsua/scripts-sendto/363_non_sip_uri_subscribe.py')
-rw-r--r-- | tests/pjsua/scripts-sendto/363_non_sip_uri_subscribe.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/pjsua/scripts-sendto/363_non_sip_uri_subscribe.py b/tests/pjsua/scripts-sendto/363_non_sip_uri_subscribe.py new file mode 100644 index 00000000..5d3d42de --- /dev/null +++ b/tests/pjsua/scripts-sendto/363_non_sip_uri_subscribe.py @@ -0,0 +1,31 @@ +# $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 +Contact: <sip:localhost> +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", + "", 200, complete_msg=complete_msg) + |