Ignore:
Timestamp:
Oct 27, 2014 7:36:08 AM (6 years ago)
Author:
nanang
Message:

Fix #1801:

  • put error check in re-registration attempt in pjsua_acc_modify(),
  • updated pjsua_acc_modify() docs about its behavior regarding unregistration and re-registration.
File:
1 edited

Legend:

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

    r4929 r4955  
    36453645 
    36463646/** 
    3647  * Modify account information. 
    3648  * 
     3647 * Modify account configuration setting. This function may trigger 
     3648 * unregistration (of old account setting) and re-registration (of the new 
     3649 * account setting), e.g: changing account ID, credential, registar, or 
     3650 * proxy setting. 
     3651 * 
     3652 * Note: 
     3653 * - when the new config triggers unregistration, the pjsua callback 
     3654 *   on_reg_state()/on_reg_state2() for the unregistration will not be called 
     3655 *   and any failure in the unregistration will be ignored, so if application 
     3656 *   needs to be sure about the unregistration status, it should unregister 
     3657 *   manually and wait for the callback before calling this function 
     3658 * - when the new config triggers re-registration and the re-registration 
     3659 *   fails, the account setting will not be reverted back to the old setting 
     3660 *   and the account will be in unregistered state. 
     3661 *  
    36493662 * @param acc_id        Id of the account to be modified. 
    36503663 * @param acc_cfg       New account configuration. 
Note: See TracChangeset for help on using the changeset viewer.