Changeset 519 for pjproject


Ignore:
Timestamp:
Jun 19, 2006 12:03:35 PM (18 years ago)
Author:
bennylp
Message:

Changed in presence: incoming NOTIFY without body will not change presence status (previously it will set status to closed)

File:
1 edited

Legend:

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

    r283 r519  
    898898    PJ_ASSERT_ON_FAIL(pres!=NULL, {return;}); 
    899899 
    900     /* Only process the message body if it exists, otherwise treat as 
    901      * presence status is closed.  
    902      */ 
    903900    if (rdata->msg_info.msg->body) { 
    904901        status = pres_process_rx_notify( pres, rdata, p_st_code, p_st_text, 
     
    908905 
    909906    } else { 
     907        /* This has just been changed. Previously, we treat incoming NOTIFY 
     908         * with no message body as having the presence subscription closed. 
     909         * Now we treat it as no change in presence status (ref: EyeBeam). 
     910         */ 
     911#if 1 
     912        *p_st_code = 200; 
     913        return; 
     914#else 
    910915        unsigned i; 
    911  
    912916        /* Subscription is terminated. Consider contact is offline */ 
    913917        pres->tmp_status._is_valid = PJ_TRUE; 
    914918        for (i=0; i<pres->tmp_status.info_cnt; ++i) 
    915919            pres->tmp_status.info[i].basic_open = PJ_FALSE; 
     920#endif 
    916921    } 
    917922 
Note: See TracChangeset for help on using the changeset viewer.