Ignore:
Timestamp:
Jan 17, 2008 5:29:36 PM (17 years ago)
Author:
nanang
Message:

Ticket #452:

  • Add directory srtp to third_party/build directory
  • Add libsrtp project & integrate it to pjproject vs8 solution
  • Add transport_srtp.h & .c
  • Modify project dependencies to include libsrtp
  • Modify Samples-vc.mak, add libsrtp as third party library
  • Modify transport interface
  • Modify transport_ice & transport_udp to accomodate new transport interface
  • Modify other files that uses transport
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/users/nanang/pjsip/src/pjsua-lib/pjsua_call.c

    r1693 r1698  
    335335    offer = NULL; 
    336336#else 
    337     status = pjsua_media_channel_create_sdp(call->index, dlg->pool, &offer); 
     337    status = pjsua_media_channel_create_sdp(call->index, dlg->pool, NULL, &offer); 
    338338    if (status != PJ_SUCCESS) { 
    339339        pjsua_perror(THIS_FILE, "pjmedia unable to create SDP", status); 
     
    482482    pjsua_call *call; 
    483483    int call_id = -1; 
    484     pjmedia_sdp_session *answer; 
     484    pjmedia_sdp_session *offer, *answer; 
    485485    pj_status_t status; 
    486486 
     
    590590    } 
    591591 
     592    /* Parse SDP from incoming request */ 
     593    if (rdata->msg_info.msg->body) { 
     594        status = pjmedia_sdp_parse(rdata->tp_info.pool,  
     595                                   rdata->msg_info.msg->body->data, 
     596                                   rdata->msg_info.msg->body->len, &offer); 
     597        if (status != PJ_SUCCESS) { 
     598            pjsua_perror(THIS_FILE, "Error parsing SDP in incoming INVITE", status); 
     599            pjsip_endpt_respond_stateless(pjsua_var.endpt, rdata, 400, NULL, 
     600                                          NULL, NULL); 
     601            pjsua_media_channel_deinit(call->index); 
     602            PJSUA_UNLOCK(); 
     603            return PJ_TRUE; 
     604        } 
     605    } else { 
     606        offer = NULL; 
     607    } 
    592608 
    593609    /* Get media capability from media endpoint: */ 
    594     status = pjsua_media_channel_create_sdp(call->index, rdata->tp_info.pool, &answer); 
     610    status = pjsua_media_channel_create_sdp(call->index, rdata->tp_info.pool,  
     611                                            offer, &answer); 
    595612    if (status != PJ_SUCCESS) { 
    596613        pjsip_endpt_respond_stateless(pjsua_var.endpt, rdata, 500, NULL, 
     
    613630        options |= PJSIP_INV_REQUIRE_100REL; 
    614631 
    615     status = pjsip_inv_verify_request(rdata, &options, answer, NULL, 
    616                                       pjsua_var.endpt, &response); 
     632    status = pjsip_inv_verify_request2(rdata, &options, offer, answer, NULL, 
     633                                       pjsua_var.endpt, &response); 
    617634    if (status != PJ_SUCCESS) { 
    618635 
     
    13141331    PJ_UNUSED_ARG(unhold); 
    13151332    PJ_TODO(create_active_inactive_sdp_based_on_unhold_arg); 
    1316     status = pjsua_media_channel_create_sdp(call->index, call->inv->pool, &sdp); 
     1333    status = pjsua_media_channel_create_sdp(call->index, call->inv->pool,  
     1334                                            NULL, &sdp); 
    13171335    if (status != PJ_SUCCESS) { 
    13181336        pjsua_perror(THIS_FILE, "Unable to get SDP from media endpoint",  
     
    13801398 
    13811399    /* Create SDP */ 
    1382     status = pjsua_media_channel_create_sdp(call->index, call->inv->pool, &sdp); 
     1400    status = pjsua_media_channel_create_sdp(call->index, call->inv->pool,  
     1401                                            NULL, &sdp); 
    13831402    if (status != PJ_SUCCESS) { 
    13841403        pjsua_perror(THIS_FILE, "Unable to get SDP from media endpoint",  
     
    23212340{ 
    23222341    pjsua_call *call; 
    2323     const pjmedia_sdp_session *local_sdp; 
     2342    pjmedia_sdp_session *local_sdp; 
    23242343    const pjmedia_sdp_session *remote_sdp; 
    23252344 
     
    25022521        } 
    25032522 
    2504         status = pjsua_media_channel_create_sdp(call->index, call->inv->pool, &answer); 
     2523        status = pjsua_media_channel_create_sdp(call->index, call->inv->pool,  
     2524                                                offer, &answer); 
    25052525    } 
    25062526 
     
    25542574        } 
    25552575 
    2556         status = pjsua_media_channel_create_sdp(call->index, call->inv->pool, offer); 
     2576        status = pjsua_media_channel_create_sdp(call->index, call->inv->pool,  
     2577                                                NULL, offer); 
    25572578    } 
    25582579 
Note: See TracChangeset for help on using the changeset viewer.