Professional Documents
Culture Documents
WANPIPE EC API Interface: Author: Alex Feldman
WANPIPE EC API Interface: Author: Alex Feldman
Version 0.3
wan_custom_param_t structure
name Array, char[MAX_PARAM_LEN+1]
Name of custom parameter
sValue Array, char[MAX_VALUE_LEN+1]
Pointer to the buffer that include string value of parameter
dValue u_int32_t
Integer value of custom parameter
wan_custom_conf_t structure
param_no unsigned int
Number of parameters in a list
params wan_custom_param_t*
WANPIPE EC API functions
wanec_api_config()
wanec_api_release()
wanec_api_mode()
wanec_api_bypass()
wanec_api_opmode()
wanec_api_modify()
wanec_api_mute()
wanec_api_dtmf()
wanec_api_stats()
wanec_api_buffer_load()
wanec_api_buffer_unload()
wanec_api_playout()
wanec_api_monitor()
Start/Stop monitoring the selected channel by EC chip. This function should be called
twice. First time, the function should be called with specific channel to be monitored.
Second time, the function should called with channel parameter set to 0 in order to
retrieve the monitored data and at least 2 minutes after first call in order to have
enough data. The name of generated file is
wan_ec_<wanpipe_device>_chan<fe_chan>_<date>_<time>.bin.
Usage
int wanec_api_monitor(
char *devname,
int verbose,
wanec_api_monitor_t *monitor);
Parameters
devname Sangoma wanpipe device name (like wanpipe1 or wanpipe2).
verbose Verbose mode [0|1|2].
wanec_api_monitor_t
fe_chan int
If the value set to 0, the function will read monitored data from EC
chip. Otherwise, the function will start record monitored data for
specified channel.
Appendix A
/* Echo Canceller channel operation modes */
WANEC_API_OPMODE_NORMAL:
Echo Canceller operation mode is enabled.
WANEC_API_OPMODE_HT_FREEZE:
This mode prevents the AF from updating its echo-path
mode (used for validation test such as G.168).
WANEC_API_OPMODE_HT_RESET:
This mode clears the echo-path model.
WANEC_API_OPMODE_POWERDOWN:
This mode puts Echo Canceller in bypass mode.
WANEC_API_OPMODE_NO_ECHO:
This mode allows voice quality features to be used
without performing echo cancellation.
WANEC_API_OPMODE_SPEECH_RECOGNITION:
This mode is used when echo cancellation needs to be
enabled but not the NLP.