SMDI Sample Script
This sample will check an incoming call and parse the SDMI digits into the "Call Type", "Calling Number" and "Called Number". The "Call Type" is assigned to the reserved word, CALL_TYPE, which is a numeric type of call used in the Script Generator (the different call types and their values are listed below). The "Calling Number" is assigned to the reserved word, SMDI_CALLING_NUMBER. The "Calling Number" is the origination of the phone call, the person who is making the call. The "Called Number" is assigned to the reserved word, SMDI_CALLED_NUMBER. The "Called Number" is the person who is being called. The scripting application will check the call type. If the call is an outside/direct call, The calling party is trying to call directly to their mailbox and the call will go to the user's login. If no SMDI string is parsed out, it will go to the MailCall Greeting. If the call type is anything other than an outside/direct call, the "Calling Number" was trying to reach the "Called Number", but there was no answer or the line was busy and the call is being forwarded. In this case, the "Calling Number" will be directed to the "Called Number"s voicemail. Again, if there is no SMDI string, the "Calling Number" will go to the MailCall Greeting.
Before forwarding calls to the User Login or Mailbox, an error branch is assigned in case the mailbox is invalid or the SMDI digits were not parsed correctly. If there is an error, the scripting application will go to the MailCall Greeting and reset the error branch to the default. The error branch must be set to the default if this section of the script is to be used in any other scripting application. Otherwise, every error will branch to the Main Menu instead of the expected error branch, MailCall Goodbye.
If the call goes to the MailCall Greeting, the SMDI digits probably were not parsed correctly and you will need to run the SMDI test below to determine how the digits are being parsed.
Below is a list of the call types and their values.