~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/215_reg_good_multi_ok.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: 215_reg_good_multi_ok.py 2392 2008-12-22 18:54:58Z 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
 
        "--username theuser1 --realm python1 --password passwd --next-cred " + \
7
 
        "--username theuser2 --realm python2 --password passwd " + \
8
 
        "--auto-update-nat=0"
9
 
 
10
 
req1 = sip.RecvfromTransaction("Initial registration", 401,
11
 
                                include=["REGISTER sip"],
12
 
                                resp_hdr=["WWW-Authenticate: Digest realm=\"python1\", nonce=\"1234\"",
13
 
                                          "WWW-Authenticate: Digest realm=\"python2\", nonce=\"6789\""],
14
 
                                expect="SIP/2.0 401"
15
 
                          )
16
 
 
17
 
req2 = sip.RecvfromTransaction("Registration retry with auth", 200,
18
 
                                include=["REGISTER sip",
19
 
                                         "Authorization:[\\s\\S]+Authorization:", # Must have 2 Auth hdrs
20
 
                                         "realm=\"python1\"", "realm=\"python2\"",
21
 
                                         "username=\"theuser1\"", "username=\"theuser2\"",
22
 
                                         "nonce=\"1234\"", "nonce=\"6789\"",
23
 
                                         "response="],
24
 
                                expect="registration success"
25
 
                          )
26
 
 
27
 
recvfrom_cfg = sip.RecvfromCfg("Multiple authentication challenges",
28
 
                               pjsua, [req1, req2])