~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-recvfrom/301_timer_good_retry_after_422.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: 301_timer_good_retry_after_422.py 3287 2010-08-18 14:30:17Z nanang $
2
 
import inc_sip as sip
3
 
import inc_sdp as sdp
4
 
 
5
 
# Session timers retry after 422
6
 
 
7
 
 
8
 
pjsua = "--null-audio sip:127.0.0.1:$PORT --timer-min-se 100 --timer-se 1000"
9
 
 
10
 
# First INVITE with timer rejected with 422
11
 
req1 = sip.RecvfromTransaction("INVITE with SE too small", 422,
12
 
                                include=["Session-Expires:\s*1000"],
13
 
                                exclude=[],
14
 
                                resp_hdr=["Min-SE: 2000"]
15
 
                                )
16
 
 
17
 
# Wait for ACK
18
 
req2 = sip.RecvfromTransaction("Wait ACK", 0, include=["ACK sip"])
19
 
 
20
 
# New INVITE with SE >= Min-SE
21
 
req3 = sip.RecvfromTransaction("Retrying with acceptable SE", 200,
22
 
                                include=["Session-Expires:\s*2000", "Min-SE:\s*2000"],
23
 
                                exclude=[],
24
 
                                resp_hdr=["Session-Expires: 2000;refresher=uac"]
25
 
                                )
26
 
 
27
 
 
28
 
recvfrom_cfg = sip.RecvfromCfg("Session timers retry after 422",
29
 
                               pjsua, [req1, req2, req3])