(Page 11 of 16 in this chapter)


ppxRemoveListeners

Description

Remove listeners from a connection.

Prototype

DWORD ppxRemoveListeners ( PPXHD ppxhd,
PPX_MVIP_ADDR listeners[],
unsigned count )

ppxhd Handle returned by ppxCreateConnection or by ppxOpenConnection.

listeners[] Pointer to a PPX_MVIP_ADDR structure. The structure is defined as follows:


typedef struct
{
 DWORD switch_number;
DWORD bus;
DWORD stream; DWORD timeslot; } PPX_MVIP_ADDR
See the Details section for a description of these fields.

count Number of listeners to remove.

Return Values

Events

Details

This function removes listeners from a connection. Any unused intervening timeslots are freed, but the talker remains associated with the connection.

The PPX_MVIP_ADDR structure contains the following fields:

Field

Description

switch_number

Switch number of the board as defined in ppx.cfg

bus

Acceptable values are:
MVIP95_MVIP_BUS
MVIP95_LOCAL_BUS
MVIP95_MC1_BUS

stream

The stream number of the listener.

timeslot

The timeslot of the listener.

See Also

ppxAddListeners, ppxCreateConnection, ppxOpenConnection

Example

DWORD VoiceConx( CTAHD ctahd, MYCONTEXT *cust, BOOL make_conn )
{
    DWORD         ret;
    
    listeners[cust->id].stream = 1;
    listeners[cust->id].timeslot = cust->time_slot;        
    listeners[cust->id].switch_number = cust->swi ;
    listeners[cust->id].bus = MVIP95_LOCAL_BUS;
    
    if ( cust->conn_state == CTX_ONHOLD )
    {
       /*
        * If the caller had been put on hold, need to take them
        * off of hold before making the voice connection to the
        * Operator.
        */
 
       ppxRemoveListeners( ppxhd[HOLD_MSG], &listeners[cust->id], 1 );
    }



(Page 11 of 16 in this chapter)


tech_support@nmss.com
Copyright © 1999, Natural MicroSystems, Inc. All rights reserved.