code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
# $Id: 300_srtp_crypto_case_insensitive.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 A... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4444,
0.5556,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/SAVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 2 --srtp-secure 0\"",
"include = [\"m=audio \\d+ RTP/SAVP\", \"a=crypto\"]"... |
# $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... | [
[
1,
0,
0.0625,
0.0312,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0938,
0.0312,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4531,
0.5,
0,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 3428650655 3428650655 IN IP4 192.168.1.9\ns=pjmedia\nc=IN IP4 192.168.1.9\nt=0 0\na=X-nat:0",
"pjsua_args = \"--null-audio --auto-answer 200 --add-codec AMR\"",
"extra_headers = \"\"",
"include = [\"octet-align=1\"]\t# response ... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3704,
0.4074,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 UNKNOWN 0",
"pjsua_args = \"--null-audio --auto-answer 200 --use-srtp 1 --srtp-secure 0\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\"... |
# $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... | [
[
1,
0,
0.069,
0.0345,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1034,
0.0345,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.431,
0.5517,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --use-ice --auto-answer 200 --max-calls 1\"",
"include = [\"a=ice-mismatch\"]",
"exclude = []",
"sendto_cfg = sip.... |
# $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... | [
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4355,
0.5806,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --use-ice --auto-answer 200 --max-calls 1\"",
"include = [\"a=ice-mismatch\"]",
"exclude = []",
"sendto_cfg = sip.... |
# $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... | [
[
1,
0,
0.0571,
0.0286,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0857,
0.0286,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3857,
0.5143,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --use-ice --auto-answer 200 --max-calls 1 --ice-no-rtcp\"",
"include = [\"a=ice-ufrag\"]\t\t\t# must have ICE",
"exc... |
# $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 ... | [
[
1,
0,
0.0571,
0.0286,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0857,
0.0286,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3714,
0.4857,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --use-ice --auto-answer 200 --max-calls 1\"",
"include = [\"a=ice-ufrag\",\t\t\t# must have ICE\n\t \"a=candidate:[0... |
# $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... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4231,
0.5,
0,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"pjsua_args = \"--null-audio --auto-answer 200 --timer-min-se 90\"",
"extra_headers = \"Supported: timer\\nSession-Expires: 1800;refresher=ua... |
# $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_... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4286,
0.5357,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 0 --srtp-secure 0\"",
"include = []",
"exclude = [\"a=crypto\"]",
"sendt... |
# $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... | [
[
1,
0,
0.0526,
0.0263,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0789,
0.0263,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4211,
0.6053,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"body = \\\n\"\"\"\n--12345\nContent-Type: application/sdp\n\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia",
"args = \"--null-audio --auto-answer 200 --max-calls 1\"",
"extra_headers = \"Content-Type: multipart/mixed; boundary=12345\"",
"include = [\"v=0\", \"... |
# $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"
... | [
[
1,
0,
0.087,
0.0435,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1304,
0.0435,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3913,
0.3913,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"Replaces: abcd;from_tag=1\\r\\n\"",
"include = []",
"exclude = []",
"... |
# $Id: 159_no_rport_nit.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 reported to have caused segfault.
#
complete_msg = \
"""MESSAGE sip:localhost SIP/2.0
Via: SIP/2.0/UDP localhost:$LOCAL_PO... | [
[
1,
0,
0.08,
0.04,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.12,
0.04,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.56,
0.52,
0,
0.66,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"MESSAGE sip:localhost SIP/2.0\nVia: SIP/2.0/UDP localhost:$LOCAL_PORT;branch=z9hG4bK$BRANCH\nFrom: <sip:tester@localhost>;tag=as2858a32c\nTo: <sip:pjsua@localhost>\nCall-ID: 123@localhost\nCSeq: 1 MESSAGE\nMax-Forwards: 70",
"sendto_c... |
# $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
... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4107,
0.3571,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\na=sendonly",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include SDP\n\t ... |
# $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... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5192,
0.5385,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"INVITE sip:localhost SIP/2.0\nVia: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9\nMax-Forwards: 70\nFrom: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298\nTo: <sip:localhost>\nCall-ID: 3373d9eb32aa458db7e69c7ea51e0bd7... |
# $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... | [
[
1,
0,
0.087,
0.0435,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1304,
0.0435,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3913,
0.3913,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=\no=\ns=\nc=\nt=\na=",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [ \"Warning: \" ]\t# better have Warning header",
"exclude = []",
"sendto_cfg = sip.SendtoCfg(\"Bad SDP syntax\", pjsua_ar... |
# $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... | [
[
1,
0,
0.0526,
0.0263,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0789,
0.0263,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5263,
0.7105,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"INVITE sip:localhost SIP/2.0\nVia: SIP/2.0/UDP $LOCAL_IP:$LOCAL_PORT;branch=z9hG4bK74a60ee5\nFrom: <sip:tester@localhost>;tag=as2858a32c\nTo: <sip:pjsua@localhost>\nContact: <sip:tester@$LOCAL_IP:$LOCAL_PORT>\nCall-ID: 123@localhost\nCS... |
# $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 ... | [
[
1,
0,
0.0556,
0.0278,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0833,
0.0278,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.375,
0.5,
0,
0.6... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --use-ice --auto-answer 200 --max-calls 1\"",
"include = [\"a=ice-ufrag\",\t\t\t# must have ICE\n\t \"a=candidate:[0... |
# $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_... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4286,
0.5357,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 1 --srtp-secure 0\"",
"include = [\"m=audio \\d+ RTP/AVP\", \"a=crypto\"]",
... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3889,
0.3704,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include SD... |
# $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_... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4444,
0.5556,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 1 --srtp-secure 0\"",
"include = []",
"exclude = []",
"sendto_cfg = sip.... |
# $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... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4423,
0.5385,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 1 --srtp-secure 0\"",
"include = []",
"exclude = []",
"sendto_cfg = sip.... |
# $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... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4286,
0.5357,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/SAVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 1 --srtp-secure 0\"",
"include = [\"m=audio \\d+ RTP/SAVP\", \"a=crypto\"]"... |
# $Id: 001_torture_4475_3_1_1_1.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.1. A Short Tortuous INVITE
complete_msg = \
"""INVITE sip:vivekg@chair-dnrc.example.com;unknownparam SIP/2.0
TO :
sip:vivekg@chair-dnrc.e... | [
[
1,
0,
0.0385,
0.0192,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0577,
0.0192,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5192,
0.75,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"INVITE sip:vivekg@chair-dnrc.example.com;unknownparam SIP/2.0\nTO :\n sip:vivekg@chair-dnrc.example.com ; tag = 1918181833n\nfrom : \"J Rosenberg \\\\\\\\\\\\\"\" <sip:jdrosen@example.com>\n ;\n tag = 98asjd8\nMaX-fOrWaRd... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3889,
0.3704,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 UNKNOWN 0",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include SD... |
# $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... | [
[
1,
0,
0.0571,
0.0286,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0857,
0.0286,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5286,
0.6286,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"INVITE sip:sips%3Auser%40example.com@example.net SIP/2.0\nTo: sip:%75se%72@example.com\nFrom: <sip:I%20have%20spaces@example.net>;tag=$FROM_TAG\nMax-Forwards: 87\ni: esc01.239409asdfakjkn23onasd0-3234\nCSeq: 234234 INVITE\nVia: SIP/2.0/... |
# $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... | [
[
1,
0,
0.0571,
0.0286,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0857,
0.0286,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4429,
0.4571,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 3428650655 3428650655 IN IP4 192.168.1.9\ns=pjmedia\nc=IN IP4 192.168.1.9\nt=0 0\na=X-nat:0",
"pjsua_args = \"--null-audio --auto-answer 200 --add-codec G7221\"",
"extra_headers = \"\"",
"include = [\"a=rtpmap:[\\d]+ G7221/16000... |
# $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... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3929,
0.3929,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 100",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include ... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5185,
0.5556,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"INVITE sip:localhost SIP/2.0\nVia: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9\nMax-Forwards: 70\nFrom: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298\nTo: <sip:localhost>\nCall-ID: 3373d9eb32aa458db7e69c7ea51e0bd7... |
# $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... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.375,
0.4286,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200 --use-srtp 1 --srtp-secure 0\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\"... |
# $Id: 156_err_sdp_bad_net_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=AF 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 = "... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4074,
0.4815,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=AF IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [ \"Warning: \" ]\t# better have Warning header",
"... |
# $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... | [
[
1,
0,
0.0833,
0.0417,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.125,
0.0417,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5417,
0.5417,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"MESSAGE sip:localhost SIP/2.0\nVia: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9\nMax-Forwards: 70\nFrom: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298\nTo: <sip:localhost>\nCall-ID: 3373d9eb32aa458db7e69c7ea51e0bd... |
# $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... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4107,
0.3571,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include SD... |
# $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=... | [
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4516,
0.4839,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 3428650655 3428650655 IN IP4 192.168.1.9\ns=pjmedia\nc=IN IP4 192.168.1.9\nt=0 0\na=X-nat:0",
"pjsua_args = \"--null-audio --auto-answer 200 --add-codec AMR\"",
"extra_headers = \"\"",
"include = [\"\"]",
"exclude = [\"octet-a... |
# $Id: 300_srtp_receive_crypto_tag_zero.py 2765 2009-06-17 12:00:47Z 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 AE... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4423,
0.5385,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 1 --srtp-secure 0\"",
"include = []",
"exclude = []",
"sendto_cfg = sip.... |
# $Id: 300_srtp_receive_no_key_2.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... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4423,
0.5385,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 1 --srtp-secure 0\"",
"include = []",
"exclude = []",
"sendto_cfg = sip.... |
# $Id: 363_non_sip_uri_subscribe.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 = \
"""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=08... | [
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5161,
0.6129,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"SUBSCRIBE sip:localhost SIP/2.0\nVia: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9\nMax-Forwards: 70\nFrom: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298\nTo: <sip:localhost>\nCall-ID: 3373d9eb32aa458db7e69c7ea51e0... |
# $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.... | [
[
1,
0,
0.08,
0.04,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.12,
0.04,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.56,
0.52,
0,
0.66,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"RE%47IST%45R sip:registrar.example.com SIP/2.0\nTo: \"%Z%45\" <sip:resource@example.com>\nFrom: \"%Z%45\" <sip:resource@example.com>;tag=f232jadfj23\nCall-ID: esc02.asdfnqwo34rq23i34jrjasdcnl23nrlknsdf\nVia: SIP/2.0/TCP host.example.com... |
# $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... | [
[
1,
0,
0.08,
0.04,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.12,
0.04,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.54,
0.48,
0,
0.66,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"REGISTER sip:example.com SIP/2.0\nTo: sip:null-%00-null@example.com\nFrom: sip:null-%00-null@example.com;tag=839923423\nMax-Forwards: 70\nCall-ID: escnull.39203ndfvkjdasfkq3w4otrq0adsfdfnavd\nCSeq: 14398234 REGISTER\nVia: SIP/2.0/UDP ho... |
# $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... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4231,
0.5,
0,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"Supported: timer\\n\"",
"include = []",
"exclude = [\"Session-Expir... |
# $Id: 364_non_sip_uri_subscribe.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 = \
"""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=08... | [
[
1,
0,
0.0667,
0.0333,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1,
0.0333,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5167,
0.6,
0,
0.66,... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"SUBSCRIBE sip:localhost SIP/2.0\nVia: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9\nMax-Forwards: 70\nFrom: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298\nTo: <sip:localhost>\nCall-ID: 3373d9eb32aa458db7e69c7ea51e0... |
# $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-... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4074,
0.4815,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"pjsua_args = \"--null-audio --auto-answer 200 --use-timer 2 --timer-min-se 90 --timer-se 1800\"",
"extra_headers = \"Require: timer\\nSuppor... |
# $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... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4231,
0.5,
0,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"pjsua_args = \"--null-audio --auto-answer 200 --timer-min-se 90\"",
"extra_headers = \"Supported: timer\\nSession-Expires: 1800;refresher=ua... |
# $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... | [
[
1,
0,
0.0667,
0.0333,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1,
0.0333,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4167,
0.4,
0,
0.66,... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200 --use-srtp 1 --srtp-secure 0\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\"... |
# $Id: 360_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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5185,
0.5556,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"INVITE sip:localhost SIP/2.0\nVia: SIP/2.0/UDP 192.168.0.14:5060;rport;branch=z9hG4bKPj9db9\nMax-Forwards: 70\nFrom: <sip:192.168.0.14>;tag=08cd5bfc2d8a4fddb1f5e59c6961d298\nTo: <sip:localhost>\nCall-ID: 3373d9eb32aa458db7e69c7ea51e0bd7... |
# $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 ... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3929,
0.3929,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=video 4000 RTP/AVP 100",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include ... |
# $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... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4231,
0.5,
0,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --use-ice --auto-answer 200 --max-calls 1\"",
"include = []",
"exclude = [\"a=ice\", \"a=candidate\"]",
"sendto_cf... |
# $Id: 122_sdp_with_unknown_dynamic_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
m=xapplicationx 4000 RTP/AVP 100
a=rtpmap:100 myapp/80000
"""
pjsua_args = "--null-audio --auto-answer 2... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3704,
0.4074,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include SD... |
# $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... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4423,
0.5385,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 1 --srtp-secure 0\"",
"include = []",
"exclude = [\"a=crypto\"]",
"sendt... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3519,
0.3704,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include SD... |
# $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... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4423,
0.5385,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/SAVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 2 --srtp-secure 0\"",
"include = []",
"exclude = []",
"sendto_cfg = sip... |
# $Id: 171_timer_initiated_by_uas.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
"""
# RFC 4028 Se... | [
[
1,
0,
0.0556,
0.0278,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0833,
0.0278,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3056,
0.3611,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"pjsua_args = \"--null-audio --auto-answer 200 --use-timer 2 --timer-min-se 90 --timer-se 1800\"",
"extra_headers = \"Supported: timer\\n\"",... |
# $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_... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4286,
0.5357,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 2 --srtp-secure 0\"",
"include = []",
"exclude = []",
"sendto_cfg = sip.... |
# $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$... | [
[
1,
0,
0.08,
0.04,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.12,
0.04,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.54,
0.48,
0,
0.66,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"!interesting-Method0123456789_*+`.%indeed'~ sip:1_unusual.URI~(to-be!sure)&isn't+it$/crazy?,/;;*:&it+has=1,weird!*pas$wo~d_too.(doesn't-it)@example.com SIP/2.0\nVia: SIP/2.0/UDP host1.example.com;rport;branch=z9hG4bK-.!%66*_+`'~\nTo: \"... |
# $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... | [
[
1,
0,
0.1,
0.05,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.15,
0.05,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.55,
0.65,
0,
0.66,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"sendto_cfg = sip.SendtoCfg( \"simple call\", \"--null-audio --auto-answer 200\", sdp, 200)"
] |
# $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-... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4074,
0.4815,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"Require: xxx-my-extension\\n\"",
"include = [\"Unsupported: xxx-my-ex... |
# $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_... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3889,
0.3704,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 80",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include S... |
# $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.... | [
[
1,
0,
0.069,
0.0345,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1034,
0.0345,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4138,
0.3793,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include SD... |
# $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 = "--... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3929,
0.3929,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include SD... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3704,
0.4074,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200 --use-srtp 1 --srtp-secure 0\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\"... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4074,
0.4815,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/XAVP 0 101",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = []",
"exclude = []",
"sendto_cfg = sip.SendtoCfg... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3889,
0.3704,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include SD... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4444,
0.5556,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 1 --srtp-secure 0\"",
"include = []",
"exclude = []",
"sendto_cfg = sip.... |
# $Id: 400_fmtp_g7221_with_bitrate.py 3664 2011-07-19 03:42:28Z nanang $
import inc_sip as sip
import inc_sdp as sdp
# Answer for codec G722.1 should contain fmtp bitrate
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 100 101
a=rtcp:... | [
[
1,
0,
0.0588,
0.0294,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0882,
0.0294,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4559,
0.5294,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 3428650655 3428650655 IN IP4 192.168.1.9\ns=pjmedia\nc=IN IP4 192.168.1.9\nt=0 0\na=X-nat:0",
"pjsua_args = \"--null-audio --auto-answer 200 --add-codec G7221\"",
"extra_headers = \"\"",
"include = [\"fmtp:[\\d]+ bitrate=\"]\t# ... |
# $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... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5536,
0.5,
0,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"SUBSCRIBE sip:localhost;transport=UDP SIP/2.0\nCall-ID: f20e8783e764cae325dba17be4b8fe19@10.0.2.15\nCSeq: 1 SUBSCRIBE\nFrom: <sip:localhost>;tag=1710895\nTo: <sip:localhost>\nVia: SIP/2.0/UDP localhost;rport;branch=z9hG4bKd88a.18c427d2.... |
# $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... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.375,
0.4286,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=xapplicationx 4000 RTP/AVP 100",
"pjsua_args = \"--null-audio --auto-answer 200 --use-srtp 1 --srtp-secure 0\"",
"extra_headers = \"\"",
"include = [\"Content-Type: applica... |
# $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... | [
[
1,
0,
0.08,
0.04,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.12,
0.04,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.42,
0.4,
0,
0.66,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/SAVP 0",
"pjsua_args = \"--null-audio --auto-answer 200 --use-srtp 2 --srtp-secure 0\"",
"extra_headers = \"\"",
"include = []",
"exclude = []",
"sendto_... |
# $Id: 252_multipart_ok_clutter.py 3243 2010-08-01 09:48:51Z bennylp $
import inc_sip as sip
import inc_sdp as sdp
body = \
"""
This is the preamble. It is to be ignored, though it
is a handy place for composition agents to include an
explanatory note to non-MIME conformant readers.
--123:45
Content-Type: text/plain... | [
[
1,
0,
0.0426,
0.0213,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0638,
0.0213,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4362,
0.6809,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"body = \\\n\"\"\"\nThis is the preamble. It is to be ignored, though it\nis a handy place for composition agents to include an\nexplanatory note to non-MIME conformant readers.\n\n--123:45\nContent-Type: text/plain",
"args = \"--null-audio --auto-answer 200 ... |
# $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... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4286,
0.5357,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/SAVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 0 --srtp-secure 0\"",
"include = []",
"exclude = []",
"sendto_cfg = sip... |
# $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... | [
[
1,
0,
0.0526,
0.0263,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0789,
0.0263,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4211,
0.6053,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"body = \\\n\"\"\"\n--12345\nContent-Type: application/notsdp\n\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia",
"args = \"--null-audio --auto-answer 200 --max-calls 1\"",
"extra_headers = \"Content-Type: multipart/mixed; boundary=12345\"",
"include = []",
"e... |
# $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... | [
[
1,
0,
0.0667,
0.0333,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1,
0.0333,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4333,
0.5667,
0,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --use-ice --auto-answer 200 --max-calls 1\"",
"include = [\"a=ice-mismatch\"]",
"exclude = []",
"sendto_cfg = sip.... |
# $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... | [
[
1,
0,
0.0645,
0.0323,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0968,
0.0323,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4032,
0.5161,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --use-ice --auto-answer 200 --max-calls 1\"",
"include = [\"a=ice-ufrag\"]\t\t \t# must have ICE",
"exclude = [\"a... |
# $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... | [
[
1,
0,
0.0714,
0.0357,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4286,
0.5357,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/SAVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 2 --srtp-secure 0\"",
"include = [\"m=audio \\d+ RTP/SAVP\", \"a=crypto\"]"... |
# $Id: 152_err_sdp_no_media.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
"""
pjsua_args = "--null-audio --auto-answer 200"
extra_headers = ""
include = []
exclude = []
sendto_cfg = sip.SendtoCfg("No medi... | [
[
1,
0,
0.0909,
0.0455,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1364,
0.0455,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3864,
0.3636,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\n\"\"\"",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = []",
"exclude = []",
"sendto_cfg = sip.SendtoCfg(\"No media in SDP\",... |
# $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 ... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4231,
0.5,
0,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/AVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 1 --srtp-secure 0\"",
"include = [\"m=audio \\d+ RTP/AVP\"]",
"exclude = [... |
# $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... | [
[
1,
0,
0.087,
0.0435,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1304,
0.0435,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3913,
0.3913,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=pjmedia\nc=IN IP4 127.0.0.1\nt=0 0\nm=video 4000 RTP/AVP 0",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = []",
"exclude = []",
"sendto_cfg = sip.SendtoCfg(\"Vi... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3704,
0.4074,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=xapplicationx 4000 RTP/AVP 100",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must ... |
# $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... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4231,
0.5,
0,
0.... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=tester\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 4000 RTP/SAVP 0 101",
"args = \"--null-audio --auto-answer 200 --max-calls 1 --use-srtp 2 --srtp-secure 0\"",
"include = []",
"exclude = []",
"sendto_cfg = sip... |
# $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/... | [
[
1,
0,
0.069,
0.0345,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1034,
0.0345,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.4138,
0.3793,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=audio 5000 RTP/SAVP 0",
"pjsua_args = \"--null-audio --auto-answer 200 --use-srtp 0\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response m... |
# $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... | [
[
1,
0,
0.0435,
0.0217,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.0652,
0.0217,
0,
0.66,
0.3333,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.5217,
0.8043,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"complete_msg = \\\n\"\"\"INVITE tel:+2065551212 SIP/2.0\nVia: SIP/2.0/UDP $LOCAL_IP:$LOCAL_PORT;rport;x-route-tag=\"tgrp:cococisco1\";branch=z9hG4bK61E05\nFrom: <tel:12345>$FROM_TAG\nTo: <tel:+2065551212>\nDate: Thu, 12 Feb 2009 18:32:33 GMT\nCall-ID: 58F8F7D6-... |
# $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 =... | [
[
1,
0,
0.0769,
0.0385,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3654,
0.3846,
0,
... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=video 0 RTP/AVP 100",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must include SDP... |
# $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... | [
[
1,
0,
0.0741,
0.037,
0,
0.66,
0,
992,
0,
1,
0,
0,
992,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.3889,
0.3704,
0,
0... | [
"import inc_sip as sip",
"import inc_sdp as sdp",
"sdp = \\\n\"\"\"\nv=0\no=- 0 0 IN IP4 127.0.0.1\ns=-\nc=IN IP4 127.0.0.1\nt=0 0\nm=xapplicationx 4000 RTP/AVP 54",
"pjsua_args = \"--null-audio --auto-answer 200\"",
"extra_headers = \"\"",
"include = [\"Content-Type: application/sdp\",\t# response must i... |
# $Id: 201_codec_l16_16000.py 2075 2008-06-27 16:18:13Z nanang $
#
from inc_cfg import *
# Call with L16/16000/1 codec
test_param = TestParam(
"PESQ codec L16/16000/1 (RX side uses snd dev)",
[
InstanceParam("UA1", "--max-calls=1 --add-codec L16/16000/1 --clock-rate 16000 --play-file wavs/input.16.wav --null-au... | [
[
1,
0,
0.1765,
0.0588,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5294,
0.4118,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8529,
0.1176,
0,
... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ codec L16/16000/1 (RX side uses snd dev)\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--max-calls=1 --add-codec L16/16000/1 --clock-rate 16000 --play-file wavs/input.16.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--max-calls=1 --add-codec L16/160... |
# $Id: 201_codec_ilbc.py 2063 2008-06-26 18:52:16Z nanang $
#
from inc_cfg import *
# Call with iLBC codec
test_param = TestParam(
"PESQ codec iLBC (RX side uses snd dev)",
[
InstanceParam("UA1", "--max-calls=1 --add-codec ilbc --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"),
InstanceParam("UA2... | [
[
1,
0,
0.1765,
0.0588,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5294,
0.4118,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8529,
0.1176,
0,
... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ codec iLBC (RX side uses snd dev)\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--max-calls=1 --add-codec ilbc --clock-rate 8000 --play-file wavs/input.8.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--max-calls=1 --add-codec ilbc --clock-rate 8000 ... |
# $Id: 100_defaults.py 3286 2010-08-18 14:30:15Z bennylp $
#
from inc_cfg import *
ADD_PARAM = ""
if (HAS_SND_DEV == 0):
ADD_PARAM += "--null-audio"
# Call with default pjsua settings
test_param = TestParam(
"PESQ defaults pjsua settings",
[
InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --play-file wavs/i... | [
[
1,
0,
0.1579,
0.0526,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.2632,
0.0526,
0,
0.66,
0.25,
125,
1,
0,
0,
0,
0,
3,
0
],
[
4,
0,
0.3947,
0.1053,
0,
0.6... | [
"from inc_cfg import *",
"ADD_PARAM = \"\"",
"if (HAS_SND_DEV == 0):\n\tADD_PARAM += \"--null-audio\"",
"test_param = TestParam(\n\t\t\"PESQ defaults pjsua settings\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", ADD_PARAM + \" --max-calls=1 --play-file wavs/input.16.wav --no-vad\"),\n\t\t\tInstanceParam(\"UA2\", \"-... |
# $Id: 200_codec_l16_8000_stereo.py 2075 2008-06-27 16:18:13Z nanang $
#
from inc_cfg import *
ADD_PARAM = ""
if (HAS_SND_DEV == 0):
ADD_PARAM += "--null-audio"
# Call with L16/8000/2 codec
test_param = TestParam(
"PESQ defaults pjsua settings",
[
InstanceParam("UA1", ADD_PARAM + " --stereo --max-calls=1 --c... | [
[
1,
0,
0.1579,
0.0526,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.2632,
0.0526,
0,
0.66,
0.25,
125,
1,
0,
0,
0,
0,
3,
0
],
[
4,
0,
0.3947,
0.1053,
0,
0.6... | [
"from inc_cfg import *",
"ADD_PARAM = \"\"",
"if (HAS_SND_DEV == 0):\n\tADD_PARAM += \"--null-audio\"",
"test_param = TestParam(\n\t\t\"PESQ defaults pjsua settings\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", ADD_PARAM + \" --stereo --max-calls=1 --clock-rate 8000 --add-codec L16/8000/2 --play-file wavs/input.2.8... |
# $Id: 201_codec_g711u.py 2063 2008-06-26 18:52:16Z nanang $
#
from inc_cfg import *
# Call with PCMU codec
test_param = TestParam(
"PESQ codec PCMU (RX side uses snd dev)",
[
InstanceParam("UA1", "--max-calls=1 --add-codec pcmu --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"),
InstanceParam("UA... | [
[
1,
0,
0.1765,
0.0588,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5294,
0.4118,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8529,
0.1176,
0,
... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ codec PCMU (RX side uses snd dev)\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--max-calls=1 --add-codec pcmu --clock-rate 8000 --play-file wavs/input.8.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--max-calls=1 --add-codec pcmu --clock-rate 8000 ... |
# $Id: 201_codec_l16_8000_stereo.py 2075 2008-06-27 16:18:13Z nanang $
#
from inc_cfg import *
# Call with L16/8000/2 codec
test_param = TestParam(
"PESQ defaults pjsua settings",
[
InstanceParam("UA1", "--stereo --max-calls=1 --clock-rate 8000 --add-codec L16/8000/2 --play-file wavs/input.2.8.wav --null-audio"... | [
[
1,
0,
0.1765,
0.0588,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5294,
0.4118,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8529,
0.1176,
0,
... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ defaults pjsua settings\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--stereo --max-calls=1 --clock-rate 8000 --add-codec L16/8000/2 --play-file wavs/input.2.8.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--stereo --max-calls=1 --clock-rate 8000 -... |
# $Id: 200_codec_l16_16000.py 2075 2008-06-27 16:18:13Z nanang $
#
from inc_cfg import *
ADD_PARAM = ""
if (HAS_SND_DEV == 0):
ADD_PARAM += "--null-audio"
# Call with L16/16000/1 codec
test_param = TestParam(
"PESQ codec L16/16000/1",
[
InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec L16/16000/1... | [
[
1,
0,
0.1579,
0.0526,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.2632,
0.0526,
0,
0.66,
0.25,
125,
1,
0,
0,
0,
0,
3,
0
],
[
4,
0,
0.3947,
0.1053,
0,
0.6... | [
"from inc_cfg import *",
"ADD_PARAM = \"\"",
"if (HAS_SND_DEV == 0):\n\tADD_PARAM += \"--null-audio\"",
"test_param = TestParam(\n\t\t\"PESQ codec L16/16000/1\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", ADD_PARAM + \" --max-calls=1 --add-codec L16/16000/1 --clock-rate 16000 --play-file wavs/input.16.wav\"),\n\t\t... |
# $Id: 200_codec_g711a.py 2063 2008-06-26 18:52:16Z nanang $
#
from inc_cfg import *
ADD_PARAM = ""
if (HAS_SND_DEV == 0):
ADD_PARAM += "--null-audio"
# Call with PCMA codec
test_param = TestParam(
"PESQ codec PCMA",
[
InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec pcma --clock-rate 8000 --play... | [
[
1,
0,
0.1579,
0.0526,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.2632,
0.0526,
0,
0.66,
0.25,
125,
1,
0,
0,
0,
0,
3,
0
],
[
4,
0,
0.3947,
0.1053,
0,
0.6... | [
"from inc_cfg import *",
"ADD_PARAM = \"\"",
"if (HAS_SND_DEV == 0):\n\tADD_PARAM += \"--null-audio\"",
"test_param = TestParam(\n\t\t\"PESQ codec PCMA\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", ADD_PARAM + \" --max-calls=1 --add-codec pcma --clock-rate 8000 --play-file wavs/input.8.wav\"),\n\t\t\tInstanceParam(... |
# $Id: 200_codec_l16_16000_stereo.py 2075 2008-06-27 16:18:13Z nanang $
#
from inc_cfg import *
ADD_PARAM = ""
if (HAS_SND_DEV == 0):
ADD_PARAM += "--null-audio"
# Call with L16/16000/2 codec
test_param = TestParam(
"PESQ defaults pjsua settings",
[
InstanceParam("UA1", ADD_PARAM + " --stereo --max-calls=1 -... | [
[
1,
0,
0.1579,
0.0526,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.2632,
0.0526,
0,
0.66,
0.25,
125,
1,
0,
0,
0,
0,
3,
0
],
[
4,
0,
0.3947,
0.1053,
0,
0.6... | [
"from inc_cfg import *",
"ADD_PARAM = \"\"",
"if (HAS_SND_DEV == 0):\n\tADD_PARAM += \"--null-audio\"",
"test_param = TestParam(\n\t\t\"PESQ defaults pjsua settings\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", ADD_PARAM + \" --stereo --max-calls=1 --clock-rate 16000 --add-codec L16/16000/2 --play-file wavs/input.2... |
# $Id: 201_codec_l16_16000_stereo.py 2075 2008-06-27 16:18:13Z nanang $
#
from inc_cfg import *
# Call with L16/16000/2 codec
test_param = TestParam(
"PESQ defaults pjsua settings",
[
InstanceParam("UA1", "--stereo --max-calls=1 --clock-rate 16000 --add-codec L16/16000/2 --play-file wavs/input.2.16.wav --null-a... | [
[
1,
0,
0.1765,
0.0588,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5294,
0.4118,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8529,
0.1176,
0,
... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ defaults pjsua settings\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--stereo --max-calls=1 --clock-rate 16000 --add-codec L16/16000/2 --play-file wavs/input.2.16.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--stereo --max-calls=1 --clock-rate 160... |
# $Id: 201_codec_g722.py 2063 2008-06-26 18:52:16Z nanang $
#
from inc_cfg import *
# Call with G722 codec
test_param = TestParam(
"PESQ codec G722 (RX side uses snd dev)",
[
InstanceParam("UA1", "--max-calls=1 --add-codec g722 --clock-rate 16000 --play-file wavs/input.16.wav --null-audio"),
InstanceParam("U... | [
[
1,
0,
0.1765,
0.0588,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5294,
0.4118,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8529,
0.1176,
0,
... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ codec G722 (RX side uses snd dev)\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--max-calls=1 --add-codec g722 --clock-rate 16000 --play-file wavs/input.16.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--max-calls=1 --add-codec g722 --clock-rate 160... |
# $Id: 201_codec_g711a.py 2063 2008-06-26 18:52:16Z nanang $
#
from inc_cfg import *
# Call with PCMA codec
test_param = TestParam(
"PESQ codec PCMA (RX side uses snd dev)",
[
InstanceParam("UA1", "--max-calls=1 --add-codec pcma --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"),
InstanceParam("UA... | [
[
1,
0,
0.1765,
0.0588,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5294,
0.4118,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8529,
0.1176,
0,
... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ codec PCMA (RX side uses snd dev)\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--max-calls=1 --add-codec pcma --clock-rate 8000 --play-file wavs/input.8.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--max-calls=1 --add-codec pcma --clock-rate 8000 ... |
# $Id: 200_codec_speex_8000.py 3286 2010-08-18 14:30:15Z bennylp $
#
from inc_cfg import *
ADD_PARAM = ""
if (HAS_SND_DEV == 0):
ADD_PARAM += "--null-audio"
# Call with Speex/8000 codec
test_param = TestParam(
"PESQ codec Speex NB",
[
InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec speex/8000 --... | [
[
1,
0,
0.1579,
0.0526,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.2632,
0.0526,
0,
0.66,
0.25,
125,
1,
0,
0,
0,
0,
3,
0
],
[
4,
0,
0.3947,
0.1053,
0,
0.6... | [
"from inc_cfg import *",
"ADD_PARAM = \"\"",
"if (HAS_SND_DEV == 0):\n\tADD_PARAM += \"--null-audio\"",
"test_param = TestParam(\n\t\t\"PESQ codec Speex NB\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", ADD_PARAM + \" --max-calls=1 --add-codec speex/8000 --clock-rate 8000 --play-file wavs/input.8.wav --no-vad\"),\n\... |
# $Id: 101_defaults.py 2063 2008-06-26 18:52:16Z nanang $
#
from inc_cfg import *
# Call with default pjsua settings
test_param = TestParam(
"PESQ defaults pjsua settings (RX side uses snd dev)",
[
InstanceParam("UA1", "--max-calls=1 --play-file wavs/input.16.wav --null-audio"),
InstanceParam("UA2", "--max-c... | [
[
1,
0,
0.1667,
0.0556,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5,
0.3889,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8611,
0.1111,
0,
0.... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ defaults pjsua settings (RX side uses snd dev)\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--max-calls=1 --play-file wavs/input.16.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--max-calls=1 --rec-file wavs/tmp.16.wav --clock-rate 16000 --auto-an... |
# $Id: 201_codec_gsm.py 2063 2008-06-26 18:52:16Z nanang $
#
from inc_cfg import *
# Call with GSM codec
test_param = TestParam(
"PESQ codec GSM (RX side uses snd dev)",
[
InstanceParam("UA1", "--max-calls=1 --add-codec gsm --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"),
InstanceParam("UA2", "... | [
[
1,
0,
0.1765,
0.0588,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5294,
0.4118,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8529,
0.1176,
0,
... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ codec GSM (RX side uses snd dev)\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--max-calls=1 --add-codec gsm --clock-rate 8000 --play-file wavs/input.8.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--max-calls=1 --add-codec gsm --clock-rate 8000 --r... |
# $Id: 201_codec_speex_8000.py 2063 2008-06-26 18:52:16Z nanang $
#
from inc_cfg import *
# Call with Speex/8000 codec
test_param = TestParam(
"PESQ codec Speex NB (RX side uses snd dev)",
[
InstanceParam("UA1", "--max-calls=1 --add-codec speex/8000 --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"),... | [
[
1,
0,
0.1765,
0.0588,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5294,
0.4118,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8529,
0.1176,
0,
... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ codec Speex NB (RX side uses snd dev)\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--max-calls=1 --add-codec speex/8000 --clock-rate 8000 --play-file wavs/input.8.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--max-calls=1 --add-codec speex/8000 --... |
# $Id: 200_codec_l16_8000.py 2075 2008-06-27 16:18:13Z nanang $
#
from inc_cfg import *
ADD_PARAM = ""
if (HAS_SND_DEV == 0):
ADD_PARAM += "--null-audio"
# Call with L16/8000/1 codec
test_param = TestParam(
"PESQ codec L16/8000/1",
[
InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec L16/8000/1 --c... | [
[
1,
0,
0.1579,
0.0526,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.2632,
0.0526,
0,
0.66,
0.25,
125,
1,
0,
0,
0,
0,
3,
0
],
[
4,
0,
0.3947,
0.1053,
0,
0.6... | [
"from inc_cfg import *",
"ADD_PARAM = \"\"",
"if (HAS_SND_DEV == 0):\n\tADD_PARAM += \"--null-audio\"",
"test_param = TestParam(\n\t\t\"PESQ codec L16/8000/1\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", ADD_PARAM + \" --max-calls=1 --add-codec L16/8000/1 --clock-rate 8000 --play-file wavs/input.8.wav\"),\n\t\t\tIn... |
# $Id: 200_codec_gsm.py 2063 2008-06-26 18:52:16Z nanang $
#
from inc_cfg import *
ADD_PARAM = ""
if (HAS_SND_DEV == 0):
ADD_PARAM += "--null-audio"
# Call with GSM codec
test_param = TestParam(
"PESQ codec GSM",
[
InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec gsm --clock-rate 8000 --play-file... | [
[
1,
0,
0.1579,
0.0526,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.2632,
0.0526,
0,
0.66,
0.25,
125,
1,
0,
0,
0,
0,
3,
0
],
[
4,
0,
0.3947,
0.1053,
0,
0.6... | [
"from inc_cfg import *",
"ADD_PARAM = \"\"",
"if (HAS_SND_DEV == 0):\n\tADD_PARAM += \"--null-audio\"",
"test_param = TestParam(\n\t\t\"PESQ codec GSM\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", ADD_PARAM + \" --max-calls=1 --add-codec gsm --clock-rate 8000 --play-file wavs/input.8.wav\"),\n\t\t\tInstanceParam(\"... |
# $Id: 201_codec_l16_8000.py 2075 2008-06-27 16:18:13Z nanang $
#
from inc_cfg import *
# Call with L16/8000/1 codec
test_param = TestParam(
"PESQ codec L16/8000/1 (RX side uses snd dev)",
[
InstanceParam("UA1", "--max-calls=1 --add-codec L16/8000/1 --clock-rate 8000 --play-file wavs/input.8.wav --null-audio"),... | [
[
1,
0,
0.1765,
0.0588,
0,
0.66,
0,
160,
0,
1,
0,
0,
160,
0,
0
],
[
14,
0,
0.5294,
0.4118,
0,
0.66,
0.3333,
109,
3,
2,
0,
0,
27,
10,
3
],
[
4,
0,
0.8529,
0.1176,
0,
... | [
"from inc_cfg import *",
"test_param = TestParam(\n\t\t\"PESQ codec L16/8000/1 (RX side uses snd dev)\",\n\t\t[\n\t\t\tInstanceParam(\"UA1\", \"--max-calls=1 --add-codec L16/8000/1 --clock-rate 8000 --play-file wavs/input.8.wav --null-audio\"),\n\t\t\tInstanceParam(\"UA2\", \"--max-calls=1 --add-codec L16/8000/1 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.