Provides generally don’t support configurations with auth=. Although you seem to hve switched from the actual configuration to a report of it, I think that is InAuth in your configuration.
Before i use register => and one peers for make my connection to my providers
Now, if I understand correctly, I need to create à endpoint with a auth and a register for make outgoing call. But, if i want to receive call from the number provide by my provider.
What are the things to configure?
You need outbound_auth for outbound calls via a typical provider.
For inbound calls, you should only have auth if the provider authorises themselves to you. I have never heard of a provider doing this, but it would be a reasonable thing to do if you owned both ends.
In chan_sip, insecure=invite disables inbound authentication. Nowadays it would be better to use remote_secret instead. (insecure=port is the result of copy and paste coding of code designed to disable as many security checks as possible to avoid calls failing because of them).
outbound_auth on chan_pjsip corresponds to remote_secret for chan_sip. However, my reading of the documentation is that auth does not correspond exactly to secret, as the former only applies to inbound calls, whereas the latter applies to both ways, unless disabled, for inbound calls, with insecure-invite, or overridden, with remote_secret.
I had already configured my ps_endpoint_id_ips table with a match of the providers address but I redirected to the endpoint which was used for outgoing calls (with an auth)
So I redid a new endpoint without anything just the name the transport and the context and I put this endpoint in the table ps_endpoint_id_ips to match with the address of the provider