- Timestamp:
- Feb 20, 2017 1:29:21 AM (8 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip-simple/evsub.h
r5397 r5558 512 512 513 513 514 /** 515 * Sets, resets, or cancels the UAS subscription timeout. 516 * If there is an existing timer, it is cancelled before any 517 * other action. A timeout of 0 is ignored except that any 518 * existing timer is cancelled. 519 * 520 * @param sub The server subscription instance. 521 * @param seconds The new timeout. 522 */ 523 PJ_DEF(void) pjsip_evsub_uas_set_timeout(pjsip_evsub *sub, 524 pj_uint32_t seconds); 525 514 526 515 527 PJ_END_DECL -
pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
r5397 r5558 510 510 } 511 511 512 if (timer_id != TIMER_TYPE_NONE ) {512 if (timer_id != TIMER_TYPE_NONE && seconds > 0) { 513 513 pj_time_val timeout; 514 514 515 PJ_ASSERT_ON_FAIL(seconds > 0, return);516 515 PJ_ASSERT_ON_FAIL(timer_id>TIMER_TYPE_NONE && timer_id<TIMER_TYPE_MAX, 517 516 return); … … 527 526 timer_names[sub->timer.id], timeout.sec)); 528 527 } 528 } 529 530 531 /* 532 * Set event subscription UAS timout. 533 */ 534 PJ_DEF(void) pjsip_evsub_uas_set_timeout(pjsip_evsub *sub, pj_uint32_t seconds) 535 { 536 set_timer(sub, TIMER_TYPE_UAS_TIMEOUT, (pj_int32_t)seconds); 529 537 } 530 538 -
pjproject/trunk/pjsip/src/pjsip-simple/evsub_msg.c
r4537 r5558 180 180 if (hdr->retry_after >= 0) { 181 181 pj_memcpy(p, ";retry-after=", 13); 182 p += 9;182 p += 13; 183 183 printed = pj_utoa(hdr->retry_after, p); 184 184 p += printed;
Note: See TracChangeset
for help on using the changeset viewer.