Dr Gibb told the hearing he had not given false personal details
A doctor has denied providing false personal details when he was caught with drugs at a music festival.
Police found 14 ecstasy tablets and small amounts of cannabis resin and amphetamine in Dr Fraser Gibb's car at the event in Dumfries and Galloway.
He told a General Medical Council (GMC) hearing that he initially thought the officers were security staff.
However, the Dumfriesshire doctor said he gave them full and correct personal details. The hearing continues.
Dr Gibb said he was told that if he admitted he had drugs in his possession then they would be confiscated and he could go into the Wickerman Festival in July 2006.
If drugs were found after a search he would be escorted from the premises.
Dr Gibb, 41, kept quiet as officers found the drugs in a black case on the back seat of his silver Hyundai.
Giving evidence, he said he "gradually realised" that he was dealing with police, before the illegal substances were discovered.
Robin Kitching, cross-examining for the GMC, asked: "Why didn't you tell them you had drugs?"
He replied: "I should have said that. I deeply regret it."
Mr Kitching accused him of further deceit by telling the officers his name was Fraser Duncan McKay and his address was The Old Schoolhouse, Steilston, Dumfries, when he had recently moved from there to the neighbouring The Old School.
Dr Gibb, a locum consultant psychiatrist at Crichton Royal Hospital, Dumfries, insisted he gave his full name, Fraser Duncan McKay Gibb.
He added: "I gave them the address that all my identifiers were registered to - I told them where I worked.
"I said I was a doctor. I told them things that were likely to get me into trouble."
He was cautioned and later arrested when he admitted to officers the drugs were for his own personal use.
Dr Gibb was convicted at Kirkcudbright Sheriff Court of possessing ecstasy at the event in Dundrennan in July 2006 and was fined £400.
The GMC alleges Dr Gibb's fitness to practise is impaired because of his conviction and alleged misconduct in being misleading and dishonest with the questioning officers.