mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
put the constants for whether methods can create a dialog or not in an enum
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@45764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -338,16 +338,18 @@ enum sipregistrystate {
|
|||||||
REG_STATE_FAILED, /*!< Registration failed after several tries */
|
REG_STATE_FAILED, /*!< Registration failed after several tries */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define CAN_NOT_CREATE_DIALOG 0
|
enum can_create_dialog {
|
||||||
#define CAN_CREATE_DIALOG 1
|
CAN_NOT_CREATE_DIALOG,
|
||||||
#define CAN_CREATE_DIALOG_UNSUPPORTED_METHOD 2
|
CAN_CREATE_DIALOG,
|
||||||
|
CAN_CREATE_DIALOG_UNSUPPORTED_METHOD,
|
||||||
|
};
|
||||||
|
|
||||||
/*! XXX Note that sip_methods[i].id == i must hold or the code breaks */
|
/*! XXX Note that sip_methods[i].id == i must hold or the code breaks */
|
||||||
static const struct cfsip_methods {
|
static const struct cfsip_methods {
|
||||||
enum sipmethod id;
|
enum sipmethod id;
|
||||||
int need_rtp; /*!< when this is the 'primary' use for a pvt structure, does it need RTP? */
|
int need_rtp; /*!< when this is the 'primary' use for a pvt structure, does it need RTP? */
|
||||||
char * const text;
|
char * const text;
|
||||||
int can_create;
|
enum can_create_dialog can_create;
|
||||||
} sip_methods[] = {
|
} sip_methods[] = {
|
||||||
{ SIP_UNKNOWN, RTP, "-UNKNOWN-", CAN_CREATE_DIALOG },
|
{ SIP_UNKNOWN, RTP, "-UNKNOWN-", CAN_CREATE_DIALOG },
|
||||||
{ SIP_RESPONSE, NO_RTP, "SIP/2.0", CAN_NOT_CREATE_DIALOG },
|
{ SIP_RESPONSE, NO_RTP, "SIP/2.0", CAN_NOT_CREATE_DIALOG },
|
||||||
|
Reference in New Issue
Block a user