| CONTACT | DEVELOPER CENTER | PARTNERS | SITEMAP
GO
Useful Links
  • Search Helpweb
    
    

Dialogic Support Helpweb

Dialogic® Host Media Processing (HMP) Software

Dialogic® Device Management API Connection Types

An overview of when/how Dialogic® Device Management API calls dev_Connect and dev_PortConnect should be used

Introduction: There are now several options for connecting audio and video media transports and endpoint devices. Dev_PortConnect() was introduced in the latest Dialogic® Multimedia Software for AdvancedTCA Release 1.1 and Dialogic® Host Media Processing Software Release 3.1LIN. In prior releases of each, dev_Connect() was introduced as a way of interconnecting IPML, MM, T.38 fax and CNF devices.

It may not be readily apparent when, and with which devices, connection methods should be used. This technote explains the intent of the different API calls, and gives guidelines for using both dev_Connect and dev_PortConnect.

Dev_Connect()
Dev_Connect() is widely used by most current IPML/MM application. By default it connects audio linear ports and video native ports. In this case, "linear" means audio in a straight PCM format. This can be thought of as the "lowest common denominator" from which other forms of compressed audio can be derived using a codec. So, audio transcoding is done with dev_Connect(), for example. Video "native" ports, however, mean that the video stream is available only in its native format - i.e. the one in which it was generated, so no transcoding can be done. Currently the format used is H.263.

A dev_Connect() connection can be either half or full duplex, depending on the needs of the application. The desired type of connection is specified as a paramter in the function call.

Use of dev_Connect() should be limited to connecting legacy timeslot-based devices: Connections made with dev_Connect() should be broken with dev_Disconnect().

Dev_PortConnect
The API call was introduced to allow native audio connections in addition to native video. It is used to accomplish native play, record and hairpinning. Dev_PortConnect() should be used every time a "p-stream" (packet interface) is connected internally to a another p-stream. Devices that can be used are: Dev_PortConnect() is by nature half duplex. A single dev_PortConnect call will connect the transmit packet stream of the device specified to one or more recieve ports in a port list. Two calls are needed - one for each transmit device - to achieve a full duplex connection.

DevPortConnect() allows granular control over which ports to connect, e.g., connect only audio or only video. And with multiple receive ports in its port list, a one-to-many connection can be done to broadcast to multiple devices. A transcoding flag is used to indicate if the connection is native, or if transcoding should be done. Currently (10/2007) video transcoding cannot be done, but the expectation is that it will soon be available.

Some amount of preparatory work needs to be done before dev_PortConnect can be called. Structs containing internal information on transmit and receive ports for all devices involved must be obtained from calls to dev_GetTransmitPortInfo() and dev_GetRecievePortInfo(). These asynchronous calls return information on their respective ports that must be saved and then used in the dev_PortConnect() call.

Connections made with dev_PortConnect() should be broken with dev_PortDisconnect().

Product List
The Device Management API is used on both Dialogic® HMP Software and Dialogic® Multimedia Platform for AdvancedTCA® .

Related Documentation
Dialogic® Device Management API Reference Manual



Feedback

Please rate the usefulness of this page:  

0 - not useful at all
1 - potentially useful
2 - quite useful
3 - very useful
4 - exactly the information I needed     

Please enter a comment about this page: