A man has been jailed after being caught filming inside a court room at Poole Magistrates Court.