Changeset 519
- Timestamp:
- Jun 19, 2006 12:03:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/presence.c
r283 r519 898 898 PJ_ASSERT_ON_FAIL(pres!=NULL, {return;}); 899 899 900 /* Only process the message body if it exists, otherwise treat as901 * presence status is closed.902 */903 900 if (rdata->msg_info.msg->body) { 904 901 status = pres_process_rx_notify( pres, rdata, p_st_code, p_st_text, … … 908 905 909 906 } 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 910 915 unsigned i; 911 912 916 /* Subscription is terminated. Consider contact is offline */ 913 917 pres->tmp_status._is_valid = PJ_TRUE; 914 918 for (i=0; i<pres->tmp_status.info_cnt; ++i) 915 919 pres->tmp_status.info[i].basic_open = PJ_FALSE; 920 #endif 916 921 } 917 922
Note: See TracChangeset
for help on using the changeset viewer.