code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
# $Id: 122_sdp_with_unknown_dynamic_2.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=xapplicationx 4000 RTP/AVP 100
a=rtpmap:100 myapp/80000
m=audio 5000 RTP/AVP 0
"""
pjsua_args = "--null-audio --auto-answer 2... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/122_sdp_with_unknown_dynamic_2.py | Python | gpl2 | 659 |
# $Id: 401_fmtp_g7221_with_bitrate_24000.py 3664 2011-07-19 03:42:28Z nanang $
import inc_sip as sip
import inc_sdp as sdp
# Answer with codec G722.1 should choose the same bitrate
# which in this test is 24000
sdp = \
"""
v=0
o=- 3428650655 3428650655 IN IP4 192.168.1.9
s=pjmedia
c=IN IP4 192.168.1.9
t=0 0
a=X-nat:0... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/401_fmtp_g7221_with_bitrate_24000.py | Python | gpl2 | 922 |
# $Id: 160_err_duplicate_replaces.py 2066 2008-06-26 19:51:01Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0
"""
pjsua_args = "--null-audio --auto-answer 200"
extra_headers = "Replaces: abcd;from_tag=1\r\nReplac... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/160_err_duplicate_replaces.py | Python | gpl2 | 529 |
# $Id: 320_srtp_with_unknown_media_1.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/AVP 0
a=crypto:1 aes_cm_128_hmac_sha1_80 inline:WnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5yxQ
m=xapplicationx 4000 RT... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/320_srtp_with_unknown_media_1.py | Python | gpl2 | 792 |
# $Id: 321_srtp2_recv_avp.py 3713 2011-08-18 18:11:08Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 AES_CM_128_HMAC_... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/321_srtp2_recv_avp.py | Python | gpl2 | 781 |
# $Id: 001_torture_4475_3_1_1_5.py 2505 2009-03-12 11:25:11Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Torture message from RFC 4475
# 3.1.1. Valid Messages
# 3.1.1.5. Use of % When It Is Not an Escape
complete_msg = \
"""RE%47IST%45R sip:registrar.example.com SIP/2.0
To: "%Z%45" <sip:resource@example.... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/001_torture_4475_3_1_1_5.py | Python | gpl2 | 811 |
# $Id: 125_sdp_with_multi_audio_0.py 3711 2011-08-18 17:31:46Z nanang $
import inc_sip as sip
import inc_sdp as sdp
# Multiple good m=audio lines! The current algorithm in pjsua-lib will
# select the first audio (note that in 1.x it will select the last audio)
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/125_sdp_with_multi_audio_0.py | Python | gpl2 | 808 |
# $Id: 110_tel_uri.py 2451 2009-02-13 10:13:08Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Handling of incoming tel: URI.
complete_msg = \
"""INVITE tel:+2065551212 SIP/2.0
Via: SIP/2.0/UDP $LOCAL_IP:$LOCAL_PORT;rport;x-route-tag="tgrp:cococisco1";branch=z9hG4bK61E05
From: <tel:12345>$FROM_TAG
To: <tel:+2... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/110_tel_uri.py | Python | gpl2 | 1,353 |
# $Id: 157_err_sdp_bad_addr_type.py 2066 2008-06-26 19:51:01Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP7 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
pjsua_args = ... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/157_err_sdp_bad_addr_type.py | Python | gpl2 | 600 |
# $Id: 125_sdp_with_multi_audio_2.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Multiple m=audio, one of them is bad
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 UNKNOWN 0
m=audio 5000 RTP/AVP 0
"""
pjsua_args = "--null-audio --auto-answer 2... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/125_sdp_with_multi_audio_2.py | Python | gpl2 | 647 |
# $Id: 310_srtp1_no_crypto.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
args = "--null-audio ... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/310_srtp1_no_crypto.py | Python | gpl2 | 631 |
# $Id: 200_ice_success_1.py 2392 2008-12-22 18:54:58Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=ice-ufrag:1234
a=ice-pwd:5678
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/200_ice_success_1.py | Python | gpl2 | 783 |
# $Id: 159_no_rport.py 2442 2009-02-06 08:44:23Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Ticket http://trac.pjsip.org/repos/ticket/718
# RTC doesn't put rport in Via, and it is report to have caused segfault.
complete_msg = \
"""INVITE sip:localhost SIP/2.0
Via: SIP/2.0/UDP $LOCAL_IP:$LOCAL_PORT;branch... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/159_no_rport.py | Python | gpl2 | 957 |
# $Id: 140_sdp_with_direction_attr_in_session_1.py 3086 2010-02-03 14:43:25Z nanang $
import inc_sip as sip
import inc_sdp as sdp
# Offer contains "sendonly" attribute in the session. Answer should
# respond with appropriate direction in session or media
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/140_sdp_with_direction_attr_in_session_1.py | Python | gpl2 | 699 |
# $Id: 200_ice_no_ice.py 2392 2008-12-22 18:54:58Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
args = "--null-audio --u... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/200_ice_no_ice.py | Python | gpl2 | 578 |
# $Id: 251_multipart_ok_simple.py 3243 2010-08-01 09:48:51Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
body = \
"""
--12345
Content-Type: application/sdp
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/251_multipart_ok_simple.py | Python | gpl2 | 801 |
# $Id: 320_srtp_with_unknown_media_2.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=xapplicationx 4000 RTP/AVP 100
a=rtpmap:100 myapp/80000
m=audio 5000 RTP/AVP 0
a=crypto:1 aes_cm_128_hmac_sha1_80 inline:WnD7c1... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/320_srtp_with_unknown_media_2.py | Python | gpl2 | 792 |
# $Id: 120_sdp_with_video_dynamic_1.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Video uses dynamic payload type
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/AVP 0
m=video 4000 RTP/AVP 100
a=rtpmap:100 myvideo/80000
"""
pjsua_args = "--... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/120_sdp_with_video_dynamic_1.py | Python | gpl2 | 675 |
# $Id: 320_srtp2_no_crypto.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/SAVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
args = "--null-audio... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/320_srtp2_no_crypto.py | Python | gpl2 | 606 |
# $Id: 174_timer_se_too_small.py 2858 2009-08-11 12:42:38Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
pjsua_args = "--n... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/174_timer_se_too_small.py | Python | gpl2 | 652 |
# $Id: 300_srtp_duplicated_crypto_tag.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 AES_... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/300_srtp_duplicated_crypto_tag.py | Python | gpl2 | 778 |
# $Id: 301_srtp0_recv_avp.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 AES_CM_128_HMAC_... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/301_srtp0_recv_avp.py | Python | gpl2 | 796 |
# $Id: 201_ice_mismatch_1.py 2392 2008-12-22 18:54:58Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=ice-ufrag:1234
a=ice-pwd:5678
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:10... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/201_ice_mismatch_1.py | Python | gpl2 | 650 |
# $Id: 999_message_no_body.py 2884 2009-08-17 08:29:47Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Incoming MESSAGE without body is now accepted
#
complete_msg = \
"""MESSAGE 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=0... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/999_message_no_body.py | Python | gpl2 | 678 |
# $Id: 323_srtp2_unsupported_crypto.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/SAVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 CRYPT... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/323_srtp2_unsupported_crypto.py | Python | gpl2 | 692 |
# $Id: 153_err_sdp_unsupported_codec.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=video 4000 RTP/AVP 101
a=rtpmap:101 my-proprietary-codec
"""
pjsua_args = "--null-audio --auto-answer 200"
extra_headers... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/153_err_sdp_unsupported_codec.py | Python | gpl2 | 502 |
# $Id: 362_non_sip_uri.py 2392 2008-12-22 18:54:58Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Some non-SIP URI's in Contact header
#
complete_msg = \
"""INVITE 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=08cd5bfc2d8a4fd... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/362_non_sip_uri.py | Python | gpl2 | 772 |
# $Id: 320_srtp_with_unknown_transport_1.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/AVP 0
a=crypto:1 aes_cm_128_hmac_sha1_80 inline:WnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5yxQ
m=audio 4000 UNKNOW... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/320_srtp_with_unknown_transport_1.py | Python | gpl2 | 753 |
# $Id: 201_ice_mismatch_3.py 2392 2008-12-22 18:54:58Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtcp:4382 IN IP4 192.168.0.4
a=ice-ufrag:1234
a=ice-pwd:5678
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/201_ice_mismatch_3.py | Python | gpl2 | 686 |
# $Id: 125_sdp_with_multi_audio_3.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Multiple m=audio, one of them has dynamic PT codec that we don't support
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/AVP 100
a=rtpmap:100 someunknowncodec/80... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/125_sdp_with_multi_audio_3.py | Python | gpl2 | 719 |
# $Id: 300_srtp_receive_no_key_3.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:0 AES_CM_12... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/300_srtp_receive_no_key_3.py | Python | gpl2 | 651 |
# $Id: 126_sdp_with_port_0_and_no_rtpmap_for_dynamic_pt.py 3011 2009-11-10 10:58:20Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=video 0 RTP/AVP 100
m=audio 5000 RTP/AVP 0
"""
pjsua_args = "--null-audio --auto-answer 200"
extra_headers =... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/126_sdp_with_port_0_and_no_rtpmap_for_dynamic_pt.py | Python | gpl2 | 659 |
# $Id: 300_srtp_invalid_crypto_tag_non_numeric.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=cryp... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/300_srtp_invalid_crypto_tag_non_numeric.py | Python | gpl2 | 801 |
# $Id: 161_err_replaces_dlg_not_found.py 2066 2008-06-26 19:51:01Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0
"""
pjsua_args = "--null-audio --auto-answer 200"
extra_headers = "Replaces: abcd;from_tag=1\r\n"
... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/161_err_replaces_dlg_not_found.py | Python | gpl2 | 504 |
# $Id: 001_torture_4475_3_1_1_4.py 3712 2011-08-18 17:34:29Z nanang $
import inc_sip as sip
import inc_sdp as sdp
# Torture message from RFC 4475
# 3.1.1. Valid Messages
# 3.1.1.4. Escaped Nulls in URIs
complete_msg = \
"""REGISTER sip:example.com SIP/2.0
To: sip:null-%00-null@example.com
From: sip:null-%00-null@exam... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/001_torture_4475_3_1_1_4.py | Python | gpl2 | 719 |
# $Id: 301_srtp0_recv_savp.py 3713 2011-08-18 18:11:08Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/SAVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 AES_CM_128_HMA... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/301_srtp0_recv_savp.py | Python | gpl2 | 771 |
# $Id: 300_srtp_receive_no_key_1.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:0 AES_CM_12... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/300_srtp_receive_no_key_1.py | Python | gpl2 | 643 |
# $Id: 155_err_sdp_bad_syntax.py 2066 2008-06-26 19:51:01Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=
o=
s=
c=
t=
a=
"""
pjsua_args = "--null-audio --auto-answer 200"
extra_headers = ""
include = [ "Warning: " ] # better have Warning header
exclude = []
sendto_cfg = sip.SendtoCfg("Bad SDP s... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/155_err_sdp_bad_syntax.py | Python | gpl2 | 429 |
# $Id: 001_torture_4475_3_1_1_2.py 2505 2009-03-12 11:25:11Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Torture message from RFC 4475
# 3.1.1. Valid Messages
# 3.1.1.2. Wide Range of Valid Characters
complete_msg = \
"""!interesting-Method0123456789_*+`.%indeed'~ sip:1_unusual.URI~(to-be!sure)&isn't+it$... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/001_torture_4475_3_1_1_2.py | Python | gpl2 | 1,125 |
# $Id: 100_simplecall.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
sendto_cfg = sip.SendtoCf... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/100_simplecall.py | Python | gpl2 | 383 |
# $Id: 200_ice_success_2.py 2084 2008-06-27 23:53:00Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtcp:4382 IN IP4 192.168.0.4
a=ice-ufrag:1234
a=ice-pwd:5678
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 ... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/200_ice_success_2.py | Python | gpl2 | 898 |
# $Id: 125_sdp_with_multi_audio_1.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Multiple m=audio, one of them is bad
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/AVP 0
m=audio 4000 UNKNOWN 0
"""
pjsua_args = "--null-audio --auto-answer 2... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/125_sdp_with_multi_audio_1.py | Python | gpl2 | 647 |
# $Id: 323_srtp2_receive_too_long_key.py 3193 2010-06-03 02:27:41Z nanang $
import inc_sip as sip
import inc_sdp as sdp
# Too long key should be rejected
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/SAVP 0
a=crypto:1 aes_cm_128_hmac_sha1_80 inline:WnD7c1ksDGs+dIefCEo8omPg4uO8D... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/323_srtp2_receive_too_long_key.py | Python | gpl2 | 655 |
# $Id: 158_err_sdp_bad_transport_type.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/XAVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
pjsua_a... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/158_err_sdp_bad_transport_type.py | Python | gpl2 | 570 |
# $Id: 201_ice_mismatch_2.py 2392 2008-12-22 18:54:58Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtcp:4382 IN IP4 192.168.0.4
a=ice-ufrag:1234
a=ice-pwd:5678
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/201_ice_mismatch_2.py | Python | gpl2 | 736 |
# $Id: 401_fmtp_g7221_with_bitrate_32000.py 3664 2011-07-19 03:42:28Z nanang $
import inc_sip as sip
import inc_sdp as sdp
# Answer with codec G722.1 should choose the same bitrate
# which in this test is 32000
sdp = \
"""
v=0
o=- 3428650655 3428650655 IN IP4 192.168.1.9
s=pjmedia
c=IN IP4 192.168.1.9
t=0 0
a=X-nat:0... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/401_fmtp_g7221_with_bitrate_32000.py | Python | gpl2 | 922 |
# $Id: 124_sdp_with_unknown_static_unknown_transport.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/AVP 0
m=xapplicationx 4000 XRTPX/XAVPX 54
"""
pjsua_args = "--null-audio --auto-answer 200"
ext... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/124_sdp_with_unknown_static_unknown_transport.py | Python | gpl2 | 691 |
# $Id: 120_sdp_with_video_dynamic_2.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# In this case the video codec uses dynamic payload type
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=video 4000 RTP/AVP 100
a=rtpmap:100 myvideo/96000
m=audio 5000 RTP/AVP ... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/120_sdp_with_video_dynamic_2.py | Python | gpl2 | 694 |
# $Id: 200_ice_success_4.py 2376 2008-12-11 17:25:50Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtcp:4382 IN IP4 192.168.0.4
a=ice-ufrag:1234
a=ice-pwd:5678
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 t... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/200_ice_success_4.py | Python | gpl2 | 926 |
# $Id: 361_non_sip_uri.py 2392 2008-12-22 18:54:58Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# No SIP URI in Contact header
#
complete_msg = \
"""INVITE 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=08cd5bfc2d8a4fddb1f5e5... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/361_non_sip_uri.py | Python | gpl2 | 739 |
# $Id: 999_asterisk_err.py 2081 2008-06-27 21:59:15Z bennylp $
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 ... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/999_asterisk_err.py | Python | gpl2 | 1,312 |
# $Id: 151_err_sdp_video.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=video 4000 RTP/AVP 0
"""
pjsua_args = "--null-audio --auto-answer 200"
extra_headers = ""
include = []
exclude = []
sendto_cfg = si... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/151_err_sdp_video.py | Python | gpl2 | 457 |
# $Id: 123_sdp_with_unknown_static_1.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# The unknown media uses static payload type
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/AVP 0
m=xapplicationx 4000 RTP/AVP 54
"""
pjsua_args = "--null-aud... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/123_sdp_with_unknown_static_1.py | Python | gpl2 | 677 |
# $Id: 322_srtp2_recv_savp.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/SAVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 AES_CM_128_HMA... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/322_srtp2_recv_savp.py | Python | gpl2 | 806 |
# $Id: 312_srtp1_recv_savp.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/SAVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 AES_CM_128_HMA... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/312_srtp1_recv_savp.py | Python | gpl2 | 805 |
# $Id: 311_srtp1_recv_avp.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 AES_CM_128_HMAC_... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/311_srtp1_recv_avp.py | Python | gpl2 | 826 |
# $Id: 410_fmtp_amrnb_offer_octet_align.py 3664 2011-07-19 03:42:28Z nanang $
import inc_sip as sip
import inc_sdp as sdp
# Answer for codec AMR should contain fmtp octet-align=1
sdp = \
"""
v=0
o=- 3428650655 3428650655 IN IP4 192.168.1.9
s=pjmedia
c=IN IP4 192.168.1.9
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 99 101
a=r... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/410_fmtp_amrnb_offer_octet_align.py | Python | gpl2 | 811 |
# $Id: 500_pres_subscribe_with_bad_event.py 2273 2008-09-11 10:25:51Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Ticket http://trac.pjsip.org/repos/ticket/623, based on
# http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-September/004709.html:
#
# Assertion when receiving SUBSCRIBE with non-pres... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/500_pres_subscribe_with_bad_event.py | Python | gpl2 | 838 |
# $Id: 150_err_extension.py 2066 2008-06-26 19:51:01Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
pjsua_args = "--null-... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/150_err_extension.py | Python | gpl2 | 601 |
# $Id: 123_sdp_with_unknown_static_2.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# The unknown media uses static payload type
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=xapplicationx 4000 RTP/AVP 54
m=audio 5000 RTP/AVP 0
"""
pjsua_args = "--null-aud... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/123_sdp_with_unknown_static_2.py | Python | gpl2 | 677 |
# $Id: 411_fmtp_amrnb_offer_band_eff.py 3664 2011-07-19 03:42:28Z nanang $
import inc_sip as sip
import inc_sdp as sdp
# Answer for codec AMR should not contain fmtp octet-align=1
sdp = \
"""
v=0
o=- 3428650655 3428650655 IN IP4 192.168.1.9
s=pjmedia
c=IN IP4 192.168.1.9
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 99 101
a=... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/411_fmtp_amrnb_offer_band_eff.py | Python | gpl2 | 792 |
# $Id: 260_multipart_err_no_sdp.py 3243 2010-08-01 09:48:51Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
body = \
"""
--12345
Content-Type: application/notsdp
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-eve... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/260_multipart_err_no_sdp.py | Python | gpl2 | 780 |
# $Id: 331_srtp_prefer_rtp_avp.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# When SRTP is NOT enabled in pjsua, it should prefer to use
# RTP/AVP media line if there are multiple m=audio lines
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/331_srtp_prefer_rtp_avp.py | Python | gpl2 | 827 |
# $Id: 172_timer_supported_but_not_used.py 2858 2009-08-11 12:42:38Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
pjsua_a... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/172_timer_supported_but_not_used.py | Python | gpl2 | 615 |
# $Id: 330_srtp_prefer_rtp_savp.py 3251 2010-08-06 01:03:33Z nanang $
import inc_sip as sip
import inc_sdp as sdp
# When SRTP is enabled in pjsua, it should prefer to use
# RTP/SAVP media line if there are multiple m=audio lines
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/330_srtp_prefer_rtp_savp.py | Python | gpl2 | 868 |
# $Id: 001_torture_4475_3_1_1_3.py 2505 2009-03-12 11:25:11Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Torture message from RFC 4475
# 3.1.1. Valid Messages
# 3.1.1.3. Valid Use of the % Escaping Mechanism
complete_msg = \
"""INVITE sip:sips%3Auser%40example.com@example.net SIP/2.0
To: sip:%75se%72@exam... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/001_torture_4475_3_1_1_3.py | Python | gpl2 | 922 |
# $Id: 125_sdp_with_multi_audio_4.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Multiple m=audio, one of them has static PT codec that we don't support
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/AVP 80
m=audio 4000 RTP/AVP 0
"""
pjsua_... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/125_sdp_with_multi_audio_4.py | Python | gpl2 | 682 |
# $Id: 200_ice_success_3.py 2376 2008-12-11 17:25:50Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=ice-ufrag:1234
a=ice-pwd:5678
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 ... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/200_ice_success_3.py | Python | gpl2 | 880 |
# $Id: 121_sdp_with_video_static_2.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Video uses static payload type which will cause failure
# when session.c looks-up the codec in codec manager
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=video 4000 RTP/AVP... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/121_sdp_with_video_static_2.py | Python | gpl2 | 723 |
# $Id: 173_timer_offer_no_refresher.py 2858 2009-08-11 12:42:38Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
pjsua_args ... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/173_timer_offer_no_refresher.py | Python | gpl2 | 677 |
# $Id: 320_srtp_with_unknown_transport_2.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 UNKNOWN 0
m=audio 5000 RTP/AVP 0
a=crypto:1 aes_cm_128_hmac_sha1_80 inline:WnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/320_srtp_with_unknown_transport_2.py | Python | gpl2 | 753 |
# $Id: 313_srtp1_unsupported_crypto.py 2036 2008-06-20 17:43:55Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=tester
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 CRYPTO... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/313_srtp1_unsupported_crypto.py | Python | gpl2 | 710 |
# $Id: 173_timer_offer_refresher_uac.py 2858 2009-08-11 12:42:38Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
pjsua_args... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/173_timer_offer_refresher_uac.py | Python | gpl2 | 683 |
# $Id: 121_sdp_with_video_static_1.py 2081 2008-06-27 21:59:15Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
# Video uses static payload type which will cause failure
# when session.c looks-up the codec in codec manager
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=-
c=IN IP4 127.0.0.1
t=0 0
m=audio 5000 RTP/AVP... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/121_sdp_with_video_static_1.py | Python | gpl2 | 719 |
# $Id: 173_timer_offer_refresher_uas.py 2858 2009-08-11 12:42:38Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
pjsua_args... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/173_timer_offer_refresher_uas.py | Python | gpl2 | 683 |
# $Id: 170_timer_required.py 3307 2010-09-08 05:38:49Z nanang $
import inc_sip as sip
import inc_sdp as sdp
sdp = \
"""
v=0
o=- 0 0 IN IP4 127.0.0.1
s=pjmedia
c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
"""
pjsua_args = "--null-... | zxybird-pjsip-blf | tests/pjsua/scripts-sendto/170_timer_required.py | Python | gpl2 | 691 |
# $Id: mod_call.py 2078 2008-06-27 21:12:12Z nanang $
import time
import imp
import sys
import inc_const as const
from inc_cfg import *
# Load configuration
cfg_file = imp.load_source("cfg_file", ARGS[1])
# Test body function
def test_func(t):
callee = t.process[0]
caller = t.process[1]
# if have_reg then wait fo... | zxybird-pjsip-blf | tests/pjsua/mod_portaproxy_call.py | Python | gpl2 | 1,330 |
# $Id: run.py 4183 2012-06-28 09:16:03Z nanang $
import sys
import imp
import re
import os
import subprocess
import random
import time
import getopt
import inc_const as const
import inc_cfg as inc
# Vars
G_EXE = "" # pjsua executable path
G_INUNIX = False # flags that test is running in Unix
# Usage string
usage =... | zxybird-pjsip-blf | tests/pjsua/run.py | Python | gpl2 | 7,122 |
# $Id: mod_pres.py 2078 2008-06-27 21:12:12Z nanang $
import time
import imp
import sys
import inc_const as const
from inc_cfg import *
# Load configuration
cfg_file = imp.load_source("cfg_file", ARGS[1])
# Test body function
def test_func(t):
u1 = t.process[0]
uri1 = cfg_file.test_param.inst_params[0].uri
acc1 =... | zxybird-pjsip-blf | tests/pjsua/mod_pres.py | Python | gpl2 | 2,860 |
# $Id: strict-route.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --id=sip:pjsua@localhost --username=pjsua --realm=* $SIPP_URI"]
PJSUA_EXPECTS = [[0, "ACK sip:proxy@.* SIP/2\.0", ""],
[0, const.STATE_CONFIRMED, "h"]
]
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/strict-route.py | Python | gpl2 | 285 |
# $Id: uas-cancel-no-final.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 $SIPP_URI"]
PJSUA_EXPECTS = [[0, const.STATE_EARLY, "h"]]
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-cancel-no-final.py | Python | gpl2 | 190 |
# $Id: uas-mwi-0.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --id sip:pjsua@localhost:$SIPP_PORT --mwi"]
PJSUA_EXPECTS = []
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-mwi-0.py | Python | gpl2 | 185 |
# $Id: transfer-unattended.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio", # UA0
"--null-audio", # UA1
"--null-audio" # UA2
]
PJSUA_EXPECTS = [
# A calls B
[0, "", "m"],
[0, "", "$PJSUA_URI[1]"],
[0, const.STATE_CALLING, ""],
[1, const.EVENT_INC... | zxybird-pjsip-blf | tests/pjsua/scripts-sipp/transfer-unattended.py | Python | gpl2 | 738 |
# $Id: uas-subscribe-refresh-481.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --id sip:pjsua@localhost --add-buddy $SIPP_URI"]
PJSUA_EXPECTS = [[0, "", "s"],
[0, "Subscribe presence of:", "1"],
[0, "status is Online", ""],
[0, "subscription state is T... | zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-subscribe-refresh-481.py | Python | gpl2 | 341 |
# $Id: uas-subscribe-terminated-retry.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --id sip:pjsua@localhost --add-buddy $SIPP_URI"]
PJSUA_EXPECTS = [[0, "", "s"],
[0, "Subscribe presence of:", "1"],
[0, "Presence subscription .* is TERMINATED", ""],
[... | zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-subscribe-terminated-retry.py | Python | gpl2 | 363 |
# $Id: uas-mwi.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --id sip:pjsua@localhost:$SIPP_PORT --mwi"]
PJSUA_EXPECTS = []
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-mwi.py | Python | gpl2 | 183 |
# $Id: uac-inv-without-sdp.py 4177 2012-06-26 02:28:59Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1"]
PJSUA_EXPECTS = [[0, const.EVENT_INCOMING_CALL, "a"],
[0, "", "200"],
[0, const.MEDIA_ACTIVE, ""],
[0, const.STATE_CONFIRMED, "h"]
]
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uac-inv-without-sdp.py | Python | gpl2 | 279 |
# $Id: uas-auth.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --id=sip:a@localhost --username=a --realm=* --registrar=$SIPP_URI"]
PJSUA_EXPECTS = []
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-auth.py | Python | gpl2 | 208 |
# $Id: uac-ticket-1148.py 4177 2012-06-26 02:28:59Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --auto-answer=200"]
PJSUA_EXPECTS = [[0, const.STATE_CONFIRMED, "v"]]
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uac-ticket-1148.py | Python | gpl2 | 198 |
# $Id: uas-subscribe-multipart-notify.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --id sip:pjsua@localhost --add-buddy $SIPP_URI"]
PJSUA_EXPECTS = [[0, "", "s"],
[0, "Subscribe presence of:", "1"],
[0, "status is Online", ""],
[0, "subscription state... | zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-subscribe-multipart-notify.py | Python | gpl2 | 346 |
# $Id: uas-subscribe-late-notify.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --id sip:pjsua@localhost --add-buddy $SIPP_URI"]
PJSUA_EXPECTS = [[0, "", "s"],
[0, "Subscribe presence of:", "1"],
[0, "subscription state is ACTIVE", ""],
[0, "subscriptio... | zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-subscribe-late-notify.py | Python | gpl2 | 353 |
# $Id: uac-inv-two-media-but-one-disabled-no-rtpmap.py 4177 2012-06-26 02:28:59Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --auto-answer=200"]
PJSUA_EXPECTS = [[0, const.STATE_CONFIRMED, "v"]]
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uac-inv-two-media-but-one-disabled-no-rtpmap.py | Python | gpl2 | 227 |
# $Id: uas-reinv-glare.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 $SIPP_URI"]
PJSUA_EXPECTS = [[0, const.STATE_CONFIRMED, "U"]]
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-reinv-glare.py | Python | gpl2 | 190 |
# $Id: uas-answer-200-update-without-sdp.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 $SIPP_URI"]
PJSUA_EXPECTS = [[0, const.STATE_CONFIRMED, "U"]]
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-answer-200-update-without-sdp.py | Python | gpl2 | 208 |
# $Id: uas-answer-200-reinvite-without-sdp.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 $SIPP_URI"]
PJSUA_EXPECTS = [[0, const.STATE_CONFIRMED, "v"]]
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-answer-200-reinvite-without-sdp.py | Python | gpl2 | 210 |
# $Id: uas-subscribe-notify-terminate.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio --max-calls=1 --id sip:pjsua@localhost --add-buddy $SIPP_URI"]
PJSUA_EXPECTS = [[0, "", "s"],
[0, "Subscribe presence of:", "1"],
[0, "subscription state is TERMINATED", ""]
]
| zxybird-pjsip-blf | tests/pjsua/scripts-sipp/uas-subscribe-notify-terminate.py | Python | gpl2 | 314 |
# $Id: transfer-attended.py 4188 2012-06-29 09:01:17Z nanang $
#
import inc_const as const
PJSUA = ["--null-audio", # UA0
"--null-audio", # UA1
"--null-audio" # UA2
]
PJSUA_EXPECTS = [
# A calls B
[0, "", "m"],
[0, "", "$PJSUA_URI[1]"],
[0, const.STATE_CALLING, ""],
[1, const.EVENT_INCOM... | zxybird-pjsip-blf | tests/pjsua/scripts-sipp/transfer-attended.py | Python | gpl2 | 1,239 |
# $Id: inc_sdp.py 2392 2008-12-22 18:54:58Z bennylp $
# SDP template
sdp_templ = \
"""v=0\r
o=- 1 1 $NET_TYPE $ADDR_TYPE $LOCAL_IP\r
s=pjmedia\r
t=0 0\r
$SDP_LINES"""
sdp_media_templ = \
"""m=$MEDIA_TYPE $PORT $TRANSPORT 0\r
c=$NET_TYPE $ADDR_TYPE $LOCAL_IP\r
$SDP_LINES"""
# Create SDP session
def session(local_ip="... | zxybird-pjsip-blf | tests/pjsua/inc_sdp.py | Python | gpl2 | 1,103 |
# $Id: mod_media_playrec.py 2884 2009-08-17 08:29:47Z bennylp $
# PLAYFILE -> RECFILE:
# Input file is played and is recorded to output, then compare them.
# Useful to tes clock rates compatibility and resample quality
# null-audio
# port 1: wav file input xxxxxx.clock_rate.wav, e.g: test1.8.wav
# port 2: wav file oup... | zxybird-pjsip-blf | tests/pjsua/mod_media_playrec.py | Python | gpl2 | 2,978 |
# $Id: inc_sip.py 3283 2010-08-18 07:37:29Z bennylp $
#
from socket import *
import re
import random
import time
import sys
import inc_cfg as cfg
from select import *
# SIP request template
req_templ = \
"""$METHOD $TARGET_URI SIP/2.0\r
Via: SIP/2.0/UDP $LOCAL_IP:$LOCAL_PORT;rport;branch=z9hG4bK$BRANCH\r
Max-Forwards:... | zxybird-pjsip-blf | tests/pjsua/inc_sip.py | Python | gpl2 | 9,722 |