Changeset 2879 for pjproject/trunk


Ignore:
Timestamp:
Aug 14, 2009 1:23:22 PM (15 years ago)
Author:
nanang
Message:

Ticket #877: Fixed bug flip-flop pools shouldn't be swapped when SDP negotiation fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c

    r2869 r2879  
    14901490        (*mod_inv.cb.on_media_update)(inv, status); 
    14911491 
    1492     /* Swap the flip-flop pool, and reset the new provisional pool */ 
    1493     swap_pool(&inv->pool_prov, &inv->pool_active); 
     1492    /* Swap the flip-flop pool when SDP negotiation success. */ 
     1493    if (status == PJ_SUCCESS) { 
     1494        swap_pool(&inv->pool_prov, &inv->pool_active); 
     1495    } 
     1496 
     1497    /* Reset the provisional pool regardless SDP negotiation result. */ 
    14941498    pj_pool_reset(inv->pool_prov); 
    14951499 
Note: See TracChangeset for help on using the changeset viewer.