




6. Using the Voice Mail
Each state function within the voice mail part of the application performs the same basic activities:
- Wait for an IP and Voice Resource event.
- Use dx_play( ) to play the appropriate menu. TDX_PLAY termination events will be generated to indicate completion.
After getting the TDX_PLAY event the application calls ATDX_TERMMSK(chdev)
to check the termination reason. It may either TM_EOD (end
of data/file) or TM_MAXDTMF (user pressed digit/s as determined
by the TPT -- Termination Parameter Table).
- If TM_EOD, then play the relevant menu again.
- If TM_MAXDTMF, then collect the DTMF from the digit buffer.
- Use dx_rec( ) to record a file. TDX_RECORD termination events will be generated to indicate completion.
- Call dx_getdig( ) to collect the DTMF tone(s) from the digit buffer. TDX_GETDIG termination event will be generated to indicate completion.
- Call dx_clrdigbuf( ) to clear all digits in the channel's firmware digit buffer.
- Call dx_clrtpt( ) to clear the Table Parameter Termination (TPT) structure.





Click here to contact Dialogic Customer Engineering
Copyright 2002, Intel Corporation
All rights reserved
This page generated February, 2002