Browse code

core: default compatibility set to SR_COMPAT_MAX

- means that $xy is tried first as pv and if not, then is considered avp
(was default compat mode for default flavour in the past)
- you can still use:
- #!KAMAILIO in config to force SR_COMPAT_KAMAILIO (i.e., $xy must
be a pv, otherwise is error)
- #!SER is config to force SR_COMPAT_SER (i.e., $xy is avp/attr)

Daniel-Constantin Mierla authored on 24/01/2013 10:45:31
Showing 1 changed files
... ...
@@ -31,10 +31,16 @@
31 31
 
32 32
 #include "sr_compat.h"
33 33
 
34
+/**
35
+ * compatibility modes:
36
+ *  - SR_COMPAT_SER - strict compatibiliy with ser ($xy is avp)
37
+ *  - SR_COMPAT_KAMAILIO - strict compatibiliy with kamailio ($xy is pv)
38
+ *  - SR_COMPAT_MAX - max compatibiliy ($xy tried as pv, if not found, is avp)
39
+ */
34 40
 #ifdef SR_SER
35 41
 #define SR_DEFAULT_COMPAT SR_COMPAT_SER
36 42
 #elif defined SR_KAMAILIO || defined SR_OPENSER
37
-#define SR_DEFAULT_COMPAT SR_COMPAT_KAMAILIO
43
+#define SR_DEFAULT_COMPAT SR_COMPAT_MAX
38 44
 #elif defined SR_ALL || defined SR_MAX_COMPAT
39 45
 #define SR_DEFAULT_COMPAT SR_COMPAT_MAX
40 46
 #else