Ignore:
Timestamp:
Apr 3, 2013 8:21:47 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1653: [incompatible] pjsua_call_update() API should not release hold

File:
1 edited

Legend:

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

    r4452 r4457  
    24962496 
    24972497    /* Create SDP */ 
    2498     status = pjsua_media_channel_create_sdp(call->index,  
    2499                                             call->inv->pool_prov,  
    2500                                             NULL, &sdp, NULL); 
    2501     if (status != PJ_SUCCESS) { 
    2502         pjsua_perror(THIS_FILE, "Unable to get SDP from media endpoint",  
     2498    if (call->local_hold && (call->opt.flag & PJSUA_CALL_UNHOLD)==0) { 
     2499        status = create_sdp_of_call_hold(call, &sdp); 
     2500    } else { 
     2501        status = pjsua_media_channel_create_sdp(call->index, 
     2502                                                call->inv->pool_prov, 
     2503                                                NULL, &sdp, NULL); 
     2504        call->local_hold = PJ_FALSE; 
     2505    } 
     2506 
     2507    if (status != PJ_SUCCESS) { 
     2508        pjsua_perror(THIS_FILE, "Unable to get SDP from media endpoint", 
    25032509                     status); 
    25042510        goto on_return; 
Note: See TracChangeset for help on using the changeset viewer.