pjsua_conf_add_port method

int pjsua_conf_add_port(
  1. Pointer<pj_pool_t> pool,
  2. Pointer<pjmedia_port> port,
  3. Pointer<pjsua_conf_port_id> p_id
)

Add arbitrary media port to PJSUA's conference bridge. Application can use this function to add the media port that it creates. For media ports that are created by PJSUA-LIB (such as calls, file player, or file recorder), PJSUA-LIB will automatically add the port to the bridge.

@param pool Pool to use. @param port Media port to be added to the bridge. @param p_id Optional pointer to receive the conference slot id.

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

Implementation

int pjsua_conf_add_port(
  ffi.Pointer<pj_pool_t> pool,
  ffi.Pointer<pjmedia_port> port,
  ffi.Pointer<pjsua_conf_port_id> p_id,
) {
  return _pjsua_conf_add_port(
    pool,
    port,
    p_id,
  );
}