Module: kamailio
Branch: master
Commit: 0135d9a38a78c20090a92e947c2acc57c05b57fd
URL:
https://github.com/kamailio/kamailio/commit/0135d9a38a78c20090a92e947c2acc5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-05-02T09:09:35+02:00
core: kemi - added identifier for int-str type
- useful for dumping attributes for special kemi functions
---
Modified: kemi.c
Modified: kemi.h
---
Diff:
https://github.com/kamailio/kamailio/commit/0135d9a38a78c20090a92e947c2acc5…
Patch:
https://github.com/kamailio/kamailio/commit/0135d9a38a78c20090a92e947c2acc5…
---
diff --git a/kemi.c b/kemi.c
index d32843f..5052885 100644
--- a/kemi.c
+++ b/kemi.c
@@ -1027,10 +1027,11 @@ typedef struct sr_kemi_param_map {
*
*/
static sr_kemi_param_map_t _sr_kemi_param_map[] = {
- { SR_KEMIP_NONE, str_init("none") },
- { SR_KEMIP_INT, str_init("int") },
- { SR_KEMIP_STR, str_init("str") },
- { SR_KEMIP_BOOL, str_init("bool") },
+ { SR_KEMIP_NONE, str_init("none") },
+ { SR_KEMIP_INT, str_init("int") },
+ { SR_KEMIP_STR, str_init("str") },
+ { SR_KEMIP_BOOL, str_init("bool") },
+ { SR_KEMIP_INTSTR, str_init("int-str") },
{ 0, STR_NULL }
};
diff --git a/kemi.h b/kemi.h
index 0671518..f98448e 100644
--- a/kemi.h
+++ b/kemi.h
@@ -30,6 +30,7 @@
#define SR_KEMIP_INT (1<<0) /* type integer */
#define SR_KEMIP_STR (1<<1) /* type str* */
#define SR_KEMIP_BOOL (1<<2) /* type boolean (0/1) */
+#define SR_KEMIP_INTSTR (1<<3) /* type integer or str* */
#define SR_KEMI_FALSE 0
#define SR_KEMI_TRUE 1