Changeset 2147


Ignore:
Timestamp:
Jul 16, 2008 10:39:45 PM (11 years ago)
Author:
bennylp
Message:

Ticket #573: Handle receiving short version of Event header

File:
1 edited

Legend:

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

    r2131 r2147  
    249249/* Static vars. */ 
    250250static const pj_str_t STR_EVENT      = { "Event", 5 }; 
     251static const pj_str_t STR_EVENT_S    = { "Event", 5 }; 
    251252static const pj_str_t STR_SUB_STATE  = { "Subscription-State", 18 }; 
    252253static const pj_str_t STR_TERMINATED = { "terminated", 10 }; 
     
    833834     */ 
    834835    event_hdr = (pjsip_event_hdr*)  
    835         pjsip_msg_find_hdr_by_name(rdata->msg_info.msg, &STR_EVENT, NULL); 
     836                 pjsip_msg_find_hdr_by_names(rdata->msg_info.msg, &STR_EVENT, 
     837                                             &STR_EVENT_S, NULL); 
    836838    if (event_hdr == NULL) { 
    837839        return PJSIP_ERRNO_FROM_SIP_STATUS(PJSIP_SC_BAD_REQUEST); 
     
    12981300 
    12991301    event_hdr = (pjsip_event_hdr*) 
    1300                 pjsip_msg_find_hdr_by_name(msg, &STR_EVENT, NULL); 
     1302                pjsip_msg_find_hdr_by_names(msg, &STR_EVENT,  
     1303                                            &STR_EVENT_S, NULL); 
    13011304    if (!event_hdr) { 
    13021305        /* Not subscription related message */ 
     
    18721875         */ 
    18731876        event_hdr = (pjsip_event_hdr*) 
    1874                     pjsip_msg_find_hdr_by_name(msg, &STR_EVENT, NULL); 
     1877                    pjsip_msg_find_hdr_by_names(msg, &STR_EVENT,  
     1878                                                &STR_EVENT, NULL); 
    18751879        expires = (pjsip_expires_hdr*) 
    18761880                  pjsip_msg_find_hdr(msg, PJSIP_H_EXPIRES, NULL); 
Note: See TracChangeset for help on using the changeset viewer.