A man spat blood at a police officer and bit another on the leg after calling emergency services asking them to arrest him.
Steven Rees made several calls to Gwent Police on the evening of January 12, 2021, requesting that officers come to a flat in Risca to arrest him.
The 30-year-old had breached the conditions of his bail but told call handlers that he had escaped from prison and warned there would be "murder" if they did not arrest him.
But when police arrived and tried to take him to an awaiting police van, Rees resisted and assaulted three separate officers.
Cardiff Crown Court heard on Tuesday how Rees spat mucus and blood over one officer, attempted to headbutt another, and bit one sergeant on the thigh twice.
Rees made five telephone calls from a second floor flat in Holly Road, Risca, to police between about 11.05pm and 11.20pm on January 12.
He told the call handler he had escaped from prison and was requesting that police come to get him. He also said he had cut off an electronic tag and if officers did not attend there would be "murder".

Prosecutor Laura Shepherd said two police officers arrived and found Rees with an injury to his right eye and his T-shirt stained with blood.
Rees was described as being in an "animated" state and told one officer he would jump out of the window if they didn't take him back to prison.
Officers handcuffed him and he was given a glass of water.
Gwent Police then ran a computer check on Rees and discovered he was on bail with conditions requiring him to stay at his father's address in Splott, Cardiff. He was also the subject of a curfew which he had breached.
After one officer loosened Rees' cuffs, the court heard the defendant "made a break for the door".
"During the struggle the body worn video camera of PC Jenkins was broken, causing the camera to land on the floor," Ms Shepherd said.
"PC Brown then took hold of his wrists to try to manoeuvre him back inside the address. Mr Rees grabbed hold of the door frame.
"He continued to resist officers as a result of which he was sprayed. While on the floor he continued to resist and shouted about the spray in his eyes."
While sat on the floor, Ms Shepherd said Rees made comments including "look at you all", "p***y", "I'll do you all one by one", and "this is not even funny".
He also asked one officer how old he was and commented "Look at him. Big fringe. Little, little d**k. I'll bite it off."
"He said that towards PC Johnson while making a biting motion towards his groin area," Ms Shepherd said.
The court heard Rees blew "a combination of mucus and blood" from his nose over one of the officers, and attempted to headbutt another.
While being moved to a police van outside he bit Police Sergeant Gareth Wilkins twice in the right thigh.
Once in the police van he was taken to the Grange University Hospital, but continued to spit in the back of the van.
Rees, of no fixed address, pleaded guilty to assault occasioning actual bodily harm, resisting a police officer, two counts of assault of an emergency worker by beating and two counts of criminal damage.
Giles Hayes, defending, said his client entered his guilty pleas at the earliest opportunity in the magistrates' court and deserved full credit.
He said Rees had been bailed to his father's address in Splott but their relationship "broke down" over the Christmas period resulting in the defendant leaving the premises to live with a friend in Risca.
Mr Hayes said Rees has been prescribed medication to regulate his mental health issues, but was unable to access the medication from a pharmacy in Cardiff due to the move.
"Drugs and alcohol played a very prominent part in his behaviour and obviously not receiving his medication perhaps rather exacerbated his behaviour," Mr Hayes said.
"He called the police knowing that he had breached his bail and effectively felt that at that moment in time it was probably better for him to surrender himself and deal with matters in custody."
Judge Christopher Vosper QC described the events as "very odd indeed".
"You have a significant number of previous convictions most it has to be said relating to motoring matters," Judge Vosper said.
"Though you were dealt with for common assault in 2014 and resisting a police officer in July last year."
Rees was sentenced to a total of six months in prison.