Module: sip-router Branch: master Commit: 2bc4838464d79016bbb6d606ae39378871c1ed82 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2bc48384...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Mon Sep 27 22:02:42 2010 +0200
xcap_server: support parsing oma pres-rules auid
---
modules_k/xcap_server/xcap_misc.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules_k/xcap_server/xcap_misc.c b/modules_k/xcap_server/xcap_misc.c index 103d218..16a403d 100644 --- a/modules_k/xcap_server/xcap_misc.c +++ b/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;