
Description | Example | Errors
Name: |
int gl_route (int bddev, int chan, int tslot) | |
Inputs: |
int bddev |
|
|
int chan |
|
|
int tslot |
|
Returns: |
0 |
|
|
-1 |
|
Includes: |
gfpeb.h |
|
The gl_route( ) function connects and disconnects fax channel to PEB timeslot.
The gl_route function establishes or removes a connection between a logical fax channel and a PEB timeslot. The timeslot is used by the fax channel for both transmitting to and receiving from the PEB. If gl_route( ) is called to establish a connection and the fax channel is already connected to a PEB timeslot, the existing connection will be removed before the specified connection is established.
If gl_route( ) is called to remove a connection and no connection currently exists between the fax channel and a PEB timeslot, gl_route( ) will return an indication of success.
#include "gfpeb.h"
int faxchan, status;
/* disconnect faxchan from transmit and receive timeslots on
PEB */
status = gl_route(-1, faxchan, -1);
if (status)
{
fprintf(stderr, "gl_route( ) disconnect failed: %d\n", status);
return (status);
}
/* connect faxchan transmit and receive to timeslot 1 on PEB */
status = gl_route(-1, faxchan, 1);
if (status)
{
fprintf(stderr, "gl_route( ) connect failed:" " %d\n", status);
return (status);
}
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation