pjsua_conf_connect method

int pjsua_conf_connect(
  1. int source,
  2. int sink
)

Establish unidirectional media flow from souce to sink. One source may transmit to multiple destinations/sink. And if multiple sources are transmitting to the same sink, the media will be mixed together. Source and sink may refer to the same ID, effectively looping the media.

If bidirectional media flow is desired, application needs to call this function twice, with the second one having the arguments reversed.

@param source Port ID of the source media/transmitter. @param sink Port ID of the destination media/received.

@return PJ_SUCCESS on success, or the appropriate error code.

Implementation

int pjsua_conf_connect(
  int source,
  int sink,
) {
  return _pjsua_conf_connect(
    source,
    sink,
  );
}