Changeset 3013


Ignore:
Timestamp:
Nov 11, 2009 12:33:00 AM (10 years ago)
Author:
bennylp
Message:

Misc (#951): undo r3012, and silently adjust max_calls to PJSUA_MAX_CALLS instead if it is greater

Location:
pjproject/trunk/pjsip/src/pjsua-lib
Files:
2 edited

Legend:

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

    r2955 r3013  
    133133    /* Copy config */ 
    134134    pjsua_config_dup(pjsua_var.pool, &pjsua_var.ua_cfg, cfg); 
     135 
     136    /* Verify settings */ 
     137    if (pjsua_var.ua_cfg.max_calls >= PJSUA_MAX_CALLS) { 
     138        pjsua_var.ua_cfg.max_calls = PJSUA_MAX_CALLS; 
     139    } 
    135140 
    136141    /* Check the route URI's and force loose route if required */ 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r3012 r3013  
    684684    } 
    685685 
    686     /* Verify settings */ 
    687     if (ua_cfg->max_calls >= PJSUA_MAX_CALLS) { 
    688         pjsua_perror(THIS_FILE, "Invalid max_calls setting", PJ_ETOOMANY); 
    689         return PJ_EINVAL; 
    690     } 
    691  
    692686    /* If nameserver is configured, create DNS resolver instance and 
    693687     * set it to be used by SIP resolver. 
Note: See TracChangeset for help on using the changeset viewer.