/mcpRemarks Local UDP could is reserved by EpLocalAddressGet, EpLocalAddressGetByIdx or EpLocalAddressGetByFamily. EpOpenById Creates media endpoint based on TSP data associated with the specified media device identifier. Syntax CMAPI HANDLE EpOpenById ( DWORD deviceId, StreamDirection streamDir, PRTPDATACALLBACK pCallback ); Parameters deviceId Media device identifier obtained by calling TAPI lineGetID() for ciscowave/in or ciscowave/out device class. streamDir Stream direction. This parameter can be one of the following values: • ToApp • ToNwk • Both pCallback Pointer to an application callback function to be called when data buffer is received/sent or an error occurred. Return Value If no errors occurs, this function returns a handle which can be used to reference the endpoint. If an error occurs, NULL is returned, and a specific error code can be retrieved by calling EpApiGetLastError. Description Error code EpAPI is not initialized. EP_ERR_INIT The following describes a possible cause of the error: • Specified device identifier is invalid. • Required data associated with device identifier data is missing • Specified stream direction is invalid EP_ERR_PARAM_INVALID Cisco Unified TAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs 432 Cisco TSP Media Driver EpOpenById