Changeset 4447


Ignore:
Timestamp:
Mar 21, 2013 8:28:21 AM (11 years ago)
Author:
nanang
Message:

Close #1647: updated subscription lookup in on_new_transaction() to skip subscription with NO_EVENT_ID and already terminated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub.c

    r4082 r4447  
    14261426                          &event_hdr->id_param)==0) 
    14271427            { 
    1428                  
    1429                 break; 
     1428                /* Skip this subscription if it has no event ID and has been 
     1429                 * terminated (see ticket #1647). 
     1430                 */ 
     1431                if ((dlgsub->sub->option & PJSIP_EVSUB_NO_EVENT_ID) && 
     1432                    (pjsip_evsub_get_state(dlgsub->sub)== 
     1433                                        PJSIP_EVSUB_STATE_TERMINATED)) 
     1434                { 
     1435                    dlgsub = dlgsub->next; 
     1436                    continue; 
     1437                } else { 
     1438                    break; 
     1439                } 
    14301440 
    14311441            } 
Note: See TracChangeset for help on using the changeset viewer.