瀏覽代碼

xcap_server: support parsing oma pres-rules auid

Daniel-Constantin Mierla 15 年之前
父節點
當前提交
2bc4838464
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      modules_k/xcap_server/xcap_misc.c

+ 4 - 0
modules_k/xcap_server/xcap_misc.c

@@ -133,6 +133,10 @@ int xcap_parse_uri(str *huri, str *xroot, xcap_uri_t *xuri)
 		LM_DBG("matched pres-rules\n");
 		xuri->type = PRES_RULES;
 		xuri->auid.len = 10;
+	} else if(s.len>34 && strncmp(s.s, "org.openmobilealliance.pres-rules/", 34)==0) {
+		LM_DBG("matched oma pres-rules\n");
+		xuri->type = PRES_RULES;
+		xuri->auid.len = 33;
 	} else if(s.len>13 && strncmp(s.s, "rls-services/", 13)==0) {
 		LM_DBG("matched rls-services\n");
 		xuri->type = RLS_SERVICE;