~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.2.1/tests/pjsua/scripts-sipp/transfer-attended.py

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: transfer-attended.py 4724 2014-01-31 08:52:09Z nanang $
 
2
#
 
3
import inc_const as const
 
4
 
 
5
PJSUA = ["--null-audio",    # UA0
 
6
         "--null-audio",    # UA1
 
7
         "--null-audio"     # UA2
 
8
        ]
 
9
 
 
10
PJSUA_EXPECTS = [
 
11
                 # A calls B
 
12
                 [0, "", "m"],
 
13
                 [0, "", "$PJSUA_URI[1]"],
 
14
                 [0, const.STATE_CALLING, ""],
 
15
                 [1, const.EVENT_INCOMING_CALL, "a"],
 
16
                 [1, "", "200"],
 
17
                 [0, const.STATE_CONFIRMED, ""],
 
18
                 [1, const.STATE_CONFIRMED, ""],
 
19
 
 
20
                 # B holds A
 
21
                 [1, "", "H"],
 
22
                 [0, const.MEDIA_HOLD, ""],
 
23
                 [1, const.MEDIA_HOLD, ""],
 
24
 
 
25
                 # B calls C
 
26
                 [1, "", "m"],
 
27
                 [1, "", "$PJSUA_URI[2]"],
 
28
                 [1, const.STATE_CALLING, ""],
 
29
                 [2, const.EVENT_INCOMING_CALL, "a"],
 
30
                 [2, "", "200"],
 
31
                 [1, const.STATE_CONFIRMED, ""],
 
32
                 [2, const.STATE_CONFIRMED, ""],
 
33
 
 
34
                 # B holds C
 
35
                 [1, "", "]"],
 
36
                 [1, "", "H"],
 
37
                 [2, const.MEDIA_HOLD, ""],
 
38
                 [1, const.MEDIA_HOLD, ""],
 
39
                 [1, "", "]"],
 
40
 
 
41
                 # B transfer A to C
 
42
                 [1, "", "X"],
 
43
                 [1, "", "1"],
 
44
                 [0, "Call .* is being transferred", ""],
 
45
                 [1, "Subscription state .* ACCEPTED", ""],
 
46
                 [0, const.STATE_CALLING, ""],
 
47
                 [2, "Call .* is being replaced", ""],
 
48
                 [1, "call transferred successfully", ""],
 
49
                 [0, const.MEDIA_ACTIVE, ""],
 
50
                 [2, const.MEDIA_ACTIVE, ""],
 
51
                 [1, const.STATE_DISCONNECTED, ""]
 
52
                ]