Ignore:
Timestamp:
Sep 24, 2006 12:07:11 AM (18 years ago)
Author:
bennylp
Message:

Fixed several bugs in PJSUA-API:

  • in some condition, when outgoing call fails, call count incorrectly decremented to -1
  • introduce account priority in pjsua_acc_config, and improve the account searching for incoming calls
  • pjsua will hangup call after sending transfer/REFER request.
File:
1 edited

Legend:

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

    r734 r737  
    238238    call = &pjsua_var.calls[call_id]; 
    239239 
     240    PJ_LOG(4,(THIS_FILE, "Making call with acc #%d to %.*s", acc_id, 
     241              (int)dest_uri->slen, dest_uri->ptr)); 
     242 
    240243    /* Mark call start time. */ 
    241244    pj_gettimeofday(&call->start_time); 
     
    316319 
    317320    pjsua_process_msg_data( tdata, msg_data); 
     321 
     322    /* Must increment call counter now */ 
     323    ++pjsua_var.call_cnt; 
    318324 
    319325    /* Send initial INVITE: */ 
     
    333339 
    334340    /* Done. */ 
    335  
    336     ++pjsua_var.call_cnt; 
    337341 
    338342    if (p_call_id) 
     
    463467     * the call. 
    464468     */ 
    465     acc_id = pjsua_acc_find_for_incoming(rdata); 
     469    acc_id = call->acc_id = pjsua_acc_find_for_incoming(rdata); 
    466470 
    467471    /* Get suitable Contact header */ 
Note: See TracChangeset for help on using the changeset viewer.