Help us shape the future of Go! Take the 2026 Go Developer Survey

service

package
v1.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DispatchCall

func DispatchCall(ctx context.Context, psrpcClient rpc.IOInfoSIPClient, log logger.Logger, info *sip.CallInfo) sip.CallDispatch

func GetAuthCredentials

func GetAuthCredentials(ctx context.Context, psrpcClient rpc.IOInfoSIPClient, call *rpc.SIPCall) (sip.AuthInfo, error)

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	conf *config.Config, log logger.Logger, srv rpc.SIPInternalServerImpl, sipServiceStop sipServiceStopFunc,
	sipServiceActiveCalls sipServiceActiveCallsFunc, cli rpc.IOInfoSIPClient, bus psrpc.MessageBus, mon *stats.Monitor,
) *Service

func (*Service) DeregisterCreateSIPParticipantTopic

func (s *Service) DeregisterCreateSIPParticipantTopic()

func (*Service) DeregisterTransferSIPParticipantTopic

func (s *Service) DeregisterTransferSIPParticipantTopic(sipCallId string)

func (*Service) DispatchCall

func (s *Service) DispatchCall(ctx context.Context, info *sip.CallInfo) sip.CallDispatch

func (*Service) GetAuthCredentials

func (s *Service) GetAuthCredentials(ctx context.Context, call *rpc.SIPCall) (sip.AuthInfo, error)

func (*Service) GetMediaProcessor

func (s *Service) GetMediaProcessor(_ []livekit.SIPFeature, _ map[string]string, _ string, _ sip.MediaProcessorOpts) msdk.PCM16Processor

func (*Service) Health

func (s *Service) Health() stats.HealthStatus

func (*Service) OnInboundInfo added in v1.3.0

func (s *Service) OnInboundInfo(log logger.Logger, callInfo *rpc.SIPCall, headers sip.Headers)

func (*Service) OnSessionEnd

func (s *Service) OnSessionEnd(ctx context.Context, callIdentifier *sip.CallIdentifier, state *sip.CallState, reason string)

func (*Service) RegisterCreateSIPParticipantTopic

func (s *Service) RegisterCreateSIPParticipantTopic() error

func (*Service) RegisterTransferSIPParticipantTopic

func (s *Service) RegisterTransferSIPParticipantTopic(sipCallId string) error

func (*Service) Run

func (s *Service) Run() error

func (*Service) Stop

func (s *Service) Stop(kill bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL