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/999_asterisk_err.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/999_asterisk_err.py')
-rw-r--r-- | tests/pjsua/scripts-sendto/999_asterisk_err.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/pjsua/scripts-sendto/999_asterisk_err.py b/tests/pjsua/scripts-sendto/999_asterisk_err.py new file mode 100644 index 00000000..580b46de --- /dev/null +++ b/tests/pjsua/scripts-sendto/999_asterisk_err.py @@ -0,0 +1,45 @@ +# $Id$ +import inc_sip as sip +import inc_sdp as sdp + +# http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-June/003426.html: +# +# Report in pjsip mailing list on 27/6/2008 that this message will +# cause pjsip to respond with 500 and then second request will cause +# segfault. +complete_msg = \ +"""INVITE sip:5001@192.168.1.200:5060;transport=UDP SIP/2.0 +Via: SIP/2.0/UDP 192.168.1.11:5060;branch=z9hG4bK74a60ee5;rport +From: \"A user\" <sip:66660000@192.168.1.11>;tag=as2858a32c +To: <sip:5001@192.168.1.200:5060;transport=UDP> +Contact: <sip:66660000@192.168.1.11> +Call-ID: 0bc7612c665e875a4a46411442b930a6@192.168.1.11 +CSeq: 102 INVITE +User-Agent: Asterisk PBX +Max-Forwards: 70 +Date: Fri, 27 Jun 2008 08:46:47 GMT +Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY +Supported: replaces +Content-Type: application/sdp +Content-Length: 285 + +v=0 +o=root 4236 4236 IN IP4 192.168.1.11 +s=session +c=IN IP4 192.168.1.11 +t=0 0 +m=audio 14390 RTP/AVP 0 3 8 101 +a=rtpmap:0 PCMU/8000 +a=rtpmap:3 GSM/8000 +a=rtpmap:8 PCMA/8000 +a=rtpmap:101 telephone-event/8000 +a=fmtp:101 0-16 +a=silenceSupp:off - - - - +a=ptime:20 +a=sendrecv +""" + + +sendto_cfg = sip.SendtoCfg( "Asterisk 500", "--null-audio --auto-answer 200", + "", 200, complete_msg=complete_msg) + |