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 /pjsip/src/pjsip/sip_util.c | |
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 'pjsip/src/pjsip/sip_util.c')
-rw-r--r-- | pjsip/src/pjsip/sip_util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pjsip/src/pjsip/sip_util.c b/pjsip/src/pjsip/sip_util.c index 2b0933a3..b57c9485 100644 --- a/pjsip/src/pjsip/sip_util.c +++ b/pjsip/src/pjsip/sip_util.c @@ -835,9 +835,12 @@ static pj_status_t get_dest_info(const pjsip_uri *target_uri, dest_info->flag = pjsip_transport_get_flag_from_type(dest_info->type); } else { + /* Should have never reached here; app should have configured route + * set when sending to tel: URI pj_assert(!"Unsupported URI scheme!"); + */ PJ_TODO(SUPPORT_REQUEST_ADDR_RESOLUTION_FOR_TEL_URI); - return PJSIP_EINVALIDSCHEME; + return PJSIP_ENOROUTESET; } /* Handle IPv6 (http://trac.pjsip.org/repos/ticket/861) */ |