Changeset 4312 for pjproject/trunk


Ignore:
Timestamp:
Jan 3, 2013 9:26:29 AM (11 years ago)
Author:
ming
Message:

Re #1559: Fixed registration timeout setting used by ipjsua to take effect immediately.

File:
1 edited

Legend:

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

    r4262 r4312  
    194194            continue; 
    195195 
    196         if (app_config.acc_cfg[i].reg_timeout < timeout) 
     196        if (app_config.acc_cfg[i].reg_timeout < timeout) { 
    197197            app_config.acc_cfg[i].reg_timeout = timeout; 
    198         pjsua_acc_set_registration(i, PJ_TRUE); 
     198            pjsua_acc_modify(i, &app_config.acc_cfg[i]); 
     199        } else { 
     200            pjsua_acc_set_registration(i, PJ_TRUE); 
     201        } 
    199202    } 
    200203} 
Note: See TracChangeset for help on using the changeset viewer.