Ignore:
Timestamp:
Feb 20, 2017 1:29:21 AM (8 years ago)
Author:
ming
Message:

Closed #1998: Add API pjsip_evsub_set_uas_timeout()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub.c

    r5397 r5558  
    510510    } 
    511511 
    512     if (timer_id != TIMER_TYPE_NONE) { 
     512    if (timer_id != TIMER_TYPE_NONE && seconds > 0) { 
    513513        pj_time_val timeout; 
    514514 
    515         PJ_ASSERT_ON_FAIL(seconds > 0, return); 
    516515        PJ_ASSERT_ON_FAIL(timer_id>TIMER_TYPE_NONE && timer_id<TIMER_TYPE_MAX, 
    517516                          return); 
     
    527526                  timer_names[sub->timer.id], timeout.sec)); 
    528527    } 
     528} 
     529 
     530 
     531/* 
     532 * Set event subscription UAS timout. 
     533 */ 
     534PJ_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); 
    529537} 
    530538 
Note: See TracChangeset for help on using the changeset viewer.