Ignore:
Timestamp:
Mar 17, 2006 5:57:52 PM (18 years ago)
Author:
bennylp
Message:

Changed pjsip_inv_send_msg() function

File:
1 edited

Legend:

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

    r323 r324  
    191191    /* Send initial INVITE: */ 
    192192 
    193     status = pjsip_inv_send_msg(inv, tdata, NULL); 
     193    status = pjsip_inv_send_msg(inv, tdata); 
    194194    if (status != PJ_SUCCESS) { 
    195195        pjsua_perror(THIS_FILE, "Unable to send initial INVITE request",  
     
    375375 
    376376    } else { 
    377         status = pjsip_inv_send_msg(inv, response, NULL); 
     377        status = pjsip_inv_send_msg(inv, response); 
    378378        if (status != PJ_SUCCESS) 
    379379            pjsua_perror(THIS_FILE, "Unable to send 100 response", status); 
     
    837837    status = pjsip_inv_end_session(inv, st_code, NULL, &tdata); 
    838838    if (status == PJ_SUCCESS) 
    839         status = pjsip_inv_send_msg(inv, tdata, NULL); 
     839        status = pjsip_inv_send_msg(inv, tdata); 
    840840 
    841841    if (status != PJ_SUCCESS) { 
     
    871871            inv->state != PJSIP_INV_STATE_CONFIRMED)  
    872872        { 
    873             call_disconnect(inv, PJSIP_SC_UNSUPPORTED_MEDIA_TYPE); 
     873            //call_disconnect(inv, PJSIP_SC_UNSUPPORTED_MEDIA_TYPE); 
    874874        } 
    875875        return; 
     
    892892                     "Unable to retrieve currently active local SDP",  
    893893                     status); 
    894         call_disconnect(inv, PJSIP_SC_UNSUPPORTED_MEDIA_TYPE); 
     894        //call_disconnect(inv, PJSIP_SC_UNSUPPORTED_MEDIA_TYPE); 
    895895        return; 
    896896    } 
     
    902902                     "Unable to retrieve currently active remote SDP",  
    903903                     status); 
    904         call_disconnect(inv, PJSIP_SC_UNSUPPORTED_MEDIA_TYPE); 
     904        //call_disconnect(inv, PJSIP_SC_UNSUPPORTED_MEDIA_TYPE); 
    905905        return; 
    906906    } 
     
    920920        pjsua_perror(THIS_FILE, "Unable to create media session",  
    921921                     status); 
    922         call_disconnect(inv, PJSIP_SC_UNSUPPORTED_MEDIA_TYPE); 
     922        //call_disconnect(inv, PJSIP_SC_UNSUPPORTED_MEDIA_TYPE); 
    923923        return; 
    924924    } 
     
    950950        pjmedia_session_destroy(call->session); 
    951951        call->session = NULL; 
    952         call_disconnect(inv, PJSIP_SC_INTERNAL_SERVER_ERROR); 
     952        //call_disconnect(inv, PJSIP_SC_INTERNAL_SERVER_ERROR); 
    953953        return; 
    954954    } 
     
    10801080        return; 
    10811081 
    1082     status = pjsip_inv_send_msg(call->inv, tdata, NULL); 
     1082    status = pjsip_inv_send_msg(call->inv, tdata); 
    10831083    if (status != PJ_SUCCESS) { 
    10841084        pjsua_perror(THIS_FILE,  
     
    11231123    } 
    11241124 
    1125     status = pjsip_inv_send_msg( call->inv, tdata, NULL); 
     1125    status = pjsip_inv_send_msg( call->inv, tdata); 
    11261126    if (status != PJ_SUCCESS) { 
    11271127        pjsua_perror(THIS_FILE, "Unable to send re-INVITE", status); 
     
    11701170    } 
    11711171 
    1172     status = pjsip_inv_send_msg( call->inv, tdata, NULL); 
     1172    status = pjsip_inv_send_msg( call->inv, tdata); 
    11731173    if (status != PJ_SUCCESS) { 
    11741174        pjsua_perror(THIS_FILE, "Unable to send re-INVITE", status); 
     
    13531353        if (pjsip_inv_end_session(call->inv, st_code, NULL, &tdata)==0) { 
    13541354            if (tdata) 
    1355                 pjsip_inv_send_msg(call->inv, tdata, NULL); 
     1355                pjsip_inv_send_msg(call->inv, tdata); 
    13561356        } 
    13571357    } 
     
    13741374 
    13751375    /* Initialize invite session module: */ 
    1376     status = pjsip_inv_usage_init(pjsua.endpt, &pjsua.mod, &inv_cb); 
     1376    status = pjsip_inv_usage_init(pjsua.endpt, &inv_cb); 
    13771377     
    13781378    return status; 
Note: See TracChangeset for help on using the changeset viewer.