Skip to content

Commit

Permalink
Add CanAccept and HealthPort
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Der committed Nov 27, 2023
1 parent 201459f commit 8e5450c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ type Config struct {
ApiSecret string `yaml:"api_secret"` // required (env LIVEKIT_API_SECRET)
WsUrl string `yaml:"ws_url"` // required (env LIVEKIT_WS_URL)

SIPPort int `yaml:"sip_port"`
RTPPort rtcconfig.PortRange `yaml:"rtp_port"`
Logging logger.Config `yaml:"logging"`
HealthPort int `yaml:"health_port"`
SIPPort int `yaml:"sip_port"`
RTPPort rtcconfig.PortRange `yaml:"rtp_port"`
Logging logger.Config `yaml:"logging"`

// internal
ServiceName string `yaml:"-"`
Expand Down
4 changes: 4 additions & 0 deletions pkg/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,7 @@ func (s *Service) HandleDispatchRules(callingNumber, calledNumber, srcAddress st

return resp.RoomName, resp.ParticipantIdentity, resp.RequestPin, false
}

func (s *Service) CanAccept() bool {
return true
}

0 comments on commit 8e5450c

Please sign in to comment.