~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject/tests/pjsua/scripts-recvfrom/200_reg_good_enocredentiall.py

  • Committer: Jackson Doak
  • Date: 2013-07-10 21:04:46 UTC
  • mfrom: (20.1.3 sid)
  • Revision ID: noskcaj@ubuntu.com-20130710210446-y8f587vza807icr9
Properly merged from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: 200_reg_good_enocredentiall.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
 
 
7
 
req1 = sip.RecvfromTransaction("", 401,
8
 
                                include=["REGISTER sip"], 
9
 
                                exclude=["Authorization"],
10
 
                                resp_hdr=["WWW-Authenticate: Digest realm=\"python\", nonce=\"1234\""],
11
 
                                expect="PJSIP_ENOCREDENTIAL"
12
 
                          )
13
 
 
14
 
recvfrom_cfg = sip.RecvfromCfg("Failed registration test",
15
 
                               pjsua, [req1])