~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to modules/rls/notify.c

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1028
1028
                        uri.len = strlen(uri.s);
1029
1029
                        if (uri.len > MAX_URI_SIZE-1) {
1030
1030
                            LM_ERR("XCAP URI is too long\n");
 
1031
                            xmlFree(uri.s);
1031
1032
                            return -1;
1032
1033
                        }
1033
1034
                        LM_DBG("got resource-list uri <%.*s>\n", uri.len, uri.s);
1036
1037
                        unescaped_uri.len = 0;
1037
1038
                        if (un_escape(&uri, &unescaped_uri) < 0) {
1038
1039
                            LM_ERR("Error un-escaping XCAP URI\n");
 
1040
                            xmlFree(uri.s);
1039
1041
                            return -1;
1040
1042
                        }
1041
1043
                        unescaped_uri.s[unescaped_uri.len] = 0;
1047
1049
                                        && (hostname.len == 0
1048
1050
                                                || check_self(&hostname, 0, PROTO_NONE) == 1))
1049
1051
                                {
1050
 
                                        LM_DBG("fetching local <resource-list/>\n");
 
1052
                                        LM_DBG("fetching local <resource-list - %.*s>\n", uri.len, uri.s);
1051
1053
                                        if (rls_get_resource_list(&rl_uri, &username, &domain, &rl_node, &rl_doc)>0)
1052
1054
                                        {
1053
1055
                                                LM_DBG("calling myself for rl_node\n");
1057
1059
                                        }
1058
1060
                                        else
1059
1061
                                        {
1060
 
                                                LM_ERR("<resource-list/> not found\n");
 
1062
                                                LM_ERR("<resource-list - %.*s> not found\n", uri.len, uri.s);
1061
1063
                                                xmlFree(uri.s);
1062
1064
                                                return -1;
1063
1065
                                        }
1065
1067
                                }
1066
1068
                                else
1067
1069
                                {
1068
 
                                        LM_ERR("<resource-list/> is not local - unsupported at this time\n");
 
1070
                                        LM_ERR("<resource-list - %.*s> is not local - unsupported at this time\n", uri.len, uri.s);
1069
1071
                                        xmlFree(uri.s);
1070
1072
                                        return -1;
1071
1073
                                }
1072
1074
                        }
1073
1075
                        else
1074
1076
                        {
1075
 
                                LM_ERR("unable to parse URI for <resource-list/>\n");
 
1077
                                LM_ERR("unable to parse URI for <resource-list - %.*s>\n", uri.len, uri.s);
1076
1078
                                xmlFree(uri.s);
1077
1079
                                return -1;
1078
1080
                        }