Figure 5. Listen to Message State Diagram

6.2.1. Connected_Start_Listen StateThe application waits for a TDX_GETDIG event. The retrieved digit may be either an asterisk "*" or a 3-digit mailbox number. Any other digit or combination of digits generates an error.
If the digit is "*", the application replays the Main menu and the call state transitions to IPTMAIL_CONNECTED_WAIT_SIG.
If three digits are retrieved, the application checks if it is a legal mailbox number. If it is not, the application plays the ERROR_MENU and waits for another TDX_GETDIG event.
If the mailbox number is legal, the application checks if the requested mailbox is available. If it is unavailable, the application plays the UNAVAILABLE_TRY_AGAIN_MENU and waits for another TDX_GETDIG event.
If the mailbox number is available, the application plays the file and the call state transitions to IPTMAIL_CONNECTED_LISTEN.
6.2.2. Connected_Listen StateThe application waits for a TDX_PLAY event. When it receives the event, it gets the termination reason, closes the played file, and plays the STOPLISTEN_MENU. The call state transitions to IPTMAIL_CONNECTED_STOP_LISTEN.
6.2.3. Connected_Stop_Listen StateThe application waits for a TDX_GETDIG event. The retrieved digit may be either an asterisk "*" or "2". Any other digit or combination of digits generates an error.
If the digit is "*", the application preserves the message in the mailbox and plays the MAIN menu. The call state transitions to IPTMAIL_CONNECTED_WAIT_SIG.
If the digit is "2" the application discards the message, frees the mailbox, and plays the MAIN menu. The call state transitions to IPTMAIL_CONNECTED_WAIT_SIG.
Click here to contact Dialogic Customer Engineering
Copyright 2002, Intel Corporation