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),
Configuration File Parser.
Asterisk module definitions.
Optional API function macros.
#define AST_OPTIONAL_API(result, name, proto, stub)
Declare an optional API function.
struct ast_smdi_md_message * ast_smdi_md_message_pop(struct ast_smdi_interface *iface)
Get the next SMDI message from the queue.
#define SMDI_MESG_DESK_TERM_LEN
struct ast_smdi_interface * ast_smdi_interface_find(const char *iface_name)
Find an SMDI interface with the specified name.
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.
#define SMDI_MWI_FAIL_CAUSE_LEN
#define SMDI_MESG_DESK_NUM_LEN
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.
int ast_smdi_mwi_set(struct ast_smdi_interface *iface, const char *mailbox)
Set the MWI indicator for a mailbox.
struct ast_smdi_mwi_message * ast_smdi_mwi_message_pop(struct ast_smdi_interface *iface)
Get the next SMDI message from the queue.
#define SMDI_MESG_NAME_LEN
struct ast_smdi_mwi_message * ast_smdi_mwi_message_wait_station(struct ast_smdi_interface *iface, int timeout, const char *station)
int ast_smdi_mwi_unset(struct ast_smdi_interface *iface, const char *mailbox)
Unset the MWI indicator for a mailbox.
#define SMDI_MAX_STATION_NUM_LEN
An SMDI message desk message.
char mesg_desk_term[SMDI_MESG_DESK_TERM_LEN+1]
char name[SMDI_MESG_NAME_LEN]
char calling_st[SMDI_MAX_STATION_NUM_LEN+1]
char mesg_desk_num[SMDI_MESG_DESK_NUM_LEN+1]
char fwd_st[SMDI_MAX_STATION_NUM_LEN+1]
An SMDI message waiting indicator message.
char name[SMDI_MESG_NAME_LEN]
char cause[SMDI_MWI_FAIL_CAUSE_LEN+1]
char fwd_st[SMDI_MAX_STATION_NUM_LEN+1]
Time-related functions and macros.