Changeset 2264


Ignore:
Timestamp:
Sep 8, 2008 12:46:29 PM (16 years ago)
Author:
bennylp
Message:

Ticket #615: Error adding new buddy in the on_incoming_subscribe() callback (thanks Joseph Maiquez for reporting the error)

File:
1 edited

Legend:

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

    r2194 r2264  
    11801180 
    11811181        pjsip_pres_get_status(uapres->sub, &pres_status); 
    1182         if (force || pres_status.info[0].basic_open != acc->online_status) { 
     1182 
     1183        /* Only send NOTIFY once subscription is active. Some subscriptions 
     1184         * may still be in NULL (when app is adding a new buddy while in the 
     1185         * on_incoming_subscribe() callback) or PENDING (when user approval is 
     1186         * being requested) state and we don't send NOTIFY to these subs until 
     1187         * the user accepted the request. 
     1188         */ 
     1189        if (pjsip_evsub_get_state(uapres->sub)==PJSIP_EVSUB_STATE_ACTIVE && 
     1190            (force || pres_status.info[0].basic_open != acc->online_status))  
     1191        { 
    11831192 
    11841193            pres_status.info[0].basic_open = acc->online_status; 
Note: See TracChangeset for help on using the changeset viewer.