Changeset 6035 for pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
- Timestamp:
- Jul 1, 2019 7:12:43 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
r5917 r6035 500 500 */ 501 501 static void set_timer( pjsip_evsub *sub, int timer_id, 502 pj_ int32_t seconds)502 pj_uint32_t seconds) 503 503 { 504 504 if (sub->timer.id != TIMER_TYPE_NONE) { … … 510 510 } 511 511 512 if (timer_id != TIMER_TYPE_NONE && seconds > 0) { 512 if (timer_id != TIMER_TYPE_NONE && seconds != PJSIP_EXPIRES_NOT_SPECIFIED) 513 { 513 514 pj_time_val timeout; 514 515 … … 1069 1070 PJ_DEF(pj_status_t) pjsip_evsub_initiate( pjsip_evsub *sub, 1070 1071 const pjsip_method *method, 1071 pj_ int32_t expires,1072 pj_uint32_t expires, 1072 1073 pjsip_tx_data **p_tdata) 1073 1074 { … … 1097 1098 1098 1099 /* Update and add expires header: */ 1099 if (expires >= 0)1100 if (expires != PJSIP_EXPIRES_NOT_SPECIFIED) 1100 1101 sub->expires->ivalue = expires; 1101 1102 pjsip_msg_add_hdr( tdata->msg, (pjsip_hdr*) … … 1997 1998 */ 1998 1999 if (sub->expires->ivalue != 0 && 1999 sub_state->expires_param >= 0&&2000 sub_state->expires_param != PJSIP_EXPIRES_NOT_SPECIFIED && 2000 2001 (pj_stricmp(&sub_state->sub_state, &STR_ACTIVE)==0 || 2001 2002 pj_stricmp(&sub_state->sub_state, &STR_PENDING)==0)) 2002 2003 { 2003 intnext_refresh = sub_state->expires_param;2004 unsigned next_refresh = sub_state->expires_param; 2004 2005 unsigned timeout; 2005 2006 … … 2100 2101 evpkg = find_pkg(&event_hdr->event_type); 2101 2102 if (evpkg) { 2102 if (expires->ivalue < (pj_int32_t)evpkg->pkg_expires)2103 if (expires->ivalue < evpkg->pkg_expires) 2103 2104 sub->expires->ivalue = expires->ivalue; 2104 2105 else
Note: See TracChangeset
for help on using the changeset viewer.