Page 2
(e.g. a book or sound recording). Every effort has been made to ensure that the information in this manual is accurate. Polycom, Inc. is not responsible for printing or clerical errors. Information in this document is subject to change without notice.
Caution! Polycom authorizes the use of only the stored procedures described in this publication. Other .sp files reside in the ReadiVoice file system; however, those not included here are designed for Polycom internal use only and may cause unforeseen problems if used otherwise.
(to the extent possible) in newer versions of the software. If you developed an interface for an earlier version of ReadiVoice/ConferenceNow!, you can continue using it with ReadiVoice v. 2.50.0 or later, with little or no code modifications. Caution! If two-passcode call flow is enabled, then you can’t use any pre-v.2.10.0 stored...
Page 11
If you want to provision the new options and features available in ReadiVoice v. 2.5x.x., rewrite your legacy code to use only the current PSPI functions. Each of the subsequent chapters is a PSPI reference for a specific version of the ReadiVoice stored procedures.
Install an ODBC (open database connectivity) or JDBC (Java database connectivity) driver on the client computer. Properly set up the environment on the client computer. Configure the ODBC/JDBC driver to access your ReadiVoice database on the server. Set up your application to talk to the ODBC/JDBC driver.
Page 13
On the server side, you can execute a stored procedure call as a stand-alone entity with INFORMIX-SQL. Caution! Polycom strongly advises against server-side access in a production environment. For this kind of testing and debugging, the system should be off line. You can use INFORMIX-SQL in two ways: •...
Page 14
ReadiVoice PSPI Reference For information about additional options, including saving your SPC as a command file or sending the output to a printer or file, see the INFORMIX-SQL User Guide. To execute an SPC query from the command line using a command file: isql databaseName -qr commandfilename [| pg,more,head] You can, of course, pipe the output to a file.
ReadiVoice-IP functionality was merged into the standard release of ReadiVoice v. 2.30.0, so the same stored procedures are used for both the ReadiVoice-PSTN and ReadiVoice-IP configurations. Do not, however, “mix and match” current and legacy functions (or two different levels of legacy functions, such as v.
Caution! Polycom authorizes the use of only the stored procedures described in this publication. Other .sp files reside in the ReadiVoice file system; however, those not included here are designed for Polycom internal use only and may cause unforeseen problems if used otherwise.
AddGrpAccessClass() Stored procedure for adding an access class to a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
ReadiVoice PSPI Reference AddModSubGroup_v2500() Stored procedure for adding a subscriber group to the database or modifying an existing group. If you set vCheckParms to 1, the SPC verifies that: • • • • Parameters Specify all parameters. The constraints column shows specific value or range constraints.
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 23
Parameter Data Type AccessNumVerify SMALLINT NotifyCallRouter SMALLINT vAccessNum CHAR (60) vHiddenNum CHAR (60) vSharedFlag SMALLINT vNumberType SMALLINT vNumberGroup SMALLINT SubscriberId Return Values DataType Proprietary & Confidential Constraints Description Validate access number integrity. 0, 1 0: No; 1: Yes. Parameter remains only to maintain backward 0, 1 compatibility.
ReadiVoice PSPI Reference AddSubAcm() Stored procedure for adding an Application Control Mode (ACM) option to a subscriber. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
AddSubAndAN_v2500() Stored procedure for adding a new subscriber and, optionally, new access number(s) to the database at the same time. You can specify up to three access numbers for a new subscriber even if those access numbers don’t currently exist in the database. There is no AddSub_v2500() procedure.
Page 26
Caution! The CacsEventUpdate table must be purged periodically using the cleanCacsEvtUpdate.pl script, as described in the ReadiVoice Administration & Maintenance Guide. If your system uses fixed translation numbers (see the bridge administration If vExternalId is used for and system configuration topics in the ReadiVoice Administration &...
You can specify up to three access numbers for a new subscriber even if those access numbers don’t currently exist in the database. This procedure requires ReadiVoice v. 2.55.0 or later. There is no AddSub_v2550() procedure. Use this procedure for all add subscriber operations;...
Page 32
ReadiVoice PSPI Reference Parameter Data Type AccessNumVerify SMALLINT vEntryDate DATETIME YEAR TO MINUTE vActivationDate DATETIME YEAR TO MINUTE vBillingId vBillingType SMALLINT vBillingPhone CHAR (30) vBillingAddress CHAR (255) vCreditCardType SMALLINT vCreditCardNumber CHAR (20) vCreditCardExpire DATETIME YEAR TO MONTH vClientBillA CHAR (255)
Page 36
ReadiVoice PSPI Reference Parameter Data Type vSharedFlag2 SMALLINT vNumberType2 SMALLINT vAccessNumber3 CHAR (60) vHiddenNum3 CHAR (60) vSharedFlag3 SMALLINT vNumberType3 SMALLINT Return Values Data Type Constraints Description Type of access number. 0: Private; 1: Shared. 0, 1 Set to 0 if not specifying second access number.
CACS then updates the call router with the data from the temporary table every ten seconds. Caution! The CacsEventUpdate table must be purged periodically using the cleanCacsEvtUpdate.pl script, as described in the ReadiVoice Administration & Maintenance Guide. Proprietary & Confidential Description Access number (numeric characters only).
Page 38
ReadiVoice PSPI Reference Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures” Parameter Data Type AccessNumVerify SMALLINT vEntryDate DATETIME YEAR TO MINUTE vActivationDate...
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 43
Parameter Data Type AccessNumVerify SMALLINT NotifyCallRouter SMALLINT SubscriberId AccessNum CHAR (60) SharedFlag NumberType SMALLINT HiddenNum CHAR (60) Return Values Data Type Proprietary & Confidential Constraints Description Validate access number integrity. 0, 1 0: No; 1: Yes. Parameter remains only to maintain backward 0, 1 compatibility.
ReadiVoice PSPI Reference AssignPhoneNum() Stored procedure for adding an access phone number to a subscriber’s account and, optionally, changing the subscriber’s access code. This procedure is compatible with v. 1.30.0 or later of the software. The new number’s access number type (private or shared) must match the number type of the subscriber’s existing phone number(s), and its access class...
DelAssignedPN() Stored procedure for deleting an access phone number from a subscriber’s account. Compatible with v. 1.30.0 or later of the software. If all the access phone numbers for a subscriber are deleted, the subscriber is marked inactive. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
There is no option to notify the call router immediately. Caution! The CacsEventUpdate table must be purged periodically using the cleanCacsEvtUpdate.pl script, as described in the ReadiVoice Administration & Maintenance Guide. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
CACS then updates the call router with the data from the temporary table every ten seconds. Caution! The CacsEventUpdate table must be purged periodically using the cleanCacsEvtUpdate.pl script, as described in the ReadiVoice Administration & Maintenance Guide. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
ReadiVoice PSPI Reference Return Values Data Type DelGroupAcm() Stored procedure for removing an Application Control Mode (ACM) option from a subscriber group. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
DelGrpAccessClass() Stored procedure for removing an access class from a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
ReadiVoice PSPI Reference DelSubAcm() Stored procedure for removing an Application Control Mode (ACM) option from a subscriber. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
AccOptChanges table in the database. This procedure is only for systems configured for the Account Options Updates feature. The ReadiVoice Administration & Maintenance Guide describes how to configure and use this feature. This procedure returns each account options change record that hasn’t been flagged as read and then flags it as read.
ReadiVoice PSPI Reference GetGroupAcm() Stored procedure for retrieving a list of the Application Control Mode (ACM) options enabled for a subscriber group. A return code of 100 flags the end of the list of ACM options. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured.
GetGroupInfo_v2500() Stored procedure for retrieving all subscriber group data. For each group in the database, it returns the set of values shown below. A return code of 100 flags the end of the list of groups. This procedure is similar to GetGroupInfo_v2320(), but has two additional return values at the end of the record: •...
Page 54
ReadiVoice PSPI Reference Data Type CHAR (255) CHAR (255) CHAR (512) SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Description Prompt set. Carrier ID. Group notes A. Group notes B. Operator notes.
Page 55
Data Type SMALLINT SMALLINT SMALLINT SMALLINT CHAR (4) CHAR (20) CHAR (20) CHAR (15) CHAR (120) CHAR (60) CHAR (30) SMALLINT CHAR (30) CHAR (30) SMALLINT Proprietary & Confidential Current PSPI Functions Description Prompt to identify subscriber. 0: No; 1: Yes. Terminate minimum-participant conference (set in SysConfig table) after auto termination time.
ReadiVoice PSPI Reference Data Type SMALLINT SMALLINT SMALLINT GetGrpAccessClass Stored procedure for retrieving a list of access classes associated with a subscriber group. A return code of 100 flags the end of the subscriber group’s access classes. Compatible with v. 1.30.0 or later of the software.
Stored procedure for retrieving a list of all prompt sets in the database. For each prompt set, it returns both the ID and the name. A return code of 100 flags the end of the list of prompt sets. Compatible with all versions of the ReadiVoice/ConferenceNow! software. Parameters None...
ReadiVoice PSPI Reference Return Values Data Type CHAR (60) CHAR (30) GetSubAcm() Stored procedure for retrieving a list of the Application Control Mode (ACM) options enabled for a subscriber. A return code of 100 flags the end of the list of ACM options.
GetSubAN_v2520() Stored procedure for retrieving a list of all access phone numbers assigned to a subscriber, along with related information about those access numbers. This procedure is similar to GetSubAccNums(), but it also returns the associated hidden number, access number type, and number group for each access phone number.
ReadiVoice PSPI Reference GetSubByEId_v2500() Stored procedure for retrieving a subscriber’s record from the database using the subscriber’s external ID. To retrieve a subscriber’s record using the subscriber ID, use GetSub_v2500(). Both procedures return the same set of data. Parameters The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see Procedures”...
Page 63
Data Type SMALLINT CHAR (30) CHAR (30) SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Current PSPI Functions Description Password changeable by subscriber. 0: No; 1: Yes. Dial-Out Prefix, a number to dial before the dial-out number when dialing out. Dial- Out Postfix, a number to dial after the dial-out number when dialing out.
GetSubByEIdB() Stored procedure for retrieving a subscriber’s record from the database using the subscriber’s external ID B, added in ReadiVoice v. 2.55.0. This procedure requires ReadiVoice v. 2.55.0 or later. To retrieve a subscriber’s record using the subscriber ID, use GetSub_v2550().
Page 65
Data Type CHAR (30) CHAR (30) CHAR (30) CHAR (50) CHAR (20) CHAR (20) SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT CHAR (30) SMALLINT Proprietary & Confidential Current PSPI Functions Description Group ID. Prompt set. Subscriber’s first name.
Page 67
Data Type CHAR (30) SMALLINT CHAR (30) CHAR (30) SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Current PSPI Functions Description Fax number (Metratech billing field) if the corresponding table is defined on the CACS. Metratech billing account flag. 0: Not processed;1: Being processed, but not completed yet;...
ReadiVoice PSPI Reference GetSub_v2500() Stored procedure for retrieving a subscriber’s record from the database using the subscriber ID. To retrieve a subscriber’s record using the subscriber’s external ID, use GetSubByEId_v2500(). Both procedures return the same set of data. This procedure is similar to GetSub_v2320(), but has two additional return values at the end of the record: •...
Page 69
Data Type SMALLINT CHAR (20) DATETIME YEAR TO MONTH CHAR (255) CHAR (255) CHAR (30) CHAR (30) CHAR (30) CHAR (50) CHAR (20) CHAR (20) SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Current PSPI Functions Description Credit card type.
Page 71
Data Type CHAR (15) CHAR (120) CHAR (60) CHAR (30) SMALLINT CHAR (30) CHAR (30) SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Current PSPI Functions Description ZIP code (Metratech billing field) if the corresponding table is defined on the CACS. Time zone (Metratech billing field) if the corresponding table is defined on the CACS.
GetSub_v2550() Stored procedure for retrieving a subscriber’s record from the database using the subscriber ID. This procedure requires ReadiVoice v. 2.55.0 or later. To retrieve a subscriber’s record using the subscriber’s external ID B, use GetSubByEIdB(). Both procedures return the same set of data.
Page 75
Data Type CHAR (60) CHAR (30) SMALLINT CHAR (30) CHAR (30) SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Current PSPI Functions Description Country (Metratech billing field) if the corresponding table is defined on the CACS. Fax number (Metratech billing field) if the corresponding table is defined on the CACS.
For an explanation of which call flows are available with various combinations of routing options and translation number types, see “Changing System Configuration” in the ReadiVoice Administration & Maintenance Guide. Caution! If your system has either of the two-password call flows enabled, then you can’t use any pre-v.2.10.0 stored procedures except those included in chapters 2–5.
Page 77
Use hidden numbers. 0: No; 1: Yes. Validate on access code only. 0: No; 1: Yes. System type. “RVIP”: ReadiVoice-IP; “RV_PSTN”: ReadiVoice-PSTN. SIP domain name, if ReadiVoice-IP system. Otherwise, empty string. Translation number type. 0: Random; 1: Fixed; 2: Fixed with 3-digit code.
ReadiVoice PSPI Reference ReAssignAccCode() Stored procedure for changing the access code assigned to a subscriber. Compatible with v. 1.30.0 or later of the software. Note that, with v. 2.10.0, the system configuration setting for code length changed from a maximum value constraint to a minimum.
ReAssignPhoneNum() Stored procedure for removing or replacing an existing access phone number assigned to a subscriber. Compatible with v. 1.30.0 or later of the software. To remove an access number without replacing it, set LocalNewAccNum to an empty string. The procedure fails if the number you’re removing is the subscriber’s only access number (a subscriber must have at least one access phone number).
ReadiVoice PSPI Reference UpdateMTBilling() Stored procedure for updating a subscriber’s Metratech billing data in the database. Compatible with v. 2.00.0 or later of the software if the MetraTechSubInfo table exists. This procedure replaces all existing values for the specified subscriber. If you set vCity, vState, vZip, vEmail, or vFax to an empty string, the value “None”...
UpdateNumGrpRList() Stored procedure for assigning number groups to routing lists. To be used only after using non-routed. Refer to the description of that procedure and especially to the cautions it contains. When a routed system is converted to non-routed, the existing bridge groups and routing lists are deleted.
Page 82
ReadiVoice PSPI Reference Parameter Data Type vNumGroup5 vRoutingList5 vNumGroup6 vRoutingList6 vNumGroup7 vRoutingList7 vNumGroup8 vRoutingList8 vNumGroup9 vRoutingList9 vNumGroup10 vRoutingList10 Return Values Data Type Constraints Description Number Group 5. Set to 0 if not assigning another number group. New routing list ID for number group 5. Set to 0 if not assigning another number group.
UpdateSub_v2500() Stored procedure for updating a subscriber’s record in the database. This procedure is similar to UpdateSub_v2320(), but has two additional parameters: • • Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
UpdateSub_v2550() Stored procedure for updating a subscriber’s record in the database. This procedure requires ReadiVoice v. 2.55.0 or later. This procedure is similar to UpdateSub_v2500(), but has: • • Parameters Specify all parameters. The constraints column shows specific value or range constraints.
Page 90
ReadiVoice PSPI Reference Parameter Data Type vConfTermTime SMALLINT vPartPlayCount SMALLINT vDialOutPreFix CHAR (30) vDialOutPostFix CHAR (30) vLOEntry SMALLINT vLOEntryEnable SMALLINT vWROption SMALLINT vWROptionEnable SMALLINT Return Values Data Type Constraints Description Auto termination time in minutes. Set to 480 if 5–480 not using.
Use the System Administration interface to set up your bridge groups and routing lists to route calls among bridges as desired. For an explanation of which call flows are available with various combinations of routing options and translation number types, see the ReadiVoice Administration & Maintenance Guide. Caution! If your system has either of the two-password call flows enabled, then you can’t use...
Page 92
ReadiVoice PSPI Reference Parameter Data Type vTransNumberType SMALLINT vTradShrdCallflow SMALLINT vTradPrvCallFlow SMALLINT vTwoPsShrdCallFlow SMALLINT vTwoPsPrvCallFlow SMALLINT vConfTermPartCount SMALLINT Return Values Data Type CHAR (256) Constraints Description Translation number type. 0: Random; 1: Fixed; 0–2 2: Fixed with 3-digit code. Traditional shared call flow. 0: Unavailable;...
ReadiVoice v. 2.32.x. ReadiVoice-IP functionality was merged into the standard release of ReadiVoice v. 2.30.0, so the same stored procedures are used for both the ReadiVoice-TSP and ReadiVoice-IP configurations. For your convenience, this chapter also includes functions that remain unchanged from previous versions.
ReadiVoice PSPI Reference AddGroupACM() Stored procedure for adding an Application Control Mode (ACM) option to a subscriber group. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
AddGrpAccessClass() Stored procedure for adding an access class to a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 97
Parameter Data Type AccessNumVerify SMALLINT NotifyCallRouter SMALLINT vAccessNum CHAR (60) vHiddenNum CHAR (60) vSharedFlag SMALLINT vNumberType SMALLINT vNumberGroup SMALLINT SubscriberId Return Values DataType Proprietary & Confidential Constraints Description Validate access number integrity. 0, 1 0: No; 1: Yes. Parameter remains only to maintain backward 0, 1 compatibility.
ReadiVoice PSPI Reference AddSubAcm() Stored procedure for adding an Application Control Mode (ACM) option to a subscriber. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
Page 99
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 100
ReadiVoice PSPI Reference Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures” Parameter Data Type AccessNumVerify SMALLINT NotifyCallRouter SMALLINT vEntryDate DATETIME YEAR TO...
Page 103
Parameter Data Type vDialOutPreFix CHAR (30) vDialOutPostFix CHAR (30) vLOEntry SMALLINT vLOEntryEnable SMALLINT vAccessCode CHAR (20) vAccessNumber1 CHAR (30) vHiddenNum1 CHAR (30) vSharedFlag1 SMALLINT vNumberType1 SMALLINT vAccessNumber2 CHAR (30) vHiddenNum2 CHAR (30) vSharedFlag2 SMALLINT vNumberType2 SMALLINT Proprietary & Confidential Constraints Description Number to dial before dialing out (numeric characters only).
Page 104
ReadiVoice PSPI Reference Parameter Data Type vAccessNumber3 CHAR (30) vHiddenNum3 CHAR (30) vSharedFlag3 SMALLINT vNumberType3 SMALLINT Return Values Data Type Constraints Description Third access number (numeric characters only). Set to empty string if not using. Hidden number for third access number (numeric characters only).
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 106
ReadiVoice PSPI Reference Parameter Data Type AccessNumVerify SMALLINT NotifyCallRouter SMALLINT SubscriberId AccessNum CHAR (60) SharedFlag NumberType SMALLINT HiddenNum CHAR (60) Return Values Data Type Constraints Description Validate access number integrity. 0, 1 0: No; 1: Yes. Parameter remains only to maintain backward 0, 1 compatibility.
AssignPhoneNum() Stored procedure for adding an access phone number to a subscriber’s account and, optionally, changing the subscriber’s access code. This procedure is compatible with v. 1.30.0 or later of the software. The new number’s access number type (private or shared) must match the number type of the subscriber’s existing phone number(s), and its access class must not match an existing phone number’s access class (a subscriber can have only one access number per access class).
ReadiVoice PSPI Reference DelAssignedPN() Stored procedure for deleting an access phone number from a subscriber’s account. Compatible with v. 1.30.0 or later of the software. If all the access phone numbers for a subscriber are deleted, the subscriber is marked inactive.
Page 109
Caution! The CacsEventUpdate table must be purged periodically using the cleanCacsEvtUpdate.pl script, as described in the ReadiVoice Administration & Maintenance Guide. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
ReadiVoice PSPI Reference DelGroupAcm() Stored procedure for removing an Application Control Mode (ACM) option from a subscriber group. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
DelGrpAccessClass() Stored procedure for removing an access class from a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
ReadiVoice PSPI Reference DelSubAcm() Stored procedure for removing an Application Control Mode (ACM) option from a subscriber. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
AccOptChanges table in the database. This procedure is only for systems configured for the Account Options Updates feature. The ReadiVoice Administration & Maintenance Guide describes how to configure and use this feature. This procedure returns each account options change record that hasn’t been flagged as read and then flags it as read.
ReadiVoice PSPI Reference GetGroupAcm() Stored procedure for retrieving a list of the Application Control Mode (ACM) options enabled for a subscriber group. A return code of 100 flags the end of the list of ACM options. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured.
GetGroupInfo_v2320() Stored procedure for retrieving all subscriber group data. For each group in the database, it returns the set of values shown below. A return code of 100 flags the end of the list of groups. This procedure is similar to GetGroupInfo_v2110(), but has two additional return values: •...
Page 116
ReadiVoice PSPI Reference Data Type CHAR (255) CHAR (512) SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Description Group notes B. Operator notes. Roll call (entry/exit announcement) option. 0: Tone; 1: Name; 2: Silence.
Page 117
Data Type CHAR (255) CHAR (512) SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Legacy v. 2.32.0 PSPI Functions Description Group notes B. Operator notes. Roll call (entry/exit announcement) option. 0: Tone;...
Page 118
ReadiVoice PSPI Reference Data Type SMALLINT SMALLINT CHAR (4) CHAR (20) CHAR (20) CHAR (15) CHAR (120) CHAR (60) CHAR (30) SMALLINT CHAR (30) CHAR (30) SMALLINT SMALLINT Description Auto termination time in minutes. Conference entry with participant count (PartPlayCount). 0: No; 1: Yes.
Stored procedure for retrieving a list of all prompt sets in the database. For each prompt set, it returns both the ID and the name. A return code of 100 flags the end of the list of prompt sets. Compatible with all versions of the ReadiVoice/ConferenceNow! software. Parameters None Proprietary &...
ReadiVoice PSPI Reference Return Values Data Type CHAR (30) GetSubAccNums() Stored procedure for retrieving a list of all access phone numbers assigned to a subscriber. For each of the subscriber’s access numbers, it returns the phone number, its class ID, and its class name. The end of the list is marked by a list member with the CHAR values set to empty strings and the INT values set to 0.
GetSubAcm() Stored procedure for retrieving a list of the Application Control Mode (ACM) options enabled for a subscriber. A return code of 100 flags the end of the list of ACM options. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured.
Page 122
ReadiVoice PSPI Reference Parameters Note: The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see Stored Procedures” Parameter Data Type vSubscriberId Return Values Data Type SMALLINT CHAR (30) CHAR (255) SMALLINT...
For an explanation of which call flows are available with various combinations of routing options and translation number types, see “Changing System Configuration” in the ReadiVoice Administration & Maintenance Guide. Caution! If your system has either of the two-password call flows enabled, then you can’t use any pre-v.2.10.0 stored procedures except those included in chapters 2–5.
Page 126
Use hidden numbers. 0: No; 1: Yes. Validate on access code only. 0: No; 1: Yes. System type. “RVIP”: ReadiVoice-IP; “RV_PSTN”: ReadiVoice-TSP. SIP domain name, if ReadiVoice-IP system. Otherwise, empty string. Translation number type. 0: Random; 1: Fixed; 2: Fixed with 3-digit code.
ReAssignAccCode() Stored procedure for changing the access code assigned to a subscriber. Compatible with v. 1.30.0 or later of the software. Note that, with v. 2.10.0, the system configuration setting for code length changed from a maximum value constraint to a minimum. Parameters Specify all parameters.
Page 128
ReadiVoice PSPI Reference Parameter Data Type LocalSubId LocalOldAccNum CHAR (60) LocalNewAccNum CHAR (60) Return Values Data Type Constraints Description ID of subscriber. Must be in database. >0 Existing access phone number. Must be in database. New access phone number. Must be in database or an empty string.
UpdateMTBilling() Stored procedure for updating a subscriber’s Metratech billing data in the database. Compatible with v. 2.00.0 or later of the software if the MetraTechSubInfo table exists. This procedure replaces all existing values for the specified subscriber. If you set vCity, vState, vZip, vEmail, or vFax to an empty string, the value “None” is written to the database.
ReadiVoice PSPI Reference UpdateSub_v2320() Stored procedure for updating a subscriber’s record in the database. This procedure is similar to UpdateSub_v2130(), but has two additional parameters: • • Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
Page 133
Parameter Data Type vDialOutPreFix CHAR (30) vDialOutPostFix CHAR (30) vLOEntry SMALLINT vLOEntryEnable SMALLINT Return Values Data Type Proprietary & Confidential Constraints Description Number to dial before dialing out (numeric characters only). Set to empty string if not used. Number to dial after dialing out (numeric characters only).
ReadiVoice v. 2.13.x, v. 2.14.x, v. 2.30.x, or v. 2.31.x. ReadiVoice-IP functionality was merged into the standard release of ReadiVoice v. 2.30.0, so the same stored procedures are used for both the ReadiVoice-PSTN and ReadiVoice-IP configurations. For your convenience, this chapter also includes functions that remain unchanged from previous versions.
ReadiVoice PSPI Reference AddGroupAcm() Stored procedure for adding an Application Control Mode (ACM) option to a subscriber group. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
AddGrpAccessClass() Stored procedure for adding an access class to a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 139
Parameter Data Type AccessNumVerify SMALLINT NotifyCallRouter SMALLINT vAccessNum CHAR (60) vHiddenNum CHAR (60) vSharedFlag SMALLINT vNumberType SMALLINT vNumberGroup SMALLINT SubscriberId Return Values DataType Proprietary & Confidential Legacy v. 2.13.0/2.30.0 PSPI Functions Constraints Description Validate access number integrity. 0, 1 0: No; 1: Yes. Parameter remains only to maintain backward 0, 1 compatibility.
ReadiVoice PSPI Reference AddSubAcm() Stored procedure for adding an Application Control Mode (ACM) option to a subscriber. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
• • The prefix and postfix parameters accommodate the Dial-Out Billing (UDO) configuration, described in the ReadiVoice Administration & Maintenance Guide. Using this procedure, or its siblings AddSubAndAccNum(), reduces the traffic through the ODBC interface, since a single SPC accomplishes what required two to four SPCs in earlier versions of PSPI.
Page 142
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 146
ReadiVoice PSPI Reference Parameter Data Type vHiddenNum2 CHAR (30) vSharedFlag2 SMALLINT vNumberType2 SMALLINT vAccessNumber3 CHAR (30) vHiddenNum3 CHAR (30) vSharedFlag3 SMALLINT vNumberType3 SMALLINT Return Values Data Type Constraints Description Hidden number for second access number (numeric characters only). If not using hidden numbers, duplicate the second access number.
• • The prefix and postfix parameters accommodate the Dial-Out Billing (UDO) configuration, described in the ReadiVoice Administration & Maintenance Guide. Parameters Specify all parameters. The constraints column shows specific value or range constraints. Note that the vExternalId parameter must have a data type of CHAR(30).
Page 148
ReadiVoice PSPI Reference Parameter Data Type vEntryDate DATETIME YEAR TO MINUTE vActivationDate DATETIME YEAR TO MINUTE vBillingId vBillingType SMALLINT vBillingPhone CHAR (30) vBillingAddress CHAR (255) vCreditCardType SMALLINT vCreditCardNumber CHAR (20) vCreditCardExpire DATETIME YEAR TO MONTH vClientBillA CHAR (255) vClientBillB CHAR (255)
Page 151
Parameter Data Type vPartPlayCount SMALLINT vDialOutPreFix CHAR (30) vDialOutPostFix CHAR (30) Return Values Data Type CHAR (30) CHAR (20) Proprietary & Confidential Legacy v. 2.13.0/2.30.0 PSPI Functions Constraints Description Conference entry with participant count. 0, 1 0: Off; 1: On. Number to dial before dialing out (numeric characters only).
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 153
Parameter Data Type AccessNumVerify SMALLINT NotifyCallRouter SMALLINT SubscriberId AccessNum CHAR (60) SharedFlag NumberType SMALLINT HiddenNum CHAR (60) Return Values Data Type Proprietary & Confidential Legacy v. 2.13.0/2.30.0 PSPI Functions Constraints Description Validate access number integrity. 0, 1 0: No; 1: Yes. Parameter remains only to maintain backward 0, 1 compatibility.
ReadiVoice PSPI Reference AssignPhoneNum() Stored procedure for adding an access phone number to a subscriber’s account and, optionally, changing the subscriber’s access code. This procedure is compatible with v. 1.30.0 or later of the software. The new number’s access number type (private or shared) must match the number type of the subscriber’s existing phone number(s), and its access class...
DelAssignedPN() Stored procedure for deleting an access phone number from a subscriber’s account. Compatible with v. 1.30.0 or later of the software. If all the access phone numbers for a subscriber are deleted, the subscriber is marked inactive. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Return Values Data Type DelGroupAcm() Stored procedure for removing an Application Control Mode (ACM) option from a subscriber group. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
ReadiVoice PSPI Reference DelGrpAccessClass() Stored procedure for removing an access class from a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
AccOptChanges table in the database. This procedure is only for systems configured for the Account Options Updates feature. The ReadiVoice Administration & Maintenance Guide describes how to configure and use this feature. This procedure returns each account options change record that hasn’t been flagged as read and then flags it as read.
ReadiVoice PSPI Reference GetGroupAcm() Stored procedure for retrieving a list of the Application Control Mode (ACM) options enabled for a subscriber group. A return code of 100 flags the end of the list of ACM options. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured.
The Dial-Out Postfix parameter specifies a number to be dialed after the telephone number when dialing out. The prefix and postfix parameters accommodate the Dial-Out Billing (UDO) configuration, described in the ReadiVoice Administration & Maintenance Guide. Description Return code (0: OK; 100: end of list).
Page 162
ReadiVoice PSPI Reference Data Type CHAR (255) CHAR (255) CHAR (512) SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Description Prompt set. Carrier ID. Group notes A. Group notes B. Operator notes.
Page 163
Data Type SMALLINT SMALLINT SMALLINT SMALLINT CHAR (4) CHAR (20) CHAR (20) CHAR (15) CHAR (120) CHAR (60) CHAR (30) SMALLINT CHAR (30) CHAR (30) Proprietary & Confidential Legacy v. 2.13.0/2.30.0 PSPI Functions Description Prompt to identify subscriber. 0: No; 1: Yes. Terminate minimum-participant conference (set in SysConfig table) after auto termination time.
ReadiVoice PSPI Reference GetGrpAccessClass Stored procedure for retrieving a list of access classes associated with a subscriber group. A return code of 100 flags the end of the subscriber group’s access classes. Compatible with v. 1.30.0 or later of the software.
Return Values Data Type CHAR (30) GetSubAccNums() Stored procedure for retrieving a list of all access phone numbers assigned to a subscriber. For each of the subscriber’s access numbers, it returns the phone number, its class ID, and its class name. The end of the list is marked by a list member with the CHAR values set to empty strings and the INT values set to 0.
ReadiVoice PSPI Reference GetSubAcm() Stored procedure for retrieving a list of the Application Control Mode (ACM) options enabled for a subscriber. A return code of 100 flags the end of the list of ACM options. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured.
• • • The prefix and postfix parameters accommodate the Dial-Out Billing (UDO) configuration, described in the ReadiVoice Administration & Maintenance Guide. Parameters Note: The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see Stored Procedures”...
Page 170
ReadiVoice PSPI Reference Data Type CHAR (120) CHAR (60) CHAR (30) SMALLINT CHAR (30) CHAR (30) Description Time zone (Metratech billing field) if the corresponding table is defined on the CACS. Email address (Metratech billing field) if the corresponding table is defined on the CACS.
SMALLINT SMALLINT SMALLINT Proprietary & Confidential The system type flag, which reports whether this is a ReadiVoice-IP or ReadiVoice-PSTN system. The SIP domain name, if this is a ReadiVoice-IP system. Otherwise, an empty string. The access code required flag (AccessCode4Shared). A setting of 0 indicates two-password call flow, while a setting of 1 indicates that an access code is required (two-password call flow is disabled).
Compatible with v. 1.30.0 or later of the software. Description System type. “RVIP”: ReadiVoice-IP; “RV_PSTN”: ReadiVoice-PSTN. SIP domain name, if ReadiVoice-IP system. Otherwise, empty string. Access code required (AccessCode4Shared) flag. 0: No; 1: Yes. on page 4.
Page 173
To remove an access number without replacing it, set LocalNewAccNum to an empty string. The procedure fails if the number you’re removing is the subscriber’s only access number (a subscriber must have at least one access phone number). Parameters Specify all parameters. The constraints column shows specific value or range constraints.
ReadiVoice PSPI Reference UpdateMTBilling() Stored procedure for updating a subscriber’s Metratech billing data in the database. Compatible with v. 2.00.0 or later of the software if the MetraTechSubInfo table exists. This procedure replaces all existing values for the specified subscriber. If you set vCity, vState, vZip, vEmail, or vFax to an empty string, the value “None”...
• • The prefix and postfix parameters accommodate the Dial-Out Billing (UDO) configuration, described in the ReadiVoice Administration & Maintenance Guide. Parameters Specify all parameters. The constraints column shows specific value or range constraints. Note that the vExternalId parameter must have a data type of CHAR(30).
2.1x.x prior to v. 2.13.0, all the PSPI functions you need are in this one chapter. For ReadiVoice v. 2.50.0 and later, the vExternalId parameter must have a data type of CHAR(30), even if you’re using legacy SPs.
ReadiVoice PSPI Reference AddGroupAcm() Stored procedure for adding an Application Control Mode (ACM) option to a subscriber group. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
AddGrpAccessClass() Stored procedure for adding an access class to a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 183
Parameter Data Type AccessNumVerify SMALLINT NotifyCallRouter SMALLINT vAccessNum CHAR (60) vHiddenNum CHAR (60) vSharedFlag SMALLINT vNumberType SMALLINT vNumberGroup SMALLINT SubscriberId Return Values DataType Proprietary & Confidential Constraints Description Validate access number integrity. 0, 1 0: No; 1: Yes. Parameter remains only to maintain backward 0, 1 compatibility.
ReadiVoice PSPI Reference AddSubAcm() Stored procedure for adding an Application Control Mode (ACM) option to a subscriber. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
Page 185
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 186
ReadiVoice PSPI Reference Parameters Specify all parameters. The constraints column shows specific value or range constraints. Note that the vExternalId parameter must have a data type of CHAR(30). For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
ReadiVoice PSPI Reference Return Values Data Type AddSubAndAN_v2110() Stored procedure for adding a new subscriber and new access number(s) to the database at the same time. For a description, refer to AddSubAndAccNum(), which is very similar. This procedure adds one new parameter: the vPartPlayCount flag. If it’s set to 1, participants entering a conference hear a message telling them the number of people (including themselves) in conference.
Page 194
ReadiVoice PSPI Reference Parameter Data Type vHiddenNum2 CHAR (30) vSharedFlag2 SMALLINT vNumberType2 SMALLINT vAccessNumber3 CHAR (30) vHiddenNum3 CHAR (30) vSharedFlag3 SMALLINT vNumberType3 SMALLINT Return Values Data Type Constraints Description Hidden number for second access number (numeric characters only). If not using hidden numbers, duplicate the second access number.
AddSub_v2100() Stored procedure for adding a subscriber to the database. The access phone number specified for the new subscriber must already exist in the database. To add a new subscriber and a new access number at the same time, use This procedure is similar to AddSub_v2000(), but adds three new parameters: •...
AddSub_v2110() Stored procedure for adding a subscriber to the database. The access phone number specified for the new subscriber must already exist in the database. To add a new subscriber and a new access number at the same time, use AddSubAndAN_v2110(). This procedure is similar to AddSub_v2100(), but adds one new parameter: vPartPlayCount.
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
Page 204
ReadiVoice PSPI Reference Parameter Data Type AccessNumVerify SMALLINT NotifyCallRouter SMALLINT SubscriberId AccessNum CHAR (60) SharedFlag NumberType SMALLINT HiddenNum CHAR (60) Return Values Data Type Constraints Description Validate access number integrity. 0, 1 0: No; 1: Yes. Parameter remains only to maintain backward 0, 1 compatibility.
AssignPhoneNum() Stored procedure for adding an access phone number to a subscriber’s account and, optionally, changing the subscriber’s access code. This procedure is compatible with v. 1.30.0 or later of the software. The new number’s access number type (private or shared) must match the number type of the subscriber’s existing phone number(s), and its access class must not match an existing phone number’s access class (a subscriber can have only one access number per access class).
ReadiVoice PSPI Reference DelAssignedPN() Stored procedure for deleting an access phone number from a subscriber’s account. Compatible with v. 1.30.0 or later of the software. If all the access phone numbers for a subscriber are deleted, the subscriber is marked inactive.
(NotifyCallRouter = 1) or write it to the CacsEventUpdate table (NotifyCallRouter = 0). In ReadiVoice v. 2.50.0 and later, this choice has been removed, and the NotifyCallRouter parameter remains only to ensure backward compatibility. Regardless of how you set this flag, the SPC puts the new data into the CacsEventUpdate table in the database;...
ReadiVoice PSPI Reference Return Values Data Type DelGroupAcm() Stored procedure for removing an Application Control Mode (ACM) option from a subscriber group. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
DelGrpAccessClass() Stored procedure for removing an access class from a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
ReadiVoice PSPI Reference DelSubAcm() Stored procedure for removing an Application Control Mode (ACM) option from a subscriber. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
AccOptChanges table in the database. This procedure is only for systems configured for the Account Options Updates feature. The ReadiVoice Administration & Maintenance Guide describes how to configure and use this feature. This procedure returns each account options change record that hasn’t been flagged as read and then flags it as read.
ReadiVoice PSPI Reference GetGroupAcm() Stored procedure for retrieving a list of the Application Control Mode (ACM) options enabled for a subscriber group. A return code of 100 flags the end of the list of ACM options. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured.
GetGroupInfo_v2100() Stored procedure for retrieving all subscriber group data. For each group in the database, it returns the set of values shown below. A return code of 100 flags the end of the list of groups. Parameters None Return Values Data Type SMALLINT CHAR (50)
Data Type CHAR (20) CHAR (15) CHAR (120) CHAR (60) CHAR (30) SMALLINT GetGroupInfo_v2110() Stored procedure for retrieving all subscriber group data. For each group in the database, it returns the set of values shown below. A return code of 100 flags the end of the list of groups.
Page 216
ReadiVoice PSPI Reference Data Type CHAR (50) CHAR (30) CHAR (30) CHAR (50) CHAR (30) CHAR (255) CHAR (255) CHAR (512) SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Description Company name. Company phone number. Company fax number.
ReadiVoice PSPI Reference GetGrpAccessClass Stored procedure for retrieving a list of access classes associated with a subscriber group. A return code of 100 flags the end of the subscriber group’s access classes. Compatible with v. 1.30.0 or later of the software.
Return Values Data Type CHAR (30) GetSubAccNums() Stored procedure for retrieving a list of all access phone numbers assigned to a subscriber. For each of the subscriber’s access numbers, it returns the phone number, its class ID, and its class name. The end of the list is marked by a list member with the CHAR values set to empty strings and the INT values set to 0.
ReadiVoice PSPI Reference GetSubAcm() Stored procedure for retrieving a list of the Application Control Mode (ACM) options enabled for a subscriber. A return code of 100 flags the end of the list of ACM options. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured.
GetSub_v2100() Stored procedure for retrieving a subscriber’s record from the database. Parameters The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see Procedures” Parameter Data Type vSubscriberId Return Values Data Type SMALLINT CHAR (30) CHAR (255)
ReadiVoice PSPI Reference GetSub_v2110() Stored procedure for retrieving a subscriber’s record from the database. This procedure is similar to GetSub_v2100(), but adds one new return value: the conference entry with participant count (PartPlayCount) flag. Parameters The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see Procedures”...
Data Type CHAR (30) SMALLINT GetSysConfig_v2100() Stored procedure for retrieving the system configuration settings from the database. Parameters None Return Values Data Type SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Legacy v. 2.10.0 PSPI Functions Description Fax number (Metratech billing field) if the corresponding table is defined on the CACS.
ReadiVoice PSPI Reference GetSysConfig_v2110() Stored procedure for retrieving the system configuration settings from the database. This procedure is similar to GetSysConfig_v2100(), but adds one new return value, the validate on access code only flag. Parameters None Return Values Data Type...
ReAssignAccCode() Stored procedure for changing the access code assigned to a subscriber. Compatible with v. 1.30.0 or later of the software. Note that, with v. 2.10.0, the system configuration setting for code length changed from a maximum value constraint to a minimum. Parameters Specify all parameters.
ReadiVoice PSPI Reference ReAssignPhoneNum() Stored procedure for removing or replacing an existing access phone number assigned to a subscriber. Compatible with v. 1.30.0 or later of the software. To remove an access number without replacing it, set LocalNewAccNum to an empty string.
UpdateMTBilling() Stored procedure for updating a subscriber’s Metratech billing data in the database. Compatible with v. 2.00.0 or later of the software if the MetraTechSubInfo table exists. This procedure replaces all existing values for the specified subscriber. If you set vCity, vState, vZip, vEmail, or vFax to an empty string, the value “None” is written to the database.
ReadiVoice PSPI Reference UpdateSub_v2100() Stored procedure for updating a subscriber’s record in the database. Parameters Specify all parameters. The constraints column shows specific value or range constraints. Note that the vExternalId parameter must have a data type of CHAR(30). For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
UpdateSub_v2110() Stored procedure for updating a subscriber’s record in the database. This procedure is similar to UpdateSub_v2100(), but adds one new parameter: vPartPlayCount. If it’s set to 1, participants entering a conference hear a message telling them the number of people (including themselves) in conference.
If you’re maintaining code originally developed for v. 2.00.x, all the PSPI functions you need are in this one chapter. For ReadiVoice v. 2.50.0 and later, the vExternalId parameter must have a data type of CHAR(30), even if you’re using legacy SPs.
ReadiVoice PSPI Reference AddGroupAcm() Stored procedure for adding an Application Control Mode (ACM) option to a subscriber group. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
AddGrpAccessClass() Stored procedure for adding an access class to a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
ReadiVoice PSPI Reference AddSubAcm() Stored procedure for adding an Application Control Mode (ACM) option to a subscriber. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
Page 243
Parameter Data Type vEntryDate DATETIME YEAR TO MINUTE vActivationDate DATETIME YEAR TO MINUTE vBillingId vBillingType SMALLINT vBillingPhone CHAR (30) vBillingAddress CHAR (255) vCreditCardType SMALLINT vCreditCardNumber CHAR (20) vCreditCardExpire DATETIME YEAR TO MONTH vClientBillA CHAR (255) vClientBillB CHAR (255) vGroupId vPromptSet vFirstName CHAR (30) vLastName...
Parameter Data Type vClientSubB CHAR (255) vAccessCode CHAR (20) vAccessNumber CHAR (30) vProviderId vVipConf SMALLINT vPromptSecurity SMALLINT vPromptMenu SMALLINT Return Values Data Type CHAR (30) CHAR (20) AssignPhoneNum() Stored procedure for adding an access phone number to a subscriber’s account and, optionally, changing the subscriber’s access code.
Page 246
ReadiVoice PSPI Reference The new number’s access number type (private or shared) must match the number type of the subscriber’s existing phone number(s), and its access class must not match an existing phone number’s access class (a subscriber can have only one access number per access class).
DelAssignedPN() Stored procedure for deleting an access phone number from a subscriber’s account. Compatible with v. 1.30.0 or later of the software. If all the access phone numbers for a subscriber are deleted, the subscriber is marked inactive. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
ReadiVoice PSPI Reference DelGroupAcm() Stored procedure for removing an Application Control Mode (ACM) option from a subscriber group. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
DelGrpAccessClass() Stored procedure for removing an access class from a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
ReadiVoice PSPI Reference DelSubAcm() Stored procedure for removing an Application Control Mode (ACM) option from a subscriber. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
AccOptChanges table in the database. This procedure is only for systems configured for the Account Options Updates feature. The ReadiVoice Administration & Maintenance Guide describes how to configure and use this feature. This procedure returns each account options change record that hasn’t been flagged as read and then flags it as read.
ReadiVoice PSPI Reference GetGroupAcm() Stored procedure for retrieving a list of the Application Control Mode (ACM) options enabled for a subscriber group. A return code of 100 flags the end of the list of ACM options. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured.
GetGroupInfo_v2000() Stored procedure for retrieving all subscriber group data. For each group in the database, it returns the set of values shown below. A return code of 100 flags the end of the list of groups. Parameters None Return Values Data Type SMALLINT CHAR (50)
Data Type CHAR (120) CHAR (60) CHAR (30) GetGrpAccessClass Stored procedure for retrieving a list of access classes associated with a subscriber group. A return code of 100 flags the end of the subscriber group’s access classes. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters.
ReadiVoice PSPI Reference GetPromptInfo() Stored procedure for retrieving a list of all prompt sets in the database. For each prompt set, it returns both the ID and the name. A return code of 100 flags the end of the list of prompt sets. Compatible with all versions of the ReadiVoice/ConferenceNow! software.
Return Values Data Type CHAR (60) CHAR (30) GetSubAcm() Stored procedure for retrieving a list of the Application Control Mode (ACM) options enabled for a subscriber. A return code of 100 flags the end of the list of ACM options. Compatible with v. 2.00.0 or later of the software if ACM is installed and configured.
ReadiVoice PSPI Reference GetSub_v2000() Stored procedure for retrieving a subscriber’s record from the database. Parameters Note: The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see Stored Procedures” Parameter Data Type...
GetSysConfig() Stored procedure for retrieving the system configuration settings from the database. Compatible with v. 1.10.0 or later of the software. Parameters None Return Values Data Type SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Legacy v. 2.00.0 PSPI Functions Description Return code (0: OK;...
ReadiVoice PSPI Reference ReAssignAccCode() Stored procedure for changing the access code assigned to a subscriber. Compatible with v. 1.30.0 or later of the software. Note that, with v. 2.10.0, the system configuration setting for code length changed from a maximum value constraint to a minimum.
ReAssignPhoneNum() Stored procedure for removing or replacing an existing access phone number assigned to a subscriber. Compatible with v. 1.30.0 or later of the software. To remove an access number without replacing it, set LocalNewAccNum to an empty string. The procedure fails if the number you’re removing is the subscriber’s only access number (a subscriber must have at least one access phone number).
ReadiVoice PSPI Reference UpdateMTBilling() Stored procedure for updating a subscriber’s Metratech billing data in the database. Compatible with v. 2.00.0 or later of the software if the MetraTechSubInfo table exists. This procedure replaces all existing values for the specified subscriber. If you set vCity, vState, vZip, vEmail, or vFax to an empty string, the value “None”...
UpdateSub_v2000() Stored procedure for updating a subscriber’s record in the database. Parameters Note: Specify all parameters. The constraints column shows specific value or range constraints. Note that the vExternalId parameter must have a data type of CHAR(30). For syntax rules and constraints applicable to all parameters, see Parameter Data Type...
If you’re maintaining code originally developed for v. 1.3x.x, all the PSPI functions you need are in this one chapter. For ReadiVoice v. 2.50.0 and later, the vExternalId parameter must have a data type of CHAR(30), even if you’re using legacy SPs.
ReadiVoice PSPI Reference AddGrpAccessClass() Stored procedure for adding an access class to a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
AddSub_v1300() Stored procedure for adding a subscriber to the database. Parameters Specify all parameters. The constraints column shows specific value or range constraints. Note that the vExternalId parameter must have a data type of CHAR(30). For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
ReadiVoice PSPI Reference AssignPhoneNum() Stored procedure for adding an access phone number to a subscriber’s account and, optionally, changing the subscriber’s access code. This procedure is compatible with v. 1.30.0 or later of the software. The new number’s access number type (private or shared) must match the number type of the subscriber’s existing phone number(s), and its access class...
DelAssignedPN() Stored procedure for deleting an access phone number from a subscriber’s account. Compatible with v. 1.30.0 or later of the software. If all the access phone numbers for a subscriber are deleted, the subscriber is marked inactive. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
ReadiVoice PSPI Reference DelGrpAccessClass() Stored procedure for removing an access class from a subscriber group. Compatible with v. 1.30.0 or later of the software. Parameters Specify all parameters. The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
GetGroupInfo_v1300() Stored procedure for retrieving all subscriber group data. For each group in the database, it returns the set of values shown below. A return code of 100 flags the end of the list of groups. Parameters None Return Values Data Type SMALLINT CHAR (50)
ReadiVoice PSPI Reference Data Type SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT GetGrpAccessClass Stored procedure for retrieving a list of access classes associated with a subscriber group. A return code of 100 flags the end of the subscriber group’s access classes.
Stored procedure for retrieving a list of all prompt sets in the database. For each prompt set, it returns both the ID and the name. A return code of 100 flags the end of the list of prompt sets. Compatible with all versions of the ReadiVoice/ConferenceNow! software. Parameters None...
ReadiVoice PSPI Reference GetSubAccNums() Stored procedure for retrieving a list of all access phone numbers assigned to a subscriber. For each of the subscriber’s access numbers, it returns the phone number, its class ID, and its class name. The end of the list is marked by a list member with the CHAR values set to empty strings and the INT values set to 0.
GetSub_v1300() Stored procedure for retrieving a subscriber’s record from the database. Parameters The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see Procedures” Parameter Data Type vSubscriberId Return Values Data Type SMALLINT CHAR (30) CHAR (255)
Data Type CHAR (255) CHAR (255) GetSysConfig() Stored procedure for retrieving the system configuration settings from the database. Compatible with v. 1.10.0 or later of the software. Parameters None Return Values Data Type SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Legacy v.
ReadiVoice PSPI Reference ReAssignAccCode() Stored procedure for changing the access code assigned to a subscriber. Compatible with v. 1.30.0 or later of the software. Note that, with v. 2.10.0, the system configuration setting for code length changed from a maximum value constraint to a minimum.
ReAssignPhoneNum() Stored procedure for removing or replacing an existing access phone number assigned to a subscriber. Compatible with v. 1.30.0 or later of the software. To remove an access number without replacing it, set LocalNewAccNum to an empty string. The procedure fails if the number you’re removing is the subscriber’s only access number (a subscriber must have at least one access phone number).
ReadiVoice PSPI Reference UpdateSub_v1300() Stored procedure for updating a subscriber’s record in the database. Parameters Specify all parameters. The constraints column shows specific value or range constraints. Note that the vExternalId parameter must have a data type of CHAR(30). For syntax rules and constraints applicable to all parameters, see “Calling Stored Procedures”...
Page 288
ReadiVoice PSPI Reference Parameter Data Type vClientSubA CHAR (255) vClientSubB CHAR (255) vProviderId Return Values Data Type Constraints Description User-defined subscriber field 1. Set to empty string if not using. User-defined subscriber field 2. Set to empty string if not using.
For ReadiVoice v. 2.50.0 and later, the vExternalId parameter must have a data type of CHAR(30), even if you’re using legacy SPs. You can use the v. 1.20.0 PSPI functions with newer versions of the ReadiVoice software to avoid rewriting your code. However, you can’t access the newer options and features.
ReadiVoice PSPI Reference AddSub_v1200() Stored procedure for adding a subscriber to the database. This SP is similar to AddSubscriber(), but adds parameters for several additional options and features. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
GetGroupInfo() Stored procedure for extracting records of all subscriber groups from the database. For each subscriber group, it returns the values shown below. A return code of 100 flags the end of the list of subscriber groups. Compatible with v. 1.10.0 or later of the software. Parameters None Return Values...
ReadiVoice PSPI Reference GetPromptInfo() Stored procedure for retrieving a list of all prompt sets in the database. For each prompt set, it returns both the ID and the name. A return code of 100 flags the end of the list of prompt sets. Compatible with all versions of the ReadiVoice/ConferenceNow! software.
Page 295
Parameters The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see Procedures” Parameter Data Type vSubscriberId vBillingId vSubscriberPin CHAR(20) vAccessCode CHAR(20) Return Values Data Type SMALLINT CHAR (30) CHAR (255) SMALLINT CHAR (20) DATETIME YEAR TO MONTH CHAR (255)
GetSysConfig() Stored procedure for retrieving the system configuration settings from the database. Compatible with v. 1.10.0 or later of the software. Parameters None Return Values Data Type SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Legacy v. 1.20.0 PSPI Functions Description Return code (0: OK;...
ReadiVoice PSPI Reference UpdateSub_v1200() Stored procedure for updating a subscriber’s record in the database. This SP is similar to UpdateSubscriber(), but adds parameters for several additional options and features. Parameters Specify all parameters. The constraints column shows specific value or range constraints.
Caution! Polycom authorizes the use of only the stored procedures described in this publication. Other .sp files reside in the ReadiVoice file system; however, those not included here are designed for Polycom internal use only and may cause unforeseen problems if used otherwise.
ReadiVoice PSPI Reference AddSubscriber() Stored procedure for adding a subscriber to the database. Compatible with v. 1.10.0 or later of the software. This procedure expects the v. 1.10.0-compatible values for the Roll Call feature (0-3). It maps these to current values as follows:...
GetGroupInfo() Stored procedure for extracting records of all subscriber groups from the database. For each subscriber group, it returns the values shown below. A return code of 100 flags the end of the list of subscriber groups. Compatible with v. 1.10.0 or later of the software. Parameters None Return Values...
ReadiVoice PSPI Reference GetPromptInfo() Stored procedure for retrieving a list of all prompt sets in the database. For each prompt set, it returns both the ID and the name. A return code of 100 flags the end of the list of prompt sets. Compatible with all versions of the ReadiVoice/ConferenceNow! software.
Page 307
Parameters The constraints column shows specific value or range constraints. For syntax rules and constraints applicable to all parameters, see Procedures” Parameter Data Type vSubscriberId vBillingId vSubscriberPin CHAR(20) vAccessCode CHAR(20) Return Values Data Type SMALLINT CHAR (30) CHAR (255) SMALLINT CHAR (20) DATETIME YEAR TO MONTH CHAR (255)
GetSysConfig() Stored procedure for retrieving the system configuration settings from the database. Compatible with v. 1.10.0 or later of the software. Parameters None Return Values Data Type SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT SMALLINT Proprietary & Confidential Legacy v. 1.10.0 PSPI Functions Description Return code (0: OK;...
ReadiVoice PSPI Reference UpdateSubscriber() Stored procedure for updating subscriber information in the database. Compatible with v. 1.10.0 or later of the software. This procedure expects the v. 1.10.0-compatible values for the Roll Call feature (0-3). It maps these to current values as follows:...
Page 312
ReadiVoice PSPI Reference Parameter Data Type vContinuation SMALLINT vAddress CHAR (255) vPhone CHAR (30) vTitle CHAR (30) vClientSubA CHAR (255) vClientSubB CHAR (255) Return Values Data Type Constraints Description Conference continuation option changeable for 0, 1 current conference. 0: No; 1: Yes.
Page 313
Defines and Return Codes This appendix documents the return (error) codes returned by PSPI functions and the database length defines used by PSPI function parameters. PSPI Return Codes All stored procedure calls (SPCs) pass back a return (error) code in the first return value.
Page 314
ReadiVoice PSPI Reference Return Code Description Invalid RollCall. Must be one of the following: 0: Entry tone 1: Name entry 2: Silence The specified RollCall setting, 1, isn’t compatible with the specified NameRecord setting, 0. Invalid NameRecordEnable. Must be one of the following:...
Page 315
Return Code Proprietary & Confidential Description Invalid password enable. Must be one of the following: 0: Password not changeable by subscriber 1: Password changeable by subscriber Invalid ConfRecAvailable. Must be one of the following: 0: Conference recording not available 1: Conference recording available Invalid AccountStatus.
Page 316
ReadiVoice PSPI Reference Return Code Description For AssignPhoneNum procedure only. The specified access class isn’t in the database. For AssignPhoneNum procedure only. The specified access number type is private, but the subscriber already has one or more shared access phone numbers.
Page 317
Return Code Proprietary & Confidential Description Invalid ConfTermTime. Must be between 5 and 480, inclusive. AccountStatus can’t be 2 (deleted) for new subscriber. For ReAssignPhoneNum procedure only. No new access number is specified and the old access number is the subscriber’s only access number.
Page 318
ReadiVoice PSPI Reference Return Code Description RoutedMode isn’t set properly in database. For GetSubscriber procedure only. The specified BillingId does not exist in database. For GetSubscriber procedure only. Multiple subscriber records have this BillingId. The specified access phone number isn’t in the database.
Page 319
Return Code Proprietary & Confidential Description For AddSubAndAccNum procedure only. The system is configured to accept only private numbers. If the system uses hidden numbers, this hidden number and access code combination is already in use. If the system doesn’t use hidden numbers, this access number and access code combination is already in use.
Page 320
ReadiVoice PSPI Reference Return Code Description Can’t specify both AccessCode and ParticipantPin. Both AccessCode and ParticipantPin are blank. Can’t specify ParticipantPin in traditional call flow setting. Duplicate AccessNum in stored procedure call. AccessCode is specified, but traditional call flow isn’t enabled.
Page 321
Return Code Proprietary & Confidential Description For UpdateSub_v1200 and UpdateSubscriber procedures. The new access number isn’t in the same number class as the existing access number. The specified access code isn’t available. The specified sessionId and appId combination isn’t in the database.
Page 322
ReadiVoice PSPI Reference Return Code Description Pair (AccessNum, ParticipantPin) must be unique. Invalid StartLO. Must be 0 or 1. Invalid StartLOEnable. Must be 0 or 1. Internal Error. Unknown password type in call to IsPinUnique. For UpdateSysConfig_v2500 procedure only. Confidence must be between 0 and 100.
Page 323
Return Code Proprietary & Confidential Description For UpdateSysConfig_v2500 procedure only. Invalid UseHiddenNumber. Must be 0 or 1. For UpdateSysConfig_v2500 procedure only. Invalid ValidateOnAccCode. Must be 0 or 1. For UpdateSysConfig_v2500 procedure only. Invalid TransNumberType. Must be 0, 1, or 2. For UpdateSysConfig_v2500 procedure only.
Page 324
ReadiVoice PSPI Reference Return Code Description For AddModSubGrp_v2500 procedure only. Contact name can’t be empty string if GroupType is 1 (corporate). For AddModSubGrp_v2500 procedure only. Contact phone can’t be empty string if GroupType is 1 (corporate). For AddModSubGrp_v2500 procedure only. Credit card number can’t be empty string if GroupType is 1 (corporate) and...
Page 325
Database Length Defines Many stored procedures take CHAR parameters with defined lengths. For your convenience, the parameter tables in the reference chapters show the values of the defines, not the names of the defines. The table below cross-references the names of the defines with their defined values. Define DB_ACC_NUMS_STR_LEN DB_ACCESS_LEN...
Need help?
Do you have a question about the ReadiVoice and is the answer not in the manual?
Questions and answers