Changeset 2147 for pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
- Timestamp:
- Jul 16, 2008 10:39:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
r2131 r2147 249 249 /* Static vars. */ 250 250 static const pj_str_t STR_EVENT = { "Event", 5 }; 251 static const pj_str_t STR_EVENT_S = { "Event", 5 }; 251 252 static const pj_str_t STR_SUB_STATE = { "Subscription-State", 18 }; 252 253 static const pj_str_t STR_TERMINATED = { "terminated", 10 }; … … 833 834 */ 834 835 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); 836 838 if (event_hdr == NULL) { 837 839 return PJSIP_ERRNO_FROM_SIP_STATUS(PJSIP_SC_BAD_REQUEST); … … 1298 1300 1299 1301 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); 1301 1304 if (!event_hdr) { 1302 1305 /* Not subscription related message */ … … 1872 1875 */ 1873 1876 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); 1875 1879 expires = (pjsip_expires_hdr*) 1876 1880 pjsip_msg_find_hdr(msg, PJSIP_H_EXPIRES, NULL);
Note: See TracChangeset
for help on using the changeset viewer.