Ignore:
Timestamp:
Oct 2, 2015 2:08:17 AM (9 years ago)
Author:
nanang
Message:

Close #1892: Add pjsua/pjsua2 callback on_call_tx_offer()/Call::onCallTxOffer() to notify incoming re-INVITE without offer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r5170 r5185  
    41824182#endif 
    41834183 
     4184    if (pjsua_var.ua_cfg.cb.on_call_tx_offer) { 
     4185        cleanup_call_setting_flag(&call->opt); 
     4186        (*pjsua_var.ua_cfg.cb.on_call_tx_offer)(call->index, NULL, 
     4187                                                &call->opt); 
     4188    } 
     4189 
    41844190    /* We may need to re-initialize media before creating SDP */ 
    4185     if (call->med_prov_cnt == 0) { 
     4191    if (call->med_prov_cnt == 0 || pjsua_var.ua_cfg.cb.on_call_tx_offer) { 
    41864192        status = apply_call_setting(call, &call->opt, NULL); 
    41874193        if (status != PJ_SUCCESS) 
Note: See TracChangeset for help on using the changeset viewer.