Ignore:
Timestamp:
Apr 23, 2012 10:22:49 AM (8 years ago)
Author:
ming
Message:

Re #1417: Fixed error handling if pjsip_timer_init_session() when accepting incoming call and fixed typo in assertion in sip_inv.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_call.c

    r3977 r4067  
    972972    if (status != PJ_SUCCESS) { 
    973973        pjsua_perror(THIS_FILE, "Session Timer init failed", status); 
    974         status = pjsip_inv_end_session(inv, PJSIP_SC_INTERNAL_SERVER_ERROR, 
    975                                        NULL, &response); 
    976         if (status == PJ_SUCCESS && response) 
    977             status = pjsip_inv_send_msg(inv, response); 
     974        pjsip_dlg_respond(dlg, rdata, PJSIP_SC_INTERNAL_SERVER_ERROR, NULL, NULL, NULL); 
     975        pjsip_inv_terminate(inv, PJSIP_SC_INTERNAL_SERVER_ERROR, PJ_FALSE); 
    978976 
    979977        pjsua_media_channel_deinit(call->index); 
Note: See TracChangeset for help on using the changeset viewer.