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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140128182336-3xenud1kbnwmf3mz
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: transfer-attended.py 4188 2012-06-29 09:01:17Z 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 transfered", ""],
45
 
                 [1, "Subscription state .* ACCEPTED", ""],
46
 
                 [0, const.STATE_CALLING, ""],
47
 
                 [2, "Call .* is being replaced", ""],
48
 
                 [1, "call transfered successfully", ""],
49
 
                 [0, const.MEDIA_ACTIVE, ""],
50
 
                 [2, const.MEDIA_ACTIVE, ""],
51
 
                 [1, const.STATE_DISCONNECTED, ""]
52
 
                ]