Refer to this link that described managing calls for Microsoft teams.
Find the section named "Adjust your voicemail settings"
Manage your call settings in Microsoft Teams - Microsoft Support