Ignore:
Timestamp:
Sep 4, 2013 10:07:45 AM (11 years ago)
Author:
ming
Message:

Closed #1696: IP change detection (Contact rewrite method) based on REGISTER final response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip-ua/sip_regc.h

    r4173 r4586  
    8383/** Type declaration for callback to receive registration result. */ 
    8484typedef void pjsip_regc_cb(struct pjsip_regc_cbparam *param); 
     85 
     86/** 
     87 * Structure to hold parameters when calling application's callback 
     88 * specified in #pjsip_regc_set_reg_tsx_cb(). 
     89 * To update contact address, application can set the field contact_cnt 
     90 * and contact inside the callback. 
     91 */ 
     92struct pjsip_regc_tsx_cb_param 
     93{ 
     94    struct pjsip_regc_cbparam   cbparam; 
     95    int                         contact_cnt; 
     96    pj_str_t                    contact[PJSIP_REGC_MAX_CONTACT]; 
     97}; 
     98 
     99/** Type declaration for callback set in #pjsip_regc_set_reg_tsx_cb(). */ 
     100typedef void pjsip_regc_tsx_cb(struct pjsip_regc_tsx_cb_param *param); 
    85101 
    86102/** 
     
    192208 
    193209/** 
     210 * Set callback to be called when the registration received a final response. 
     211 * This callback is different with the one specified during creation via 
     212 * #pjsip_regc_create(). This callback will be called for any final response 
     213 * (including 401/407/423) and before any subsequent requests are sent. 
     214 * In case of unregistration, this callback will not be called. 
     215 * 
     216 * @param regc      The client registration structure. 
     217 * @param tsx_cb    Pointer to callback function to receive registration status. 
     218 * 
     219 * @return          PJ_SUCCESS on success. 
     220 */ 
     221PJ_DECL(pj_status_t) pjsip_regc_set_reg_tsx_cb(pjsip_regc *regc, 
     222                                               pjsip_regc_tsx_cb *tsx_cb); 
     223 
     224/** 
    194225 * Set the "sent-by" field of the Via header for outgoing requests. 
    195226 * 
Note: See TracChangeset for help on using the changeset viewer.