Răsfoiți Sursa

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 12 ani în urmă
părinte
comite
139ae7966a
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      sr_compat.c

+ 7 - 1
sr_compat.c

@@ -31,10 +31,16 @@
 
 
 #include "sr_compat.h"
 #include "sr_compat.h"
 
 
+/**
+ * compatibility modes:
+ *  - SR_COMPAT_SER - strict compatibiliy with ser ($xy is avp)
+ *  - SR_COMPAT_KAMAILIO - strict compatibiliy with kamailio ($xy is pv)
+ *  - SR_COMPAT_MAX - max compatibiliy ($xy tried as pv, if not found, is avp)
+ */
 #ifdef SR_SER
 #ifdef SR_SER
 #define SR_DEFAULT_COMPAT SR_COMPAT_SER
 #define SR_DEFAULT_COMPAT SR_COMPAT_SER
 #elif defined SR_KAMAILIO || defined SR_OPENSER
 #elif defined SR_KAMAILIO || defined SR_OPENSER
-#define SR_DEFAULT_COMPAT SR_COMPAT_KAMAILIO
+#define SR_DEFAULT_COMPAT SR_COMPAT_MAX
 #elif defined SR_ALL || defined SR_MAX_COMPAT
 #elif defined SR_ALL || defined SR_MAX_COMPAT
 #define SR_DEFAULT_COMPAT SR_COMPAT_MAX
 #define SR_DEFAULT_COMPAT SR_COMPAT_MAX
 #else
 #else