Changeset 3222 for pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
- Timestamp:
- Jun 24, 2010 12:33:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r3217 r3222 778 778 if (*options & PJSIP_INV_REQUIRE_TIMER) 779 779 *options |= PJSIP_INV_SUPPORT_TIMER; 780 if (*options & PJSIP_INV_REQUIRE_ICE) 781 *options |= PJSIP_INV_SUPPORT_ICE; 780 782 781 783 /* Get the message in rdata */ … … 949 951 const pj_str_t STR_100REL = { "100rel", 6}; 950 952 const pj_str_t STR_TIMER = { "timer", 5}; 953 const pj_str_t STR_ICE = { "ice", 3 }; 951 954 952 955 for (i=0; i<sup_hdr->count; ++i) { 953 956 if (pj_stricmp(&sup_hdr->values[i], &STR_100REL)==0) 954 957 rem_option |= PJSIP_INV_SUPPORT_100REL; 955 if (pj_stricmp(&sup_hdr->values[i], &STR_TIMER)==0)958 else if (pj_stricmp(&sup_hdr->values[i], &STR_TIMER)==0) 956 959 rem_option |= PJSIP_INV_SUPPORT_TIMER; 960 else if (pj_stricmp(&sup_hdr->values[i], &STR_ICE)==0) 961 rem_option |= PJSIP_INV_SUPPORT_ICE; 957 962 } 958 963 } … … 966 971 const pj_str_t STR_REPLACES = { "replaces", 8 }; 967 972 const pj_str_t STR_TIMER = { "timer", 5 }; 973 const pj_str_t STR_ICE = { "ice", 3 }; 968 974 unsigned unsupp_cnt = 0; 969 975 pj_str_t unsupp_tags[PJSIP_GENERIC_ARRAY_MAX_COUNT]; … … 987 993 if (!supp) 988 994 unsupp_tags[unsupp_cnt++] = req_hdr->values[i]; 995 } else if ((*options & PJSIP_INV_SUPPORT_ICE) && 996 pj_stricmp(&req_hdr->values[i], &STR_ICE)==0) 997 { 998 rem_option |= PJSIP_INV_REQUIRE_ICE; 989 999 990 1000 } else if (!pjsip_endpt_has_capability(endpt, PJSIP_H_SUPPORTED,
Note: See TracChangeset
for help on using the changeset viewer.