Ignore:
Timestamp:
Jun 22, 2011 8:00:20 AM (13 years ago)
Author:
bennylp
Message:

Closed #1313 (Account option to disable registration when account is added) and closed #1314 (New callback to notify application when registration or unregistration has been initiated). Thanks Tony Jago Million for the patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/include/pjsua-lib/pjsua.h

    r3585 r3594  
    604604 
    605605 
     606    /** 
     607     * Notify application when registration or unregistration has been 
     608     * initiated. Note that this only notifies the initial registration 
     609     * and unregistration. Once registration session is active, subsequent 
     610     * refresh will not cause this callback to be called. 
     611     * 
     612     * @param acc_id        The account ID. 
     613     * @param renew         Non-zero for registration and zero for 
     614     *                      unregistration. 
     615     */ 
     616    void (*on_reg_started)(pjsua_acc_id acc_id, pj_bool_t renew); 
     617     
    606618    /** 
    607619     * Notify application when registration status has changed. 
     
    25532565     */ 
    25542566    pjsua_call_hold_type call_hold_type; 
     2567     
     2568     
     2569    /** 
     2570     * Specify whether the account should register as soon as it is 
     2571     * added to the UA. Application can set this to PJ_FALSE and control 
     2572     * the registration manually with pjsua_acc_set_registration(). 
     2573     * 
     2574     * Default: PJ_TRUE 
     2575     */ 
     2576    pj_bool_t         register_on_acc_add; 
    25552577 
    25562578} pjsua_acc_config; 
Note: See TracChangeset for help on using the changeset viewer.