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
52 char name[SMDI_MESG_NAME_LEN];
53 char fwd_st[SMDI_MAX_STATION_NUM_LEN + 1];
54 char cause[SMDI_MWI_FAIL_CAUSE_LEN + 1];
55 struct timeval timestamp;
66 char name[SMDI_MESG_NAME_LEN];
67 char mesg_desk_num[SMDI_MESG_DESK_NUM_LEN + 1];
68 char mesg_desk_term[SMDI_MESG_DESK_TERM_LEN + 1];
69 char fwd_st[SMDI_MAX_STATION_NUM_LEN + 1];
70 char calling_st[SMDI_MAX_STATION_NUM_LEN + 1];
72 struct timeval timestamp;
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.
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.
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.
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.
An SMDI message desk message.
struct ast_smdi_mwi_message * ast_smdi_mwi_message_pop(struct ast_smdi_interface *iface)
Get the next SMDI message from the queue.
int ast_smdi_mwi_unset(struct ast_smdi_interface *iface, const char *mailbox)
Unset the MWI indicator for a mailbox.
Asterisk module definitions.
An SMDI message waiting indicator message.