fix channel sig status enum to string converter
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@887 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
c9223883dc
commit
f1eadddd31
|
@ -195,9 +195,11 @@ typedef enum {
|
|||
/* The channel signaling link is suspended (MFC-R2 bit pattern blocked, ss7 blocked?) */
|
||||
ZAP_SIG_STATE_SUSPENDED,
|
||||
/* The channel signaling link is ready and calls can be placed */
|
||||
ZAP_SIG_STATE_UP
|
||||
ZAP_SIG_STATE_UP,
|
||||
/* Invalid status */
|
||||
ZAP_SIG_STATE_INVALID
|
||||
} zap_channel_sig_status_t;
|
||||
#define SIGSTATUS_STRINGS "DOWN", "SUSPENDED", "UP"
|
||||
#define SIGSTATUS_STRINGS "DOWN", "SUSPENDED", "UP", "INVALID"
|
||||
ZAP_STR2ENUM_P(zap_str2zap_channel_sig_status, zap_sig_status2str, zap_channel_sig_status_t)
|
||||
|
||||
typedef enum {
|
||||
|
|
|
@ -114,6 +114,8 @@ ZAP_STR2ENUM(zap_str2zap_mdmf_type, zap_mdmf_type2str, zap_mdmf_type_t, MDMF_TYP
|
|||
ZAP_ENUM_NAMES(CHAN_TYPE_NAMES, CHAN_TYPE_STRINGS)
|
||||
ZAP_STR2ENUM(zap_str2zap_chan_type, zap_chan_type2str, zap_chan_type_t, CHAN_TYPE_NAMES, ZAP_CHAN_TYPE_COUNT)
|
||||
|
||||
ZAP_ENUM_NAMES(CHAN_SIG_STATUS_NAMES, SIGSTATUS_STRINGS)
|
||||
ZAP_STR2ENUM(zap_str2zap_channel_sig_status, zap_sig_status2str, zap_channel_sig_status_t, CHAN_SIG_STATUS_NAMES, ZAP_SIG_STATE_INVALID)
|
||||
|
||||
static const char *cut_path(const char *in)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue