SMtoneint
Previous Topic  Next Topic 

Synopsis:

       SMtoneint(vox_chan,on_off,toneset)


Arguments:

       vox_chan The voice channel

       on_off Set to 0 to prevent DTMF tones from interrupting speech functions, set to 1 to allow DTMF to interrupt speech

       toneset Which of the internal Aculab tonesets to use

       

Description: This function specifies whether DTMF tones will interrupt blocking speech functions such as SMplay(), SMrecord() etc.      By default any DTMF tone received will interrupt these functions with a terminating event of TERM_TONE,  to prevent this on_off should be set to 0.


toneset can be set to one of the internal Aculab tonesets to specifiy which toneset can interrupt a speech function.



Returns: Returns 0 if successful or -1 if bad vox_chan specified