Browse code

core: keep info about aor being considered case sensitive or not

Daniel-Constantin Mierla authored on 26/08/2015 11:47:13
Showing 2 changed files
... ...
@@ -893,3 +893,22 @@ int uri_restore_rcv_alias(str *uri, str *nuri, str *suri)
893 893
 
894 894
 	return 0;
895 895
 }
896
+
897
+/* address of record (aor) management */
898
+
899
+/* address of record considered case sensitive
900
+ * - 0 = no; 1 = yes */
901
+static int aor_case_sensitive=0;
902
+
903
+int set_aor_case_sensitive(int mode)
904
+{
905
+	int r;
906
+	r = aor_case_sensitive;
907
+	aor_case_sensitive = mode;
908
+	return r;
909
+}
910
+
911
+int get_aor_case_sensitive(void)
912
+{
913
+	return aor_case_sensitive;
914
+}
... ...
@@ -258,4 +258,8 @@ int uri_restore_rcv_alias(str *uri, str *nuri, str *suri);
258 258
 
259 259
 int init_dst_set(void);
260 260
 
261
+int set_aor_case_sensitive(int mode);
262
+
263
+int get_aor_case_sensitive(void);
264
+
261 265
 #endif /* _DSET_H */