diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-09-28 07:43:18 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-09-28 07:43:18 +0000 |
commit | 6e7c99b00209bbdb5403cec88f6b7ad01e25526c (patch) | |
tree | a96b1174be66eaca9d756c71fc76898ccdffa9c5 /tests/pjsua | |
parent | 956dfe0b552043fbd5ce2181219feeb59b7f459f (diff) |
Closed #1139 (Support for tel: URI in PJSUA-LIB):
- added new PJSUA API: pjsua_verify_url() which can be used for tel: URI
- modified and tested according to spec
- added new PJSIP error code, PJSIP_ENOROUTESET, to indicate that route set is needed to send to tel: URI
- added couple of unit tests (we can't cover the whole tel: URI scenario yet)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3323 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/pjsua')
-rw-r--r-- | tests/pjsua/scripts-call/400_tel_uri.py | 12 | ||||
-rw-r--r-- | tests/pjsua/scripts-recvfrom/235_reg_good_tel_uri_enocredential.py | 15 |
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/pjsua/scripts-call/400_tel_uri.py b/tests/pjsua/scripts-call/400_tel_uri.py new file mode 100644 index 00000000..2b64c30c --- /dev/null +++ b/tests/pjsua/scripts-call/400_tel_uri.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# Simple call +test_param = TestParam( + "tel: URI in From", + [ + InstanceParam("callee", "--null-audio --max-calls=1 --id tel:+111"), + InstanceParam("caller", "--null-audio --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-recvfrom/235_reg_good_tel_uri_enocredential.py b/tests/pjsua/scripts-recvfrom/235_reg_good_tel_uri_enocredential.py new file mode 100644 index 00000000..3725bf72 --- /dev/null +++ b/tests/pjsua/scripts-recvfrom/235_reg_good_tel_uri_enocredential.py @@ -0,0 +1,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]) |