Table of Contents Index NMS Glossary Previous Page Next Page (Page 9 of 14 in this chapter) Version


mspDisconnect

Description

Disconnects a media channel between two MSPP endpoints.

Prototype

DWORD mspDisconnect (MSPHD ephd1,
MSPHD chnhd,
MSPHD ephd2)

ephd1 First MSPP endpoint handle.

chnhd MSPP channel handle.

ephd2 Second MSPP endpoint handle.

Return Values

Events

Details

When called, mspDisconnect disassociates the MSPP endpoints and MSPP channel in a specified connection. For example, in the case of voice channels, ephd1 must point to an RTP endpoint and ephd2 must point to a DS0 endpoint. In the case of fax channels, ephd1 must point to a UDP endpoint (for fax) and ephd2 must point to a DS0 endpoint. The channel and endpoints should be disabled (using the mspDisableChannel and mspDisableEndpoint primitives) before mspDisconnect is called.

Note: Endpoints must be specified in the same order as they were when mspConnect was called.

See Also

mspConnect

Example


ret = mspDisconnect( hEp1, hChan, hEp2);
if (ret != SUCCESS)
return FAILURE;
// Wait for event
ctaWaitEvent( hCta, &Event, CTA_WAIT_FOREVER );
// Check the reason code
if ( Event.id != MSPEVN_DISCONNECT_DONE ||
Event.value != CTA_REASON_FINISHED )
return FAILURE;


Table of Contents Index NMS Glossary Previous Page Next Page (Page 9 of 14 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.