XLine classes

class CDialogicMethods

? ^ 
    extends CDialogicBoards as public

Method Functions for Intel/Dialogic Telephony Line Cards.

This class instantiates all of the "verbs", actions that a controlling process might initiate upon a line.

Source:
DialogicMethods.h:15
Author:
Green Lizard Staff
Version:
1.01

Contents

^ 
EntityInherited FromTypeScopeShort Description
~CDialogicMethodsdestructor publicautomatically generated
CDialogicMethodsconstructor publicautomatically generated
CDialogicMethodsconstructor publicautomatically generated
Dialmethod publicMake a phone call
DisableToneCDialogicBoardsmethod publicDisable custon tone detection tables
DropCallmethod publicSame as Hanging up
EnableToneCDialogicBoardsmethod publicEnable custom tone detection tables
HangUpmethod publicHang up a call
InitCallmethod publicParameterize the call before it is made.
InitPlaymethod publicSet up the play structures and termination string
InitRecordmethod publicSet up record structures
LogCDialogicBoardsmethod publicSend a Log Message.
OpenDeviceCDialogicBoardsmethod publicA Helper Function for Setup.
OpenDeviceISDNCDialogicBoardsmethod publicA Helper Function for Setup.
OpenDeviceT1CDialogicBoardsmethod publicA Helper Function for Setup.
OpenDeviceT1FaxCDialogicBoardsmethod publicOpen a Fax Resource
OpenDeviceT1FaxChannelCDialogicBoardsmethod publicOpen a Fax Channel
operator =operator publicautomatically generated
Playmethod publicPlay a file over a phone call
print_GC_errorCDialogicBoardsmethod publicPrint a Global Call Error.
Recordmethod publicHalf Duplex Record to Memory
Recordmethod publicHald-Duplex Record to a File
ReleaseLineCDialogicBoardsmethod publicRelease a specific Line.
ReserveAnyLineCDialogicBoardsmethod publicReserve a line, without caring which one is received.
ReserveLineCDialogicBoardsmethod publicReserve a specific line for use.
Resetmethod publicReset control structures of a line
Route_N1_F1CDialogicBoardsmethod publicNetwork/Fax Routing Function
SendFaxmethod publicSend a Fax
SetupCDialogicBoardsmethod publicSetup the Dialogic Board.
StartRecordBGmethod publicRecord in the background
StopRecordBGmethod publicStop Recording in the background
TearDownCDialogicBoardsmethod publicTear Down the Dialogic Setup.
TransferToAgentmethod publicTransfer a call to another line
Unroute_N1_F1CDialogicBoardsmethod publicNetwork/Fax Unrouting Function
VoxCallmethod publicDeprecated - Make a phone call

destructor ~CDialogicMethods

? ^  > 
automatically generated
Source:
DialogicMethods.h
Code:
public ~ CDialogicMethods ( )

constructor CDialogicMethods

? ^  < > 
automatically generated
Source:
DialogicMethods.h
Code:
public CDialogicMethods ( const CDialogicMethods & )

constructor CDialogicMethods

? ^  < > 
automatically generated
Source:
DialogicMethods.h
Code:
public CDialogicMethods ( )

method Dial

? ^  < > 
Make a phone call
Source:
DialogicMethods.h:32
Code:
public long Dial ( LPCSTR PhoneNumber ,
int LineNumber ,
LPCSTR rcrd_filename ,
LPCSTR play_filename ,
LPCSTR live_filename ,
LPCSTR fax_filename ,
LPCSTR digitstring ,
LPCSTR AgentPhoneNumber ,
int AgentLineNumber )

method DisableTone

? ^  < > 
Disable custon tone detection tables
Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:180
Code:
public void DisableTone ( Channel * pline )

method DropCall

? ^  < > 
Same as Hanging up
Source:
DialogicMethods.h:50
Code:
public BOOL DropCall ( int LineNumber ,
CString Caller )

method EnableTone

? ^  < > 
Enable custom tone detection tables
Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:177
Code:
public void EnableTone ( Channel * pline )

method HangUp

? ^  < > 
Hang up a call
Source:
DialogicMethods.h:47
Code:
public BOOL HangUp ( int LineNumber )

method InitCall

? ^  < > 
Parameterize the call before it is made.
Source:
DialogicMethods.h:20
Code:
public void InitCall ( Channel * pline )

method InitPlay

? ^  < > 
Set up the play structures and termination string
Source:
DialogicMethods.h:23
Code:
public void InitPlay ( Channel * pline ,
LPCSTR TermStr )

method InitRecord

? ^  < > 
Set up record structures
Source:
DialogicMethods.h:26
Code:
public void InitRecord ( Channel * pline )

method Log

? ^  < > 
Send a Log Message.

A Helper function to centralize the peculiar code we use to jump between Micro$oft thread apartments.

Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:141
Code:
public void Log ( int Level ,
int LineNumber ,
LPCSTR Message )

method OpenDevice

? ^  < > 
A Helper Function for Setup.

This function handles the initialization which must be done for each channel on the board before any one channel can be used.

Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:101
Code:
public void OpenDevice ( int index ,
char * protocol )

method OpenDeviceISDN

? ^  < > 
A Helper Function for Setup.

This function handles the initialization which must be done for each channel on an ISDN board before any one channel can be used.

Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:117
Code:
public bool OpenDeviceISDN ( int index )

method OpenDeviceT1

? ^  < > 
A Helper Function for Setup.

This function handles the initialization which must be done for each channel on a T1 board before any one channel can be used.

Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:109
Code:
public bool OpenDeviceT1 ( int index )

method OpenDeviceT1Fax

? ^  < > 
Open a Fax Resource
Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:189
Code:
public void OpenDeviceT1Fax ( int faxchannels )

method OpenDeviceT1FaxChannel

? ^  < > 
Open a Fax Channel
Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:192
Code:
public void OpenDeviceT1FaxChannel ( int faxchannel )

operator =

? ^  < > 
automatically generated
Source:
DialogicMethods.h
Code:
public CDialogicMethods & operator = ( const CDialogicMethods & )

method Play

? ^  < > 
Play a file over a phone call
Source:
DialogicMethods.h:56
Code:
public int Play ( int LineNumber ,
LPCSTR FileName ,
LPCSTR TermStr )

method print_GC_error

? ^  < > 
Print a Global Call Error.

A Helper Function to get the textual information available from the Dialogic driver if a problem arises, for logging.

Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:133
Code:
public void print_GC_error ( int index ,
char * msg )

method Record

? ^  < > 
Half Duplex Record to Memory
Source:
DialogicMethods.h:62
Code:
public int Record ( int LineNumber ,
char * AudioBuffer )

method Record

? ^  < > 
Hald-Duplex Record to a File
Source:
DialogicMethods.h:59
Code:
public int Record ( int LineNumber ,
LPCSTR FileName )

method ReleaseLine

? ^  < > 
Release a specific Line.

We call this when we know a line is clear, or when a call has definitely terminated.

Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:174
Code:
public BOOL ReleaseLine ( int LineNumber )

method ReserveAnyLine

? ^  < > 
Reserve a line, without caring which one is received.

This function is usefull when a workload is to be accomplished, but there is no need to choose which lines the work is done. The return is the actual line used. Using this approach, the application does not need to maintain information about which lines are available.

Please note, there are not presently any exposed methods which can take advantage of this design!

Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:154
Code:
public int ReserveAnyLine ( void )

method ReserveLine

? ^  < > 
Reserve a specific line for use.

This is called by VoxCall to reserve a Line for a call. All lines start out blocked for a few seconds while the Dialogic board tests to be sure the T1 connections are good. Then unblocked events are sent to the application for each line that is good, and we call "ReleaseLine" for each of these events. This implies that there is a period between when "Start" is called and when "ReserveLine" will succeed: this period ends when the UNBLOCKED message is sent to the application.

Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:167
Code:
public BOOL ReserveLine ( int LineNumber )

method Reset

? ^  < > 
Reset control structures of a line
Source:
DialogicMethods.h:53
Code:
public BOOL Reset ( int LineNumber )

method Route_N1_F1

? ^  < > 
Network/Fax Routing Function
Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:183
Code:
public void Route_N1_F1 ( int netindex ,
int faxchannel )

method SendFax

? ^  < > 
Send a Fax
Source:
DialogicMethods.h:41
Code:
public int SendFax ( int LineNumber ,
int FaxChannel ,
LPCSTR FileName )

method Setup

? ^  < > 
Setup the Dialogic Board.

This is done manually so that the application may get a channel count, and then initialize any structure it may require, before Dialogic events start arriving. As soon as the board(s) are set up, at the very least, "UNBLOCKED" messages mayh begin to arrive before any functions are called.

The number of lines is probed for and set in this function.

Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:93
Code:
public bool Setup ( void )

method StartRecordBG

? ^  < > 
Record in the background
Source:
DialogicMethods.h:65
Code:
public int StartRecordBG ( int recording_channel ,
int recorded_channel ,
LPCSTR FileName )

method StopRecordBG

? ^  < > 
Stop Recording in the background
Source:
DialogicMethods.h:68
Code:
public int StopRecordBG ( int recording_channel )

method TearDown

? ^  < > 
Tear Down the Dialogic Setup.

The complement to "Setup", this is also done manually. Calling it more than once has no harmful effect.

Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:125
Code:
public bool TearDown ( void )

method TransferToAgent

? ^  < > 
Transfer a call to another line
Source:
DialogicMethods.h:44
Code:
public int TransferToAgent ( int LineNumber ,
int AgentLineNumber ,
LPCSTR PhoneNumber )

method Unroute_N1_F1

? ^  < > 
Network/Fax Unrouting Function
Inherited From:
CDialogicBoards
Source:
DialogicBoards.h:186
Code:
public void Unroute_N1_F1 ( int netindex ,
int faxchannel )

method VoxCall

? ^  < > 
Deprecated - Make a phone call
Source:
DialogicMethods.h:38
Code:
public long VoxCall ( int LineNumber ,
LPCSTR PhoneNumber ,
LPCSTR rcrd_filename ,
LPCSTR play_filename ,
LPCSTR live_filename ,
LPCSTR fax_filename ,
LPCSTR digitstring ,
LPCSTR AgentPhoneNumber ,
int AgentLineNumber )

Created Sun May 14 08:06:43 2006.
This documentation was generated automatically by
ccdoc v08r40 2003/05/15 bin_opt_msvc_MSWin32-x86-multi-thread-4.0.
Click here to submit a bug report or feature request for ccdoc.
Click here to return to the top of the page.