Ingame Voice Chat

Hello, can you tell me please how the ingame voice chat works? I can talk only with my team, or anyone can hear me? I tried to talk with my friend i played with and we dont hear nothing. In cs:go we talked with no problem. I searched internet, but didnt find any usefull clue. Thank you for your help.