Changeset 5205


Ignore:
Timestamp:
Dec 3, 2015 11:33:25 AM (5 years ago)
Author:
nanang
Message:

Fix #1899: Updated pjsua behaviour to re-create stream even when SDP direction attribute is inactive, as long as media port is not zero.

Location:
pjproject/trunk/pjsip/src/pjsua-lib
Files:
2 edited

Legend:

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

    r5179 r5205  
    589589 
    590590    /* Check if no media is active */ 
    591     if (si->dir != PJMEDIA_DIR_NONE) { 
     591    if (local_sdp->media[strm_idx]->desc.port != 0) { 
    592592 
    593593        /* Optionally, application may modify other stream settings here 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r5170 r5205  
    27582758 
    27592759            /* Check if no media is active */ 
    2760             if (si->dir == PJMEDIA_DIR_NONE) { 
     2760            if (local_sdp->media[mi]->desc.port == 0) { 
    27612761 
    27622762                /* Update call media state and direction */ 
Note: See TracChangeset for help on using the changeset viewer.