Problems with command record

I have a question, I’m using record command to save message, but it stops when I have 5 minutes of recording, but I dont have time restrictions, someone help me, what I must to do to fix that and why it is happening