From 959ba9df8ca588924ad8c6485607e3c6614e77c3 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Tue, 26 Jun 2012 06:29:53 +0000 Subject: Re #1523: added sipp scenario for call transfer (attended & unattended). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4178 74dad513-b988-da41-8d7b-12977e46ad98 --- tests/pjsua/scripts-sipp/transfer-unattended.py | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/pjsua/scripts-sipp/transfer-unattended.py (limited to 'tests/pjsua/scripts-sipp/transfer-unattended.py') diff --git a/tests/pjsua/scripts-sipp/transfer-unattended.py b/tests/pjsua/scripts-sipp/transfer-unattended.py new file mode 100644 index 00000000..da404426 --- /dev/null +++ b/tests/pjsua/scripts-sipp/transfer-unattended.py @@ -0,0 +1,30 @@ +# $Id$ +# +import inc_const as const + +PJSUA = ["--null-audio", # UA0 @ port 5060 + "--null-audio", # UA1 @ port 5062 + "--null-audio" # UA2 @ port 5064 + ] + +PJSUA_EXPECTS = [ + # A calls B + [0, "", "m"], + [0, "", "sip:localhost:5062"], + [1, const.EVENT_INCOMING_CALL, "a"], + [1, "", "200"], + [0, const.STATE_CONFIRMED, ""], + [1, const.STATE_CONFIRMED, ""], + + # B transfer A to C + [1, "", "x"], + [1, "", "sip:localhost:5064"], + [0, const.STATE_CALLING, ""], + [2, const.EVENT_INCOMING_CALL, "a"], + [2, "", "200"], + [0, const.MEDIA_ACTIVE, ""], + [2, const.MEDIA_ACTIVE, ""], + [1, "call transfered successfully", ""], + [1, "", " "], + [1, "have 0 active call", ""], + ] -- cgit v1.2.3