Use UpdateProfile to modify information about the current mailbox in the current application profile. (For more information about application profiles, see the Blueworx Voice Response for AIX: Designing and Managing State Table Applications information.)
UpdateProfile can modify any of the following information for a caller's mailbox:
Your application should include a check to verify that the caller is authorized to update the specified information with UpdateProfile. For example, a caller who updates Access Mode must be authorized to control access to other mailboxes in the application profile.
Before you use UpdateProfile, you must set the Caller - Profile ID (SV20) and Caller: Mailbox - ID (SV32) system variables.
UpdateProfile has either one or two parameters, depending on what is being updated.
1=out
2=sick
3=busy
4=travel
1=novice
2=expert
1=beeper
1=last in first out
1=do not take messages
1 through 255
1=active
1=read access to any mailbox in this profile
2=read/write access for current mailbox only.
UpdateProfile can have one of the following results:
When using an ASCII editor, code this action with these parameters in the following order:
For example:
label: "Check Edges" UpdateProfile("PASSWORD", in1_n) edge EDGE_UPD_PROFILE_COMPLETE: complete edge EDGE_UPD_PROFILE_FAILED: failed ; UpdateProfile("OWNER_STATUS", in1_n); UpdateProfile("PROMPT_LEVEL", in1_n); UpdateProfile("REFERRAL_EXT_TYPE", in1_n); UpdateProfile("RETRIEVAL_ORDER", in1_n); UpdateProfile("REFERRAL_EXT", in1_n); UpdateProfile("ANNOUNCE_ONLY", in1_n); UpdateProfile("GREETING_ID", in1_n); UpdateProfile("MAILBOX_STATUS", in1_n); UpdateProfile("ACCESS_MODE", in1_n);
The parameters and edges are described above under "Parameters" and "Possible results". For more information, see Testing a state table using the debugger.