Changeset 4082 for pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
- Timestamp:
- Apr 24, 2012 1:09:14 PM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
/pjproject/branches/1.x merged: 4063-4067,4074,4079
- Property svn:mergeinfo changed
-
pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
r3753 r4082 1819 1819 pjsip_tx_data *tdata; 1820 1820 pj_status_t status; 1821 int next_refresh;1822 1821 1823 1822 /* Only want to handle initial NOTIFY receive event. */ … … 1899 1898 pj_stricmp(&sub_state->sub_state, &STR_PENDING)==0)) 1900 1899 { 1901 next_refresh = sub_state->expires_param; 1902 1903 } else { 1904 next_refresh = sub->expires->ivalue; 1905 } 1906 1907 /* Update time */ 1908 update_expires(sub, next_refresh); 1909 1910 /* Start UAC refresh timer, only when we're not unsubscribing */ 1911 if (sub->expires->ivalue != 0) { 1912 unsigned timeout = (next_refresh > TIME_UAC_REFRESH) ? 1913 next_refresh - TIME_UAC_REFRESH : next_refresh; 1900 int next_refresh = sub_state->expires_param; 1901 unsigned timeout; 1902 1903 update_expires(sub, next_refresh); 1904 1905 /* Start UAC refresh timer, only when we're not unsubscribing */ 1906 timeout = (next_refresh > TIME_UAC_REFRESH) ? 1907 next_refresh - TIME_UAC_REFRESH : next_refresh; 1914 1908 1915 1909 PJ_LOG(5,(sub->obj_name, "Will refresh in %d seconds", timeout));
Note: See TracChangeset
for help on using the changeset viewer.