Please see https://wiki.asterisk.org. You have to spend some time to learn the concepts of pjsip. Then you can search for sample configurations.
Je ne peux pas vous dire — ç’est un secret.
Veuillez consulter https://wiki.asterisk.org. Vous devez passer un peu de temps pour apprendre les concepts de pjsip. Ensuite, vous pouvez rechercher des exemples de configurations.
However, you are using defaultuser in association with an outgoing registration. That doesn’t make sense. Also you are calling username, in other places. As the documentation says, it is unlikely that you need it.
Not having a disallow for the phones will result in huge INVITE requests and breaks some versions of Asterisk.
Unless endpoints share IP addresses, type=friend should be type=peer.
Your service provider is broken, or you have not correctly provided your public IP address, if they need force_rport. The circumstances were nat=no, as against the default, auto, are exceedingly rare.
qualifyfreq makes no sense with qualify=no.
insecure=port isn’t normally needed for UDP.
As a matter of urgency, remove insecure=invite from the general section, as this allows anyone to masquerade as a local phone without knowing the phone’s password. (This assumes that insecure is recognized in the general section.)
There isn’t much point in using tcpbindaddr, if you don’t enable TCP.
Note that the tos_* options require that your routers be configured appropriately.
I’d suggest that the only codec that makes sense on a trunk to an EU based provider (looks like Germany) is alaw. I’d only expect g729 on a trunk if you were running a low wage call centre, where internet costs dominated wage costs.