TEL-405: support originating calls from custom domains (#4349)

This commit is contained in:
He Chen
2026-03-06 12:25:40 -08:00
committed by GitHub
parent 7eaaaada5d
commit cb7dc2d02a
3 changed files with 13 additions and 8 deletions
+5
View File
@@ -655,6 +655,11 @@ func (s *SIPService) CreateSIPParticipantRequest(ctx context.Context, req *livek
return nil, err
}
}
if trunk != nil && trunk.FromHost != "" {
host = trunk.FromHost
} else if t := req.Trunk; t != nil && t.FromHost != "" {
host = t.FromHost
}
return rpc.NewCreateSIPParticipantRequest(projectID, callID, host, wsUrl, token, req, trunk)
}