Asterisk sip fromdomain add hostname

I have the following peer, the voip operator told me that asterisk sends the wrong fromdomain:
sip._udp.voip.provider.com.pbx.local
adding at the end the hostname of the machine (pbx.local)

How can I solve?
Thank you

this is the configuration of the peer:
type=peer
qualify=no
language=it
insecure=port,invite
host=voip.provider.com
fromuser=telephone_number
defaultuser=telephone_number
dtmfmode=rfc2833
canreinvite=no
nat=no
disallow=all
allow=alaw

Have you tried setting a fromdomain explicitly to what you want?

I added to the configuration fromdomain = voip.provider.com
but the result is the same
Thank you

I suggest actually showing the SIP trace then. It can be done using “sip set debug on”.

I suspect this is a broken DNS configuration that is causing the DNS resolver to treat the names as relative to pbx.local, and canonicalising them, on that basis.