
Name: |
int grtProcessCallTermEvent (GRT_EVENT *event, GFQRECORD *qrec) | |
Inputs: |
GRT_EVENT *event |
|
|
GFQRECORD *qrec |
|
Outputs: |
GFQRECORD *qrec |
|
Returns: |
GRT_SUCCESS |
|
|
GRT_UNKNOWN_EVENT |
|
Includes: |
genra.h |
|
The grtProcessCallTermEvent( ) function processes a call term event. This function is a high-level function that provides the data that is associated with a GRT_CALL_TERM event to the user. The data will be a queue record. The function returns GRT_SUCCESS if the event is a GRT_CALL_TERM and the queue record pointer points to valid queue record data.
#include "gfq.h"
#include "genra.h"
GRT_EVENT event;
GFQRECORD qrec;
int status, chan = 1;
/* block for any event */
while ((status = grtGetEvent(chan, chan, &event)) == GRT_NO_EVENT)
Sleep(1000L);
if (event.event_type == GRT_CALL_TERM)
{
if (status = grtProcessCallTermEvent(&event, &qrec))
{
printf("[%2d] grtProcessCallTermEvent error"
" %d\n", event.chan, status);
return -1;
}
}
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation