27 #ifndef ASTERISK_SMDI_H 28 #define ASTERISK_SMDI_H 37 #define SMDI_MESG_NAME_LEN 80 38 #define SMDI_MESG_DESK_NUM_LEN 3 39 #define SMDI_MESG_DESK_TERM_LEN 4 40 #define SMDI_MWI_FAIL_CAUSE_LEN 3 41 #define SMDI_MAX_STATION_NUM_LEN 10 42 #define SMDI_MAX_FILENAME_LEN 256 155 (
const char *iface_name),
Optional API function macros.
Time-related functions and macros.
struct ast_smdi_mwi_message * ast_smdi_mwi_message_wait(struct ast_smdi_interface *iface, int timeout)
Get the next SMDI message from the queue.
#define SMDI_MAX_STATION_NUM_LEN
struct ast_smdi_interface * ast_smdi_interface_find(const char *iface_name)
Find an SMDI interface with the specified name.
#define AST_OPTIONAL_API(result, name, proto, stub)
Declare an optional API function.
char name[SMDI_MESG_NAME_LEN]
struct ast_smdi_md_message * ast_smdi_md_message_wait(struct ast_smdi_interface *iface, int timeout)
Get the next SMDI message from the queue.
char cause[SMDI_MWI_FAIL_CAUSE_LEN+1]
int ast_smdi_mwi_set(struct ast_smdi_interface *iface, const char *mailbox)
Set the MWI indicator for a mailbox.
Configuration File Parser.
struct ast_smdi_md_message * ast_smdi_md_message_pop(struct ast_smdi_interface *iface)
Get the next SMDI message from the queue.
static char mailbox[AST_MAX_MAILBOX_UNIQUEID]
#define SMDI_MESG_DESK_NUM_LEN
#define SMDI_MESG_DESK_TERM_LEN
#define SMDI_MESG_NAME_LEN
An SMDI message desk message.
#define SMDI_MWI_FAIL_CAUSE_LEN
struct ast_smdi_mwi_message * ast_smdi_mwi_message_pop(struct ast_smdi_interface *iface)
Get the next SMDI message from the queue.
char fwd_st[SMDI_MAX_STATION_NUM_LEN+1]
int ast_smdi_mwi_unset(struct ast_smdi_interface *iface, const char *mailbox)
Unset the MWI indicator for a mailbox.
struct ast_smdi_mwi_message * ast_smdi_mwi_message_wait_station(struct ast_smdi_interface *iface, int timeout, const char *station)
Asterisk module definitions.
An SMDI message waiting indicator message.