MarcoBuster
Vi prego di scusare il fatto che sto scrivendo in inglese, presumo che tutti voi abbiate uno strumento di traduzione nel browser, se necessario.
Thank you very much MarcoBuster, you are 100% correct and you solved a huge problem for me which I spent hours on trying to solve. The error when receiving incoming IPv6 calls with recent Asterisk versions "Could not create dialog with endpoint $PROVIDER-NAME. Invalid URI (PJSIP_EINVALIDURI)" disappears when removing the contact_user=xyz line from the pjsip endpoint configuration. I am not using iliad.it but instead have tried both easybell.de and sipgate.de - same issue on both when using IPv6 (the very same config with contact user works when connecting over IPv4).
I can also confirm what @procsiab wrote that the issue started somewhat recently, I have looked at my "yum history" from a FreePBX 15/16 Installation and have asterisk package upgrades and then downgrades from 20.4.0 to 20.5.0 and back to 20.4.0 on Nov 15 and Nov 16 2023, so it was almost exactly a year ago when I first encountered the IPv6 Invalid URI (PJSIP_EINVALIDURI) issue and gave up at the time.
I have opened a bug in the asterisk bug tracker for this: https://github.com/asterisk/asterisk/issues/985