service

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 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.IOInfoClient, log logger.Logger, info *sip.CallInfo) sip.CallDispatch

func GetAuthCredentials

func GetAuthCredentials(ctx context.Context, psrpcClient rpc.IOInfoClient, 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.IOInfoClient, 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) msdk.PCM16Processor

func (*Service) Health

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

func (*Service) OnSessionEnd

func (s *Service) OnSessionEnd(ctx context.Context, callIdentifier *sip.CallIdentifier, callInfo *livekit.SIPCallInfo, 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