(Page 2 of 17 in this chapter) Version
typedef struct
{
DWORD switch_number;
DWORD bus;
DWORD stream;
DWORD timeslot;
} PPX_MVIP_ADDR
DWORD KeepOnHold( MYCONTEXT *cx )
{
DWORD e;
unsigned port_id;
CTA_EVENT event;
port_id = cx->id;
if( cx->conn_state != CTX_ONHOLD )
{
/* Need to add as a listener to the hold message
* connection.
*/
cx->conn_state = CTX_ONHOLD;
listeners[port_id].switch_number = cx->swi;
listeners[port_id].bus = MVIP95_LOCAL_BUS;
listeners[port_id].stream = 1;
listeners[port_id].timeslot = cx->time_slot;
e = ppxAddListeners( ppxhd[HOLD_MSG],
&listeners[port_id], 1 );
if (e != SUCCESS)
{
return e;
}
}
(Page 2 of 17 in this chapter) Version