AFHookSwitch(3)						      AFHookSwitch(3)



NAME
  AFHookSwitch,	AFFlashHook - manipulate phone hookswitch

SYNTAX
  #include <AF/AFlib.h>

  void AFHookSwitch (AC	ac, int	onoff)

  void AFFlashHook (AC ac, int duration)

ARGUMENTS

  ac	    The	audio context of a phone device.

  duration  Duration of	a switch hook flash, in	milliseconds.

  onoff	    Specifies the desired state	of the phone device's hookswitch,
	    OnHook or OffHook.

DESCRIPTION
  The AFHookSwitch function places the hookswitch on the phone device into
  the state specified by onoff.

  AFFlashHook flashes the hookswitch on	the phone device for duration mil-
  liseconds.

NOTES
  The only phone device	supported is DECaudio.

SEE ALSO
  AFCreatePhoneAC(3), AFQueryPhone(3), AFDialPhone(3)
  AF(1)


BUGS
  If you encounter a reproducible bug, please submit a problem report to
  (af-bugs@crl.dec.com).

COPYRIGHT
  Copyright 1990-1994, Digital Equipment Corporation.
  See AF(1) for	a full statement of rights and permissions.

AUTHORS
  Digital Cambridge Research Lab