summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2011-08-18 17:31:46 +0000
committerNanang Izzuddin <nanang@teluu.com>2011-08-18 17:31:46 +0000
commitb7af7176b16e449413e930e58432d8aaeb6a2af5 (patch)
tree4287c5cb5ae677510c00498c08f02e9f88a71729 /tests
parent1e681d097f360b84b1f6795b9a2cead89540851e (diff)
Re #1346 (python test fixes): adjust test scenario to follow the new behavior of pjsua in selecting active media from multiple media with same types, i.e: it will select the first media (previously/1.x it will will select the last).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3711 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests')
-rw-r--r--tests/pjsua/scripts-sendto/125_sdp_with_multi_audio_0.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/pjsua/scripts-sendto/125_sdp_with_multi_audio_0.py b/tests/pjsua/scripts-sendto/125_sdp_with_multi_audio_0.py
index dbbedfff..c194ba94 100644
--- a/tests/pjsua/scripts-sendto/125_sdp_with_multi_audio_0.py
+++ b/tests/pjsua/scripts-sendto/125_sdp_with_multi_audio_0.py
@@ -3,8 +3,7 @@ import inc_sip as sip
import inc_sdp as sdp
# Multiple good m=audio lines! The current algorithm in pjsua-lib will
-# select the last audio (which should be okay, as we're entitled to
-# select any of them)
+# select the first audio (note that in 1.x it will select the last audio)
sdp = \
"""
v=0
@@ -20,7 +19,7 @@ m=audio 3000 RTP/AVP 0
pjsua_args = "--null-audio --auto-answer 200"
extra_headers = ""
include = ["Content-Type: application/sdp", # response must include SDP
- "m=audio 0 RTP/AVP[\\s\\S]+m=audio 0 RTP/AVP[\\s\\S]+m=audio [1-9]+[0-9]* RTP/AVP"
+ "m=audio [1-9]+[0-9]* RTP/AVP[\\s\\S]+m=audio 0 RTP/AVP[\\s\\S]+m=audio 0 RTP/AVP"
]
exclude = []