summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/test-pjsua/scripts-recvfrom/200_reg_good_enocredentiall.py
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip-apps/src/test-pjsua/scripts-recvfrom/200_reg_good_enocredentiall.py')
-rw-r--r--pjsip-apps/src/test-pjsua/scripts-recvfrom/200_reg_good_enocredentiall.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pjsip-apps/src/test-pjsua/scripts-recvfrom/200_reg_good_enocredentiall.py b/pjsip-apps/src/test-pjsua/scripts-recvfrom/200_reg_good_enocredentiall.py
new file mode 100644
index 00000000..9a0cd41a
--- /dev/null
+++ b/pjsip-apps/src/test-pjsua/scripts-recvfrom/200_reg_good_enocredentiall.py
@@ -0,0 +1,15 @@
+# $Id:$
+import inc_sip as sip
+import inc_sdp as sdp
+
+pjsua = "--null-audio --id=sip:CLIENT --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 test",
+ pjsua, [req1])