Ignore:
Timestamp:
Dec 13, 2011 4:59:15 AM (13 years ago)
Author:
nanang
Message:

Close #1424: Added new pjsua callback: on_call_rx_offer().

File:
1 edited

Legend:

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

    r3903 r3908  
    35563556    pj_log_push_indent(); 
    35573557 
     3558    if (pjsua_var.ua_cfg.cb.on_call_rx_offer) { 
     3559        pjsip_status_code code = PJSIP_SC_OK; 
     3560        pjsua_call_setting opt = call->opt; 
     3561         
     3562        (*pjsua_var.ua_cfg.cb.on_call_rx_offer)(call->index, offer, NULL, 
     3563                                                &code, &opt); 
     3564 
     3565        if (code != PJSIP_SC_OK) { 
     3566            PJ_LOG(4,(THIS_FILE, "Rejecting updated media offer on call %d", 
     3567                      call->index)); 
     3568            goto on_return; 
     3569        } 
     3570 
     3571        call->opt = opt; 
     3572    } 
     3573 
    35583574    /* Re-init media for the new remote offer before creating SDP */ 
    35593575    status = pjsua_media_channel_init(call->index, PJSIP_ROLE_UAS, 
Note: See TracChangeset for help on using the changeset viewer.