.
PhonSoft Technical Library
Subject:SMDI Sample Script / Test
Category:Calista PBX Integration Board, Configuration, Installation, PhoneServer, Telephony, Unified MailCall

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.


SMDI Test

Below is a list of the call types and their values.


To run this test, be sure to do the following:

1) Make sure that the NSF file is in the Notes Data Directory.
2) Start Phoneserver and make sure Unified MailCall is the application selected.
3) Go to Edit/MailCall/Script. Make sure "Script Enabled" is checked.
4) Either type the path of the PSS file in the "Script File" box, or browse to find the PSS file.
5) Click "OK" and start line(s).


There are 5 tests that can be run for each type of call. After each test, go into the SMDI Test Database and edit each test type. New tests will show up in the SMDI View as "New SMDI Output". SMDI_Test.zip


If the expanded levels in the script don't work, use the Flat Version
SMDI_Sample_Flat_Version.pss
.