diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-20 15:54:14 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-20 15:54:14 +0000 |
commit | dbd3fe7af39b26e68cc01e32fe72ab255cc10d84 (patch) | |
tree | 03c24d2d433d8fe9fbbdffacb83908ac783c32d6 | |
parent | 5e167d54c89204e5d70388e67d18cd0fc15709d8 (diff) |
put the constants for whether methods can create a dialog or not in an enum
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45764 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fd6f51ee3..b8cd93031 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -338,16 +338,18 @@ enum sipregistrystate { REG_STATE_FAILED, /*!< Registration failed after several tries */ }; -#define CAN_NOT_CREATE_DIALOG 0 -#define CAN_CREATE_DIALOG 1 -#define CAN_CREATE_DIALOG_UNSUPPORTED_METHOD 2 +enum can_create_dialog { + CAN_NOT_CREATE_DIALOG, + CAN_CREATE_DIALOG, + CAN_CREATE_DIALOG_UNSUPPORTED_METHOD, +}; /*! XXX Note that sip_methods[i].id == i must hold or the code breaks */ static const struct cfsip_methods { enum sipmethod id; int need_rtp; /*!< when this is the 'primary' use for a pvt structure, does it need RTP? */ char * const text; - int can_create; + enum can_create_dialog can_create; } sip_methods[] = { { SIP_UNKNOWN, RTP, "-UNKNOWN-", CAN_CREATE_DIALOG }, { SIP_RESPONSE, NO_RTP, "SIP/2.0", CAN_NOT_CREATE_DIALOG }, |