Ignore:
Timestamp:
Mar 1, 2006 7:29:10 PM (18 years ago)
Author:
bennylp
Message:

Moved pjsua to pjsip-apps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_opt.c

    r238 r253  
    8383    puts("  --auto-loop         Automatically loop incoming RTP to outgoing RTP"); 
    8484    puts("  --auto-conf         Automatically put incoming calls to conference"); 
     85    puts("  --rtp-port=N        Base port to try for RTP"); 
    8586    puts(""); 
    8687    puts("Buddy List (can be more than one):"); 
     
    212213           OPT_AUTO_ANSWER, OPT_AUTO_HANGUP, OPT_AUTO_PLAY, OPT_AUTO_LOOP, 
    213214           OPT_AUTO_CONF, 
    214            OPT_PLAY_FILE, 
     215           OPT_PLAY_FILE, OPT_RTP_PORT, 
    215216           OPT_NEXT_ACCOUNT, OPT_NEXT_CRED, OPT_MAX_CALLS, 
    216217    }; 
     
    244245        { "auto-conf",  0, 0, OPT_AUTO_CONF}, 
    245246        { "play-file",  1, 0, OPT_PLAY_FILE}, 
     247        { "rtp-port",   1, 0, OPT_RTP_PORT}, 
    246248        { "next-account",0,0, OPT_NEXT_ACCOUNT}, 
    247249        { "next-cred",  0, 0, OPT_NEXT_CRED}, 
     
    463465            break; 
    464466 
     467        case OPT_RTP_PORT: 
     468            pjsua.start_rtp_port = my_atoi(optarg); 
     469            if (pjsua.start_rtp_port < 1 || pjsua.start_rtp_port > 65535) { 
     470                PJ_LOG(1,(THIS_FILE, 
     471                          "Error: rtp-port argument value (expecting 1-65535")); 
     472                return -1; 
     473            } 
     474 
    465475        case OPT_AUTO_ANSWER: 
    466476            pjsua.auto_answer = my_atoi(optarg); 
    467477            if (pjsua.auto_answer < 100 || pjsua.auto_answer > 699) { 
    468                 puts("Error: invalid code in --auto-answer (expecting 100-699"); 
     478                PJ_LOG(1,(THIS_FILE, 
     479                          "Error: invalid code in --auto-answer (expecting 100-699")); 
    469480                return -1; 
    470481            } 
     
    474485            pjsua.max_calls = my_atoi(optarg); 
    475486            if (pjsua.max_calls < 1 || pjsua.max_calls > 255) { 
    476                 puts("Too many calls for max-calls (1-255)"); 
     487                PJ_LOG(1,(THIS_FILE,"Too many calls for max-calls (1-255)")); 
    477488                return -1; 
    478489            } 
     
    578589    pjsip_endpt_dump(pjsua.endpt, 1); 
    579590    pjmedia_endpt_dump(pjsua.med_endpt); 
    580     pjsip_tsx_layer_dump(); 
    581     pjsip_ua_dump(); 
     591    pjsip_tsx_layer_dump(1); 
     592    pjsip_ua_dump(1); 
    582593 
    583594 
Note: See TracChangeset for help on using the changeset viewer.