pjsua_transport_create method

int pjsua_transport_create(
  1. int type,
  2. Pointer<pjsua_transport_config> cfg,
  3. Pointer<pjsua_transport_id> p_id
)

Create and start a new SIP transport according to the specified settings.

@param type Transport type. @param cfg Transport configuration. @param p_id Optional pointer to receive transport ID.

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

Implementation

int pjsua_transport_create(
  int type,
  ffi.Pointer<pjsua_transport_config> cfg,
  ffi.Pointer<pjsua_transport_id> p_id,
) {
  return _pjsua_transport_create(
    type,
    cfg,
    p_id,
  );
}