summaryrefslogtreecommitdiff
path: root/pbx/pbx_dundi.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-10-12 16:51:31 +0000
committerRussell Bryant <russell@russellbryant.com>2006-10-12 16:51:31 +0000
commitfef9ec96c7c9ace3726a3b173f3b3b240246a6ed (patch)
treeca523c0d18024a126af45c730c9726b7da77f29c /pbx/pbx_dundi.c
parent886059d1117d2b5f7c3346ba4d79f47ba7f612fc (diff)
put flags in an enum and remove a couple of unused defines
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_dundi.c')
-rw-r--r--pbx/pbx_dundi.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index 241cc5d4d..dba8607d5 100644
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -86,13 +86,15 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
/*! Keep times of last 10 lookups */
#define DUNDI_TIMING_HISTORY 10
-#define FLAG_ISREG (1 << 0) /*!< Transaction is register request */
-#define FLAG_DEAD (1 << 1) /*!< Transaction is dead */
-#define FLAG_FINAL (1 << 2) /*!< Transaction has final message sent */
-#define FLAG_ISQUAL (1 << 3) /*!< Transaction is a qualification */
-#define FLAG_ENCRYPT (1 << 4) /*!< Transaction is encrypted wiht ECX/DCX */
-#define FLAG_SENDFULLKEY (1 << 5) /*!< Send full key on transaction */
-#define FLAG_STOREHIST (1 << 6) /*!< Record historic performance */
+enum {
+ FLAG_ISREG = (1 << 0), /*!< Transaction is register request */
+ FLAG_DEAD = (1 << 1), /*!< Transaction is dead */
+ FLAG_FINAL = (1 << 2), /*!< Transaction has final message sent */
+ FLAG_ISQUAL = (1 << 3), /*!< Transaction is a qualification */
+ FLAG_ENCRYPT = (1 << 4), /*!< Transaction is encrypted wiht ECX/DCX */
+ FLAG_SENDFULLKEY = (1 << 5), /*!< Send full key on transaction */
+ FLAG_STOREHIST = (1 << 6), /*!< Record historic performance */
+};
#define DUNDI_FLAG_INTERNAL_NOPARTIAL (1 << 17)
@@ -102,9 +104,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#define DUNDI_SECRET_TIME DUNDI_DEFAULT_CACHE_TIME
#endif
-#define KEY_OUT 0
-#define KEY_IN 1
-
static struct io_context *io;
static struct sched_context *sched;
static int netsocket = -1;