Changeset 3441 for pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c
- Timestamp:
- Mar 15, 2011 3:20:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c
r3223 r3441 38 38 39 39 #define REFRESH_TIMER 1 40 #define DELAY_BEFORE_REFRESH 40 #define DELAY_BEFORE_REFRESH PJSIP_REGISTER_CLIENT_DELAY_BEFORE_REFRESH 41 41 #define THIS_FILE "sip_reg.c" 42 42 … … 88 88 pjsip_expires_hdr *expires_hdr; 89 89 pj_uint32_t expires; 90 pj_uint32_t delay_before_refresh; 90 91 pjsip_route_hdr route_set; 91 92 pjsip_hdr hdr_list; … … 376 377 /* Set "Expires" header, if required. */ 377 378 set_expires( regc, expires); 379 regc->delay_before_refresh = DELAY_BEFORE_REFRESH; 378 380 379 381 /* Set "Call-ID" header. */ … … 387 389 388 390 /* Done. */ 391 return PJ_SUCCESS; 392 } 393 394 PJ_DEF(pj_status_t) 395 pjsip_regc_set_delay_before_refresh( pjsip_regc *regc, 396 pj_uint32_t delay ) 397 { 398 PJ_ASSERT_RETURN(regc, PJ_EINVAL); 399 regc->delay_before_refresh = delay; 389 400 return PJ_SUCCESS; 390 401 } … … 1120 1131 pj_time_val delay = { 0, 0}; 1121 1132 1122 delay.sec = expiration - DELAY_BEFORE_REFRESH;1133 delay.sec = expiration - regc->delay_before_refresh; 1123 1134 if (regc->expires != PJSIP_REGC_EXPIRATION_NOT_SPECIFIED && 1124 1135 delay.sec > (pj_int32_t)regc->expires)
Note: See TracChangeset
for help on using the changeset viewer.