TELDNDSet
Activates the Do Not Disturb feature, as implemented by the telephone network switch, on a directory number that you specify.
pascal TELErr TELDNDSet (TELDNHandle hTELDN, short dndType);
hTELDN- A handle to the directory number structure for the directory number on which you are setting Do Not Disturb.
dndType- The type of Do Not Disturb feature you are setting. The section "Do Not Disturb Types" (page 3-12) describes the constants to which you can set this field.
- function result
- A result code.
DESCRIPTION
TheTELDNDSetfunction sets the Do Not Disturb feature for the directory number specified by thehTELDNparameter. The type of Do Not Disturb feature is specified by thedndTypeparameter. For example, to shut out all incoming calls, setdndTypetotelDNDIntExt. Note, however, that your application can provide more complex Do Not Disturb capabilities by inspecting the alerting pattern for an incoming call and rejecting unwanted calls (by callingTELReject).SEE ALSO
To clear the Do Not Disturb feature, call theTELDNDClearfunction (page 3-27).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help