Skip to content

Commit

Permalink
fix: proper caller id for external calls
Browse files Browse the repository at this point in the history
  • Loading branch information
crazybolillo committed Oct 21, 2024
1 parent e5f9078 commit 65d84fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/service/bouncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package service

import (
"context"
"fmt"
"github.com/crazybolillo/eryth/internal/db"
"github.com/crazybolillo/eryth/internal/sqlc"
"github.com/crazybolillo/eryth/pkg/model"
Expand Down Expand Up @@ -36,7 +37,7 @@ func (b *Bouncer) Check(ctx context.Context, endpoint, dialed string) model.Boun
if row.Callerid.Valid {
callerId = row.Callerid.String
} else {
callerId = endpoint
callerId = fmt.Sprintf(`"" <%s>`, endpoint)
}

return model.BouncerResponse{
Expand Down

0 comments on commit 65d84fc

Please sign in to comment.