~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-recvfrom/209b_reg_handle_423_bad_min_expires1.py

  • Committer: Package Import Robot
  • Author(s): Francois Marier, Francois Marier, Mark Purcell
  • Date: 2014-10-18 15:08:50 UTC
  • mfrom: (1.1.12)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20141018150850-2exfk34ckb15pcwi
Tags: 1.4.1-0.1
[ Francois Marier ]
* Non-maintainer upload
* New upstream release (closes: #759576, #741130)
  - debian/rules +PJPROJECT_VERSION := 2.2.1
  - add upstream patch to fix broken TLS support
  - add patch to fix pjproject regression

[ Mark Purcell ]
* Build-Depends:
  - sflphone-daemon + libavformat-dev, libavcodec-dev, libswscale-dev,
  libavdevice-dev, libavutil-dev
  - sflphone-gnome + libclutter-gtk-1.0-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: 209b_reg_handle_423_bad_min_expires1.py 3105 2010-02-23 11:03:07Z bennylp $
 
2
import inc_sip as sip
 
3
import inc_sdp as sdp
 
4
 
 
5
pjsua = "--null-audio --id=sip:CLIENT --registrar sip:127.0.0.1:$PORT " + \
 
6
        "--realm=python --user=username --password=password " + \
 
7
        "--auto-update-nat=0 --reg-timeout 300"
 
8
 
 
9
# 423 Response with Min-Expires header that is lower than what the client
 
10
# had requested
 
11
req1 = sip.RecvfromTransaction("Initial request", 423,
 
12
                                include=["REGISTER sip"], 
 
13
                                exclude=[],
 
14
                                resp_hdr=["Min-Expires: 250"],
 
15
                                expect="invalid Min-Expires"
 
16
 
 
17
                                )
 
18
 
 
19
recvfrom_cfg = sip.RecvfromCfg("Invalid 423 response to REGISTER",
 
20
                               pjsua, [req1])