31 #ifndef ASTERISK_SMDI_H
32 #define ASTERISK_SMDI_H
42 #define SMDI_MESG_DESK_NUM_LEN 3
43 #define SMDI_MESG_DESK_TERM_LEN 4
44 #define SMDI_MWI_FAIL_CAUSE_LEN 3
45 #define SMDI_MAX_STATION_NUM_LEN 10
46 #define SMDI_MAX_FILENAME_LEN 256
191 (
const char *iface_name),
char fwd_st[SMDI_MAX_STATION_NUM_LEN+1]
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.
char mesg_desk_num[SMDI_MESG_DESK_NUM_LEN+1]
char calling_st[SMDI_MAX_STATION_NUM_LEN+1]
#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.
Configuration File Parser.
#define AST_OPTIONAL_API(result, name, proto, stub)
Define 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.
char cause[SMDI_MWI_FAIL_CAUSE_LEN+1]
#define ASTOBJ_COMPONENTS(type)
Add ASTOBJ components to a struct (with locking support).
int ast_smdi_mwi_set(struct ast_smdi_interface *iface, const char *mailbox)
Set the MWI indicator for a mailbox.
struct ast_smdi_md_message * ast_smdi_md_message_pop(struct ast_smdi_interface *iface)
Get the next SMDI message from the queue.
void ast_smdi_interface_unref(struct ast_smdi_interface *iface)
#define SMDI_MESG_DESK_NUM_LEN
void ast_smdi_md_message_destroy(struct ast_smdi_md_message *msg)
ast_smdi_md_message destructor.
#define SMDI_MESG_DESK_TERM_LEN
An SMDI message desk message.
char mesg_desk_term[SMDI_MESG_DESK_TERM_LEN+1]
A set of macros implementing objects and containers. Macros are used for maximum performance, to support multiple inheritance, and to be easily integrated into existing structures without additional malloc calls, etc.
void ast_smdi_md_message_putback(struct ast_smdi_interface *iface, struct ast_smdi_md_message *msg)
Put an SMDI message back in the front of the queue.
#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]
void ast_smdi_mwi_message_destroy(struct ast_smdi_mwi_message *msg)
ast_smdi_mwi_message destructor.
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.
static char mailbox[AST_MAX_EXTENSION]
void ast_smdi_mwi_message_putback(struct ast_smdi_interface *iface, struct ast_smdi_mwi_message *msg)
Put an SMDI message back in the front of the queue.