ok sort of chatting...then it gets louder and louder and then he cries. almost like a whinging to start off with?

Last night I was at my wits end. So I put him in my carrier, strapped him in and laid down in bed (propped up with pillows). He eventually fell asleep. Is this ok? i barely got any sleep for worrying about him though