Changeset 4370
- Timestamp:
- Feb 26, 2013 5:30:00 AM (12 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/pjsip-perf.c
r3664 r4370 220 220 uri = pjsip_uri_get_uri(rdata->msg_info.msg->line.req.uri); 221 221 222 /* Only want to receive SIP scheme */223 if (!PJSIP_URI_SCHEME_IS_SIP(uri) )222 /* Only want to receive SIP/SIPS scheme */ 223 if (!PJSIP_URI_SCHEME_IS_SIP(uri) && !PJSIP_URI_SCHEME_IS_SIPS(uri)) 224 224 return PJ_FALSE; 225 225 … … 281 281 uri = pjsip_uri_get_uri(rdata->msg_info.msg->line.req.uri); 282 282 283 /* Only want to receive SIP scheme */284 if (!PJSIP_URI_SCHEME_IS_SIP(uri) )283 /* Only want to receive SIP/SIPS scheme */ 284 if (!PJSIP_URI_SCHEME_IS_SIP(uri) && !PJSIP_URI_SCHEME_IS_SIPS(uri)) 285 285 return PJ_FALSE; 286 286 … … 418 418 uri = pjsip_uri_get_uri(rdata->msg_info.msg->line.req.uri); 419 419 420 /* Only want to receive SIP scheme */421 if (!PJSIP_URI_SCHEME_IS_SIP(uri) )420 /* Only want to receive SIP/SIPS scheme */ 421 if (!PJSIP_URI_SCHEME_IS_SIP(uri) && !PJSIP_URI_SCHEME_IS_SIPS(uri)) 422 422 return PJ_FALSE; 423 423 -
pjproject/trunk/pjsip-apps/src/samples/proxy.h
r3553 r4370 365 365 366 366 /* 2. URI scheme. 367 * We only want to support "sip:" URI scheme for this simple proxy. 368 */ 369 if (!PJSIP_URI_SCHEME_IS_SIP(rdata->msg_info.msg->line.req.uri)) { 367 * We only want to support "sip:"/"sips:" URI scheme for this simple proxy. 368 */ 369 if (!PJSIP_URI_SCHEME_IS_SIP(rdata->msg_info.msg->line.req.uri) && 370 !PJSIP_URI_SCHEME_IS_SIPS(rdata->msg_info.msg->line.req.uri)) 371 { 370 372 pjsip_endpt_respond_stateless(global.endpt, rdata, 371 373 PJSIP_SC_UNSUPPORTED_URI_SCHEME, NULL, -
pjproject/trunk/pjsip/include/pjsip/sip_uri.h
r3553 r4370 227 227 228 228 /** 229 * This macro checks that the URL is a "sip:" or "sips:"URL.229 * This macro checks that the URL is a "sip:" URL. 230 230 * @param url The URL (pointer to) 231 231 * @return non-zero if TRUE. 232 232 */ 233 233 #define PJSIP_URI_SCHEME_IS_SIP(url) \ 234 (pj_str nicmp2(pjsip_uri_get_scheme(url), "sip", 3)==0)234 (pj_stricmp2(pjsip_uri_get_scheme(url), "sip")==0) 235 235 236 236 /** … … 240 240 */ 241 241 #define PJSIP_URI_SCHEME_IS_SIPS(url) \ 242 (pj_str nicmp2(pjsip_uri_get_scheme(url), "sips", 4)==0)242 (pj_stricmp2(pjsip_uri_get_scheme(url), "sips")==0) 243 243 244 244 /** … … 248 248 */ 249 249 #define PJSIP_URI_SCHEME_IS_TEL(url) \ 250 (pj_str nicmp2(pjsip_uri_get_scheme(url), "tel", 3)==0)250 (pj_stricmp2(pjsip_uri_get_scheme(url), "tel")==0) 251 251 252 252 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r4342 r4370 959 959 pjsip_sip_uri *sip_url; 960 960 if (!PJSIP_URI_SCHEME_IS_SIP(r->name_addr.uri) && 961 !PJSIP_URI_SCHEME_IS_SIP (r->name_addr.uri))961 !PJSIP_URI_SCHEME_IS_SIPS(r->name_addr.uri)) 962 962 { 963 963 status = PJSIP_EINVALIDSCHEME; … … 2841 2841 2842 2842 if (!PJSIP_URI_SCHEME_IS_SIP(uri_obj) && 2843 !PJSIP_URI_SCHEME_IS_SIP (uri_obj))2843 !PJSIP_URI_SCHEME_IS_SIPS(uri_obj)) 2844 2844 { 2845 2845 PJ_LOG(1,(THIS_FILE, "Route URI must be SIP URI: %.*s",
Note: See TracChangeset
for help on using the changeset viewer.