CA_Set_Profile_Defaults()

Purpose

Sets default values for an application profile.

Libraries

Blueworx Voice Response library (libvae.a)

Custom Server library (libca.a)

Syntax

#include "CA_header.h"
#include "CA_access_db.h"
int CA_Set_Profile_Defaults (
 PROFILE_INFO_ST  *profile_info_sp
);

Description

This subroutine sets the default values for an application profile. It can be called prior to CA_Create_Profile() to set default values for the PROFILE_INFO_ST output structure, described in PROFILE_INFO_ST.

CA_Set_Profile_Defaults() sets its buffer to zero and then sets the following elements for all the mailboxes:

box_status = MAILBOX_INACTIVE;
user_status = USER_STATUS_IN;
take_messages = TAKE_MESSAGES;
prompt_level = PROMPT_LEVEL_NORMAL;
referral_type = REFERRAL_TYPE_PHONE;
retrieval_order = RET_ORDER_FIFO;
access_mode = ACCESS_GLOBAL;

Parameters

profile_info_sp
A pointer to a PROFILE_INFO_ST output structure that will be filled in as described in PROFILE_INFO_ST.

Return codes

0
Successful
-1
Unsuccessful (global error number CA_errno is set to indicate the error)

Error names

CA_INV_ADDR
CA_NOT_INIT
CA_TERMINATING

Related information

CA_Create_Profile(), CA_Delete_Profile(), CA_Get_Profile(), CA_Get_Profile_Count(), CA_Get_Profile_List(), CA_Update_Profile(), the Blueworx Voice Response for AIX: Designing and Managing State Table Applications information.