pjsua_transport_register method

int pjsua_transport_register(
  1. Pointer<pjsip_transport> tp,
  2. Pointer<pjsua_transport_id> p_id
)

Register transport that has been created by application. This function is useful if application wants to implement custom SIP transport and use it with pjsua.

@param tp Transport instance. @param p_id Optional pointer to receive transport ID.

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

Implementation

int pjsua_transport_register(
  ffi.Pointer<pjsip_transport> tp,
  ffi.Pointer<pjsua_transport_id> p_id,
) {
  return _pjsua_transport_register(
    tp,
    p_id,
  );
}