Changeset 4204 for pjproject/trunk


Ignore:
Timestamp:
Jul 13, 2012 7:38:06 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1553: Account setting to disable re-INVITE or UPDATE to lock codec

Location:
pjproject/trunk/pjsip
Files:
3 edited

Legend:

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

    r4180 r4204  
    27442744    pj_str_t        proxy[PJSUA_ACC_MAX_PROXIES]; 
    27452745 
     2746    /** 
     2747     * If remote sends SDP answer containing more than one format or codec in 
     2748     * the media line, send re-INVITE or UPDATE with just one codec to lock 
     2749     * which codec to use. 
     2750     * 
     2751     * Default: 1 (Yes). Set to zero to disable. 
     2752     */ 
     2753    unsigned        lock_codec; 
     2754 
    27462755    /**  
    27472756     * Optional interval for registration, in seconds. If the value is zero,  
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r4176 r4204  
    30603060    pj_bool_t has_mult_fmt = PJ_FALSE; 
    30613061    pj_status_t status; 
     3062 
     3063    if (!pjsua_var.acc[call->acc_id].cfg.lock_codec) { 
     3064        return PJ_SUCCESS; 
     3065    } 
    30623066 
    30633067    /* Stop lock codec timer, if it is active */ 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r4200 r4204  
    216216    cfg->use_timer = pjsua_var.ua_cfg.use_timer; 
    217217    cfg->timer_setting = pjsua_var.ua_cfg.timer_setting; 
     218    cfg->lock_codec = 1; 
    218219    cfg->ka_interval = 15; 
    219220    cfg->ka_data = pj_str("\r\n"); 
Note: See TracChangeset for help on using the changeset viewer.