summaryrefslogtreecommitdiff
path: root/tests/pjsua
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2010-08-06 01:03:33 +0000
committerNanang Izzuddin <nanang@teluu.com>2010-08-06 01:03:33 +0000
commitd904e30b3c100fbac6742b6528467a11ce90e289 (patch)
treeee4b05c83de45ed42f6604d8f8393cd58de72962 /tests/pjsua
parent820921e537d99763c1a9d6a9b5eb7809d1a61108 (diff)
Misc (re #1068), updates in python test:
- increased receive buffer size in python test driver function inc_sip.Dialog.wait_msg_from(), the previous buffer size (2048) caused socket exception in receiving large SIP packet. - updated verification regex in scripts-sendto/330_srtp_prefer_rtp_savp.py (related to changes in #668: omitting media attribute in disabled/rejected media). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3251 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/pjsua')
-rw-r--r--tests/pjsua/inc_sip.py2
-rw-r--r--tests/pjsua/scripts-sendto/330_srtp_prefer_rtp_savp.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/pjsua/inc_sip.py b/tests/pjsua/inc_sip.py
index c27c72f3..ee4e0173 100644
--- a/tests/pjsua/inc_sip.py
+++ b/tests/pjsua/inc_sip.py
@@ -175,7 +175,7 @@ class Dialog:
print "select other error"
continue
try:
- msg, src_addr = self.sock.recvfrom(2048)
+ msg, src_addr = self.sock.recvfrom(4096)
except:
print "recv() exception: ", sys.exc_info()[0]
continue
diff --git a/tests/pjsua/scripts-sendto/330_srtp_prefer_rtp_savp.py b/tests/pjsua/scripts-sendto/330_srtp_prefer_rtp_savp.py
index e8097367..168b36ce 100644
--- a/tests/pjsua/scripts-sendto/330_srtp_prefer_rtp_savp.py
+++ b/tests/pjsua/scripts-sendto/330_srtp_prefer_rtp_savp.py
@@ -13,14 +13,14 @@ c=IN IP4 127.0.0.1
t=0 0
m=audio 4000 RTP/AVP 0
a=rtpmap:0 pcmu/8000
-m=audio 5000 RTP/SAVP 0
+m=audio 4000 RTP/SAVP 0
a=crypto:1 aes_cm_128_hmac_sha1_80 inline:WnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5yxQ
"""
pjsua_args = "--null-audio --auto-answer 200 --use-srtp 1 --srtp-secure 0"
extra_headers = ""
include = ["Content-Type: application/sdp", # response must include SDP
- "m=audio 0 RTP/AVP[\\s\\S]+a=rtpmap:0[\\s\\S]+m=audio [1-9]+[0-9]* RTP/SAVP[\\s\\S]+a=crypto"
+ "m=audio 0 RTP/AVP[\\s\\S]+m=audio [1-9]+[0-9]* RTP/SAVP[\\s\\S]+a=crypto"
]
exclude = []