summaryrefslogtreecommitdiff
path: root/tests/pjsua/scripts-recvfrom/235_reg_good_tel_uri_enocredential.py
blob: 3725bf728e32b050d947ed23a4754984c04fa591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $Id$
import inc_sip as sip
import inc_sdp as sdp

pjsua = "--null-audio --id=tel:+12345 --registrar sip:127.0.0.1:$PORT"

req1 = sip.RecvfromTransaction("", 401,
				include=["REGISTER sip"], 
				exclude=["Authorization"],
				resp_hdr=["WWW-Authenticate: Digest realm=\"python\", nonce=\"1234\""],
				expect="PJSIP_ENOCREDENTIAL"
			  )

recvfrom_cfg = sip.RecvfromCfg("Failed registration with tel: URI test",
			       pjsua, [req1])