Ignore:
Timestamp:
Feb 7, 2006 6:48:01 PM (18 years ago)
Author:
bennylp
Message:

Tested initial implementation: basic UAC, client registration, authentication, etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua/pjsua.h

    r139 r141  
    4848 
    4949    /* User info: */ 
     50 
    5051    pj_str_t         local_uri;     /**< Uri in From: header.           */ 
    5152    pj_str_t         contact_uri;   /**< Uri in Contact: header.        */ 
     53 
     54    /* Proxy URLs: */ 
     55 
     56    pj_str_t         proxy; 
     57    pj_str_t         outbound_proxy; 
     58 
     59    /* Registration: */ 
     60 
     61    pj_str_t         registrar_uri; 
     62    pjsip_regc      *regc; 
     63    pj_int32_t       reg_timeout; 
     64    pj_timer_entry   regc_timer; 
     65 
     66 
     67    /* Authentication credentials: */ 
     68 
     69    int              cred_count; 
     70    pjsip_cred_info  cred_info[4]; 
     71 
    5272 
    5373    /* Threading: */ 
     
    7797 
    7898 
     99    /* Media stack: */ 
     100 
     101    pj_bool_t        null_audio; 
     102    pj_med_mgr_t    *mmgr; 
     103 
     104 
    79105    /* Misc: */ 
    80106     
     
    82108    int              app_log_level; /**< stdout log verbosity.          */ 
    83109    unsigned         log_decor;     /**< Log decoration.                */ 
     110    char            *log_filename;  /**< Log filename.                  */ 
    84111 
    85112} pjsua; 
     
    103130 
    104131/** 
    105  * Initialize pjsua application. 
    106  * This will start the registration process, if registration is configured. 
     132 * Initialize pjsua application. Application can call this before parsing 
     133 * application settings. 
     134 * 
     135 * This will initialize all libraries, create endpoint instance, and register 
     136 * pjsip modules. Transport will NOT be created however. 
     137 * 
     138 * Application may register module after calling this function. 
    107139 */ 
    108140pj_status_t pjsua_init(void); 
     141 
     142 
     143/** 
     144 * Start pjsua stack. Application calls this after pjsua settings has been 
     145 * configured. 
     146 * 
     147 * This will start the transport, worker threads (if any), and registration  
     148 * process, if registration is configured. 
     149 */ 
     150pj_status_t pjsua_start(void); 
    109151 
    110152 
     
    123165 
    124166/***************************************************************************** 
     167 * PJSUA Client Registration API. 
     168 */ 
     169 
     170/** 
     171 * Initialize client registration session. 
     172 * 
     173 * @param app_callback  Optional callback 
     174 */ 
     175pj_status_t pjsua_regc_init(void); 
     176 
     177/** 
     178 * Update registration or perform unregistration. If renew argument is zero, 
     179 * this will start unregistration process. 
     180 */ 
     181void pjsua_regc_update(pj_bool_t renew); 
     182 
     183 
     184/***************************************************************************** 
    125185 * User Interface API. 
    126186 * The UI API specifies functions that will be called by pjsua upon 
     
    131191 * Notify UI when invite state has changed. 
    132192 */ 
    133 void ui_inv_on_state_changed(pjsip_inv_session *inv, pjsip_event *e); 
     193void pjsua_ui_inv_on_state_changed(pjsip_inv_session *inv, pjsip_event *e); 
    134194 
    135195 
Note: See TracChangeset for help on using the changeset viewer.