Module: kamailio
Branch: master
Commit: 06e36989b2c5332b3ca377ec8098d8f2d953a5b6
URL:
https://github.com/kamailio/kamailio/commit/06e36989b2c5332b3ca377ec8098d8f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-08-26T13:56:59+02:00
core: keep info about aor being considered case sensitive or not
---
Modified: dset.c
Modified: dset.h
---
Diff:
https://github.com/kamailio/kamailio/commit/06e36989b2c5332b3ca377ec8098d8f…
Patch:
https://github.com/kamailio/kamailio/commit/06e36989b2c5332b3ca377ec8098d8f…
---
diff --git a/dset.c b/dset.c
index 46cc40d..314b2c5 100644
--- a/dset.c
+++ b/dset.c
@@ -893,3 +893,22 @@ int uri_restore_rcv_alias(str *uri, str *nuri, str *suri)
return 0;
}
+
+/* address of record (aor) management */
+
+/* address of record considered case sensitive
+ * - 0 = no; 1 = yes */
+static int aor_case_sensitive=0;
+
+int set_aor_case_sensitive(int mode)
+{
+ int r;
+ r = aor_case_sensitive;
+ aor_case_sensitive = mode;
+ return r;
+}
+
+int get_aor_case_sensitive(void)
+{
+ return aor_case_sensitive;
+}
diff --git a/dset.h b/dset.h
index 752450f..603b202 100644
--- a/dset.h
+++ b/dset.h
@@ -258,4 +258,8 @@ int uri_restore_rcv_alias(str *uri, str *nuri, str *suri);
int init_dst_set(void);
+int set_aor_case_sensitive(int mode);
+
+int get_aor_case_sensitive(void);
+
#endif /* _DSET_H */