Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ type Config struct {
NAT1To1IP string `yaml:"nat_1_to_1_ip"`
ListenIP string `yaml:"listen_ip"`

UDPMaxPayload int `yaml:"udp_max_payload"`
// if different from signaling IP
MediaUseExternalIP bool `yaml:"media_use_external_ip"`
MediaNAT1To1IP string `yaml:"media_nat_1_to_1_ip"`
Expand Down
5 changes: 5 additions & 0 deletions pkg/sip/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import (
"sync/atomic"
"time"

"github.com/livekit/sipgo/transport"

"google.golang.org/protobuf/types/known/emptypb"

msdk "github.com/livekit/media-sdk"
Expand Down Expand Up @@ -73,6 +75,9 @@ func NewService(region string, conf *config.Config, mon *stats.Monitor, log logg
if log == nil {
log = logger.GetLogger()
}
if conf.UDPMaxPayload > 0 {
transport.UDPMTUSize = conf.UDPMaxPayload
}
if conf.MediaTimeout <= 0 {
conf.MediaTimeout = defaultMediaTimeout
}
Expand Down