Contents

BSMI-Level Call Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

Media Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

Signal Generation and Tone Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

Voice Record and Play . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

Fax Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

File Format Manipulation Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

The Infopkt Stream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

Fax Infopkt Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Chapter 3 – Developing Applications Using the Bfv API . . . . . . . . 56

This chapter describes how to develop applications with Brooktrout Fax

 

Software.

 

Developing a Voice Application

57

Recording and Playing Voice

57

Recording Voice

58

Playing Back the Voice Message

59

Using Prompt Files

59

Using the mkprompt Utility

60

Creating a New Prompt File

60

Updating an Existing Prompt File

61

Developing a Fax Application

61

Sending and Receiving a Fax

61

Sending a Fax from One Channel to Another

62

Sending a Fax to a Channel from an External Fax Machine

63

Using Bfv API Fax Functions

64

Using High- and Low-Level Functions

64

Sending a Fax Using Function Calls for Noninfopkt-Formatted Raw G3 Files . . . .

70

Receiving a Fax Using Function Calls for Noninfopkt-Formatted Raw G3 Files . . .

73

Sending a Fax Using Calls for TIFF-F Files

75

Receiving a Fax Using Calls for TIFF-F Files

76

Receiving and Storing a Fax in MMR or MR Format

78

Accessing an Infopkt Stream from an Application

83

Sending a TIFF-F Fax File Within an Infopkt Stream

84

Combining Data on a Single Page Using TIFF-F Fax Files

84

Accessing a TIFF-F File from an Application

87

November 2009

7

Page 7
Image 7
Dialogic 6.2 manual Developing Applications Using the Bfv API, Contents