home *** CD-ROM | disk | FTP | other *** search
- /* */
- parse upper arg server device type multi .
-
- /* ignore type if "multi" */
-
- if multi = "YES" then call setclip("AVMAbortMulti", "YES")
-
- if type = 'MULTI' then type = getclip("AVMPlayMultiType")
-
- if type = 'VOICE' then
- if device = 'INTERNALSPEAKER' | device = 'TELEPHONELINE' | device = 'EXTERNALMIC' | device = 'LOCALHANDSET' then do
- faxserver = server || 'F'
- if show('p', faxserver) then do
- address value faxserver
- 'abort'
- end; else if show('p', server) then do
- address value server
- 'abort'
- end
- end; else if device = 'AMIGA' then do
- if show('p', 'AVMVOICE2IFF') then address 'AVMVOICE2IFF' 'abort'
- /*
- if show('p', 'AGMSPlaySound') then address 'AGMSPlaySound' 'StopPlaying'
- */
- if show('p', 'DSOUNDABORT') then address 'DSOUNDABORT' 'Abort'
- if show('p', 'AGMSRecordSound') then address 'AGMSRecordSound' 'StopRecording'
- end; else if device = 'AMIGADIRECT' then do
- if show('p', 'AVMVOICE2IFF') then address 'AVMVOICE2IFF' 'abort'
- end
- else if type = 'FAX' then
- say 'cannot abort viewfax from here'
-
- exit
-