Changeset 4067


Ignore:
Timestamp:
Apr 23, 2012 10:22:49 AM (13 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

Location:
pjproject/branches/1.x/pjsip/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsip-ua/sip_inv.c

    r4046 r4067  
    21602160 
    21612161    default: 
    2162         pj_assert("!Invalid operation!"); 
     2162        pj_assert(!"Invalid operation!"); 
    21632163        return PJ_EINVALIDOP; 
    21642164    } 
  • 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.