32 #define ANALOG_SMDI_MD_WAIT_TIMEOUT 1500
33 #define ANALOG_MAX_CID 300
35 #define RING_PATTERNS 3
char cid_name[AST_MAX_EXTENSION]
unsigned int threewaycalling
unsigned int use_callerid
Main Channel structure associated with a channel.
int(*const conf_add)(void *pvt, enum analog_sub sub)
struct ast_smdi_interface * smdi_iface
The SMDI interface to get SMDI messages from.
void(*const answer_polarityswitch)(void *pvt)
Switch FXS line polarity, based on answeronpolarityswitch=yes.
struct ast_party_caller caller
struct timeval polaritydelaytv
void * analog_handle_init_event(struct analog_pvt *i, int event)
int(*const send_fsk)(void *pvt, struct ast_channel *ast, char *fsk)
void(*const set_callwaiting)(void *pvt, int callwaiting_enable)
int analog_hangup(struct analog_pvt *p, struct ast_channel *ast)
char mohsuggest[MAX_MUSICCLASS]
void(*const deadlock_avoidance_private)(void *pvt)
char callwait_name[AST_MAX_EXTENSION]
int(*const off_hook)(void *pvt)
Set channel off hook.
struct analog_pvt * analog_new(enum analog_sigtype signallingtype, struct analog_callback *c, void *private_data)
void(*const swap_subs)(void *pvt, enum analog_sub a, struct ast_channel *new_a_owner, enum analog_sub b, struct ast_channel *new_b_owner)
struct ast_channel * owner
int(*const dial_digits)(void *pvt, enum analog_sub sub, struct analog_dialoperation *dop)
void(*const set_new_owner)(void *pvt, struct ast_channel *new_owner)
void(*const cancel_cidspill)(void *pvt)
void analog_handle_dtmf(struct analog_pvt *p, struct ast_channel *ast, enum analog_sub idx, struct ast_frame **dest)
const char * analog_cidstart_to_str(enum analog_cid_start cid_start)
int(*const conf_del)(void *pvt, enum analog_sub sub)
struct ast_channel * ss_astchan
unsigned int transfertobusy
int(*const start)(void *pvt)
void(*const set_cadence)(void *pvt, int *cidrings, struct ast_channel *chan)
int(*const is_dialing)(void *pvt, enum analog_sub sub)
unsigned int hidecallerid
int(*const confmute)(void *pvt, int mute)
int polarityonanswerdelay
int analog_fixup(struct ast_channel *oldchan, struct ast_channel *newchan, void *newp)
int(*const distinctive_ring)(struct ast_channel *chan, void *pvt, int idx, int *ringdata)
void(*const unlock_private)(void *pvt)
unsigned int use_smdi
TRUE if SMDI (Simplified Message Desk Interface) is enabled.
int(*const get_sub_fd)(void *pvt, enum analog_sub sub)
unsigned int cancallforward
int(*const on_hook)(void *pvt)
Set channel on hook.
void(*const set_pulsedial)(void *pvt, int flag)
struct ast_channel * owner
int(*const wink)(void *pvt, enum analog_sub sub)
int(*const check_for_conference)(void *pvt)
void(*const increase_ss_count)(void)
int(*const have_progressdetect)(void *pvt)
struct ast_channel *(*const new_ast_channel)(void *pvt, int state, int startpbx, enum analog_sub sub, const struct ast_channel *requestor)
int(*const allocate_sub)(void *pvt, enum analog_sub sub)
enum analog_sigtype sigtype
void(*const set_polarity)(void *pvt, int value)
Set FXS line polarity to 0=IDLE NZ=REVERSED.
General Asterisk PBX channel definitions.
int(*const set_echocanceller)(void *pvt, int enable)
Asterisk internal frame definitions.
int(*const send_callerid)(void *pvt, int cwcid, struct ast_party_caller *caller)
void(*const set_inthreeway)(void *pvt, enum analog_sub sub, int inthreeway)
#define AST_MAX_EXTENSION
void(*const set_needringing)(void *pvt, int value)
Caller Party information.
static int cidrings[NUM_CADENCE_MAX]
cidrings says in which pause to transmit the cid information, where the first pause is 1...
int(*const play_tone)(void *pvt, enum analog_sub sub, enum analog_tone tone)
int(*const complete_conference_update)(void *pvt, int needconf)
int analog_available(struct analog_pvt *p)
char callwait_num[AST_MAX_EXTENSION]
int(*const train_echocanceller)(void *pvt)
struct ast_frame * analog_exception(struct analog_pvt *p, struct ast_channel *ast)
void(*const lock_private)(void *pvt)
int analog_call(struct analog_pvt *p, struct ast_channel *ast, char *rdest, int timeout)
int(*const set_linear_mode)(void *pvt, enum analog_sub sub, int linear_mode)
const char * analog_sigtype_to_str(enum analog_sigtype sigtype)
char cid_num[AST_MAX_EXTENSION]
char lastcid_name[AST_MAX_EXTENSION]
struct analog_dialoperation dop
int analog_ss_thread_start(struct analog_pvt *p, struct ast_channel *chan)
void(*const all_subchannels_hungup)(void *pvt)
enum analog_cid_start cid_start
int(*const start_cid_detect)(void *pvt, int cid_signalling)
void(*const hangup_polarityswitch)(void *pvt)
Switch FXS line polarity, based on answeronpolarityswitch and hanguponpolarityswitch.
int analog_config_complete(struct analog_pvt *p)
enum analog_sigtype analog_str_to_sigtype(const char *name)
int(*const stop_cid_detect)(void *pvt)
int analog_answer(struct analog_pvt *p, struct ast_channel *ast)
void *(*const get_sigpvt_bridged_channel)(struct ast_channel *chan)
void analog_free(struct analog_pvt *p)
int(*const has_voicemail)(void *pvt)
void analog_delete(struct analog_pvt *doomed)
Delete the analog private structure.
int(*const check_confirmanswer)(void *pvt)
void(*const get_and_handle_alarms)(void *pvt)
int(*const ring)(void *pvt)
void(*const set_ringtimeout)(void *pvt, int ringt)
int(*const stop_callwait)(void *pvt)
int(*const check_waitingfordt)(void *pvt)
int(*const is_off_hook)(void *pvt)
enum analog_cid_start analog_str_to_cidstart(const char *value)
unsigned int dahditrcallerid
int(*const unallocate_sub)(void *pvt, enum analog_sub sub)
int msgstate
-1 = unknown, 0 = no messages, 1 = new messages available
SMDI support for Asterisk.
unsigned int permhidecallerid
void(*const set_waitingfordt)(void *pvt, struct ast_channel *ast)
int(*const get_callerid)(void *pvt, char *name, char *num, enum analog_event *ev, size_t timeout)
void(*const handle_notify_message)(struct ast_channel *chan, void *pvt, int cid_flags, int neon_mwievent)
void(*const decrease_ss_count)(void)
unsigned int analog_str_to_cidtype(const char *name)
int(*const flash)(void *pvt)
void(*const set_confirmanswer)(void *pvt, int flag)
char call_forward[AST_MAX_EXTENSION]
int(*const callwait)(void *pvt)
unsigned int callwaitingcallerid
int(*const dsp_set_digitmode)(void *pvt, enum analog_dsp_digitmode mode)
char lastcid_num[AST_MAX_EXTENSION]
int(*const wait_event)(void *pvt)
struct analog_callback * calls
void(*const handle_dtmf)(void *pvt, struct ast_channel *ast, enum analog_sub analog_index, struct ast_frame **dest)
Data structure associated with a single frame of data.
enum analog_sigtype outsigmod
const char *(*const get_orig_dialstring)(void *pvt)
void(*const set_dialing)(void *pvt, int is_dialing)
unsigned int callwaitcas
TRUE if Call Waiting (CW) CPE Alert Signal (CAS) is being sent.
int(*const get_event)(void *pvt)
const char * analog_cidtype_to_str(unsigned int cid_type)
struct analog_subchannel subs[3]
unsigned int hanguponpolarityswitch
int(*const dsp_reset_and_flush_digits)(void *pvt)
void(*const start_polarityswitch)(void *pvt)
Reset FXS line polarity to IDLE, based on answeronpolarityswitch and hanguponpolarityswitch.
int analog_dnd(struct analog_pvt *p, int flag)
void(*const set_outgoing)(void *pvt, int is_outgoing)
struct ast_channel * analog_request(struct analog_pvt *p, int *callwait, const struct ast_channel *requestor)
unsigned int permcallwaiting
unsigned int answeronpolarityswitch
void(*const set_alarm)(void *pvt, int in_alarm)