Skip to content

Commit

Permalink
fix: use ua hostname on Invite From header validation
Browse files Browse the repository at this point in the history
  • Loading branch information
emiago committed Nov 24, 2024
1 parent b546a3d commit f321362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diago.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ func (dg *Diago) InviteBridge(ctx context.Context, recipient sip.Uri, bridge *Br
if fromHDR := inviteReq.From(); fromHDR != nil {
fromHDR.Params["tag"] = sip.GenerateTagN(16)
if fromHDR.Address.Host == "" { // IN case caller is set but not hostname
fromHDR.Address.Host = dg.client.Hostname()
fromHDR.Address.Host = dg.ua.Hostname()
}
}

Expand Down

0 comments on commit f321362

Please sign in to comment.