TELForwardSet
Causes incoming calls for one directory number to be forwarded to another.
pascal TELErr TELForwardSet ( TELDNHandle hTELDN, ConstStr255Param forwardDN, ConstStr255Param forwardName, ConstStr255Param forwardSubaddress, short forwardType, short numrings);
hTELDN- A handle to the directory number structure for the directory number whose calls are to be forwarded.
forwardDN- A pointer to a Pascal-style string containing the directory number to which calls are to be forwarded.
forwardName- A pointer to a Pascal-style string containing the name of the party whose calls are to be forwarded.
forwardSubaddress- A pointer to a Pascal-style string containing a subaddress, as defined by the ISDN S-Bus. Set this parameter only if the network supports subaddressing; otherwise, the function ignores it. To find out whether the network supports subaddressing, call the
TELGetInfofunction and check the fieldhasSubaddressin the telephone structure.forwardType- The type of forwarding requested. See "Call Forwarding Types" (page 3-11) for descriptions of the constants you can specify here. You should not, however, set this parameter to
telForwardTypeUnknown.numrings- The number of rings you want to occur before a call is forwarded.
- function result
- A result code.
DESCRIPTION
TheTELForwardSetfunction causes incoming calls for the directory number specified by thehTELDNparameter to be forwarded to the directory number specified by theforwardDNparameter. The type of forwarding is specified by theforwardTypeparameter.SEE ALSO
To stop call forwarding, call theTELForwardClearfunction (page 3-26).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help