int sm_ans_listen_for(struct sm_ans_listen_for_parms *listenp)
typedef struct sm_ans_listen_for_parms { tSMChannelId channel; /* in */ enum kSMANSMode { kSMANSModeDisable, kSMANSModeDetect, } detection_mode; /* in */ } SM_ANS_LISTEN_FOR_PARMS;
This call controls detection of the ITU-T V.8 tones ANS and ANSam, which are used in the preliminary stages of modem negotiation.
When a tone is recognised, the recognition event associated with the channel is set and the application can then retrieve a tone identifier for the recognised tone by calling sm_get_recognised().
The module ansam is required by this call.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody speech processing API.