Iphone 5. I can't end a call sometimes?

I did a master reset and i'm still having this problem? Basically when i'm in a call and I try to end it its just frozen its like it doesn't detect my finger hitting end. Should I bring it into AT&T?