summaryrefslogtreecommitdiff
path: root/tests/pjsua/scripts-sipp/transfer-unattended.py
blob: da404426ad7cb6a9ab2f6b5f4b06c37658f8f3c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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", ""],
		]