Ignore:
Timestamp:
Sep 28, 2010 7:43:18 AM (12 years ago)
Author:
bennylp
Message:

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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r3322 r3323  
    15411541/** 
    15421542 * This is a utility function to verify that valid SIP url is given. If the 
    1543  * URL is valid, PJ_SUCCESS will be returned. 
     1543 * URL is a valid SIP/SIPS scheme, PJ_SUCCESS will be returned. 
    15441544 * 
    15451545 * @param url           The URL, as NULL terminated string. 
    15461546 * 
    15471547 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     1548 * 
     1549 * @see pjsua_verify_url() 
    15481550 */ 
    15491551PJ_DECL(pj_status_t) pjsua_verify_sip_url(const char *url); 
     1552 
     1553 
     1554/** 
     1555 * This is a utility function to verify that valid URI is given. Unlike 
     1556 * pjsua_verify_sip_url(), this function will return PJ_SUCCESS if tel: URI 
     1557 * is given. 
     1558 * 
     1559 * @param url           The URL, as NULL terminated string. 
     1560 * 
     1561 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     1562 * 
     1563 * @see pjsua_verify_sip_url() 
     1564 */ 
     1565PJ_DECL(pj_status_t) pjsua_verify_url(const char *url); 
    15501566 
    15511567 
Note: See TracChangeset for help on using the changeset viewer.