summaryrefslogtreecommitdiff
path: root/channels/sig_analog.h
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@digium.com>2009-10-05 19:20:36 +0000
committerJeff Peeler <jpeeler@digium.com>2009-10-05 19:20:36 +0000
commit10e8ee1746180f589f2c86027c989cc9c63366c8 (patch)
tree6bde2878061f8445bb4c6ef7342d53c2000a7c1c /channels/sig_analog.h
parent3cce68d3290c6a31b1b14f23b00f6c04dc1eb727 (diff)
Add a few missing events to analog_handle_event.
The reported bug was actually only for pulsedigit, dtmfup, and dtmfdown handling. Also added recognition for fax events (just some verbose output) and fixed handling for the ec_disabled_event. In order to make comparing the analog version of events to the DAHDI events easier, the ordering has been changed to follow that of the DAHDI events. (closes issue #15924) Reported by: tzafrir git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@222108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sig_analog.h')
-rw-r--r--channels/sig_analog.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/channels/sig_analog.h b/channels/sig_analog.h
index de86662df..5993e9f54 100644
--- a/channels/sig_analog.h
+++ b/channels/sig_analog.h
@@ -65,23 +65,31 @@ enum analog_tone {
enum analog_event {
ANALOG_EVENT_NONE = 0,
- ANALOG_EVENT_DIALCOMPLETE,
- ANALOG_EVENT_WINKFLASH,
ANALOG_EVENT_ONHOOK,
ANALOG_EVENT_RINGOFFHOOK,
+ ANALOG_EVENT_WINKFLASH,
ANALOG_EVENT_ALARM,
ANALOG_EVENT_NOALARM,
- ANALOG_EVENT_HOOKCOMPLETE,
- ANALOG_EVENT_POLARITY,
+ ANALOG_EVENT_DIALCOMPLETE,
ANALOG_EVENT_RINGERON,
ANALOG_EVENT_RINGEROFF,
- ANALOG_EVENT_RINGBEGIN,
+ ANALOG_EVENT_HOOKCOMPLETE,
ANALOG_EVENT_PULSE_START,
- ANALOG_EVENT_ERROR,
+ ANALOG_EVENT_POLARITY,
+ ANALOG_EVENT_RINGBEGIN,
+ ANALOG_EVENT_EC_DISABLED,
ANALOG_EVENT_REMOVED,
ANALOG_EVENT_NEONMWI_ACTIVE,
ANALOG_EVENT_NEONMWI_INACTIVE,
- ANALOG_EVENT_DTMFCID,
+ ANALOG_EVENT_TX_CED_DETECTED,
+ ANALOG_EVENT_RX_CED_DETECTED,
+ ANALOG_EVENT_EC_NLP_DISABLED,
+ ANALOG_EVENT_EC_NLP_ENABLED,
+ ANALOG_EVENT_ERROR, /* not a DAHDI event */
+ ANALOG_EVENT_DTMFCID, /* not a DAHDI event */
+ ANALOG_EVENT_PULSEDIGIT = (1 << 16),
+ ANALOG_EVENT_DTMFDOWN = (1 << 17),
+ ANALOG_EVENT_DTMFUP = (1 << 18),
};
enum analog_sub {
@@ -203,6 +211,8 @@ struct analog_callback {
void (* const set_confirmanswer)(void *pvt, int flag);
int (* const check_confirmanswer)(void *pvt);
void (* const cancel_cidspill)(void *pvt);
+ int (* const confmute)(void *pvt, int mute);
+ void (* const set_pulsedial)(void *pvt, int flag);
};
@@ -279,7 +289,6 @@ struct analog_pvt {
unsigned int echobreak:1;
unsigned int hidecallerid:1;
unsigned int outgoing:1;
- unsigned int pulsedial:1; /*!< TRUE if a pulsed digit was detected. (Pulse dial phone detected) */
char callwait_num[AST_MAX_EXTENSION];
char callwait_name[AST_MAX_EXTENSION];