Ignore:
Timestamp:
Feb 19, 2006 3:37:19 PM (18 years ago)
Author:
bennylp
Message:

SIMPLE test with FWD, and added more info in UI

File:
1 edited

Legend:

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

    r198 r201  
    128128    TIMER_TYPE_UAC_WAIT_NOTIFY, 
    129129 
     130    /* Max nb of timer types. */ 
     131    TIMER_TYPE_MAX 
    130132}; 
    131133 
     
    137139    "UAC_TERMINATE", 
    138140    "UAC_WAIT_NOTIFY", 
     141    "INVALID_TIMER" 
    139142}; 
    140143 
     
    250253{ 
    251254    pj_status_t status; 
     255    pj_str_t method_tags[] = { 
     256        { "SUBSCRIBE", 9}, 
     257        { "NOTIFY", 6} 
     258    }; 
    252259 
    253260    PJ_ASSERT_RETURN(endpt != NULL, PJ_EINVAL); 
     
    276283    pjsip_evsub_init_parser(); 
    277284 
     285    /* Register new methods SUBSCRIBE and NOTIFY in Allow-ed header */ 
     286    pjsip_endpt_add_capability(endpt, &mod_evsub.mod, PJSIP_H_ALLOW, NULL, 
     287                               2, method_tags); 
     288 
     289    /* Done. */ 
    278290    return PJ_SUCCESS; 
    279291 
     
    437449 
    438450        PJ_ASSERT_ON_FAIL(seconds > 0, return); 
     451        PJ_ASSERT_ON_FAIL(timer_id>TIMER_TYPE_NONE && timer_id<TIMER_TYPE_MAX, 
     452                          return); 
    439453 
    440454        timeout.sec = seconds; 
Note: See TracChangeset for help on using the changeset viewer.