Module: sip-router
Branch: master
Commit: 139ae7966a0ff8e5e46a902d9e14dc8840934bd0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=139ae79…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jan 24 11:45:31 2013 +0100
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)
---
sr_compat.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/sr_compat.c b/sr_compat.c
index 340dcc3..02e0527 100644
--- a/sr_compat.c
+++ b/sr_compat.c
@@ -31,10 +31,16 @@
#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
#define SR_DEFAULT_COMPAT SR_COMPAT_SER
#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
#define SR_DEFAULT_COMPAT SR_COMPAT_MAX
#else