Ignore:
Timestamp:
Sep 28, 2010 7:43:18 AM (14 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-apps/src/pjsua/pjsua_app.c

    r3318 r3323  
    920920 
    921921        case OPT_ID:   /* id */ 
    922             if (pjsua_verify_sip_url(pj_optarg) != 0) { 
     922            if (pjsua_verify_url(pj_optarg) != 0) { 
    923923                PJ_LOG(1,(THIS_FILE,  
    924924                          "Error: invalid SIP URL '%s' " 
     
    10381038 
    10391039        case OPT_ADD_BUDDY: /* Add to buddy list. */ 
    1040             if (pjsua_verify_sip_url(pj_optarg) != 0) { 
     1040            if (pjsua_verify_url(pj_optarg) != 0) { 
    10411041                PJ_LOG(1,(THIS_FILE,  
    10421042                          "Error: invalid URL '%s' in " 
     
    14221422        pj_str_t uri_arg; 
    14231423 
    1424         if (pjsua_verify_sip_url(argv[pj_optind]) != PJ_SUCCESS) { 
     1424        if (pjsua_verify_url(argv[pj_optind]) != PJ_SUCCESS) { 
    14251425            PJ_LOG(1,(THIS_FILE, "Invalid SIP URI %s", argv[pj_optind])); 
    14261426            return -1; 
     
    32773277        pj_status_t status; 
    32783278 
    3279         if ((status=pjsua_verify_sip_url(buf)) != PJ_SUCCESS) { 
     3279        if ((status=pjsua_verify_url(buf)) != PJ_SUCCESS) { 
    32803280            pjsua_perror(THIS_FILE, "Invalid URL", status); 
    32813281            return; 
     
    38123812                    break; 
    38133813 
    3814                 if (pjsua_verify_sip_url(buf) != PJ_SUCCESS) { 
    3815                     printf("Invalid SIP URI '%s'\n", buf); 
     3814                if (pjsua_verify_url(buf) != PJ_SUCCESS) { 
     3815                    printf("Invalid URI '%s'\n", buf); 
    38163816                    break; 
    38173817                } 
Note: See TracChangeset for help on using the changeset viewer.