Changeset 620


Ignore:
Timestamp:
Jul 22, 2006 12:49:17 PM (18 years ago)
Author:
bennylp
Message:

pjsua application should check that the --max-calls argument does not exceed compile time maximums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r612 r620  
    625625        case OPT_MAX_CALLS: 
    626626            cfg->cfg.max_calls = my_atoi(pj_optarg); 
    627             if (cfg->cfg.max_calls < 1 || cfg->cfg.max_calls > 255) { 
    628                 PJ_LOG(1,(THIS_FILE,"Too many calls for max-calls (1-255)")); 
     627            if (cfg->cfg.max_calls < 1 || cfg->cfg.max_calls > PJSUA_MAX_CALLS) { 
     628                PJ_LOG(1,(THIS_FILE,"Too many calls for max-calls (1-%d)", 
     629                          PJSUA_MAX_CALLS)); 
    629630                return -1; 
    630631            } 
     
    13161317    puts("|  q  QUIT                                                                    |"); 
    13171318    puts("+=============================================================================+"); 
     1319 
     1320    i = pjsua_call_get_count(); 
     1321    printf("You have %d active call%s\n", i, (i>1?"s":"")); 
    13181322} 
    13191323 
Note: See TracChangeset for help on using the changeset viewer.