A man hiding from intruders who broke into his flat in north-west London and killed his friend was put on hold when he called police, a court has heard.
Ahmad Gharbi, 49, hid in a cupboard in the flat in Kilburn when the gang attacked his friend Timothy Stilwell in June last year, the Old Bailey heard.
Mr Stilwell was stabbed more than 20 times and beaten over the head.
Stephen Barton, 21, of Boundary Road, St John's Wood, north-west London, denies murder.
Three other men, Sean Allen, 20, of Halleys Way, Luton, Ricky Parrett, 22, of Abbey Road, Kilburn, north west London, and Scott Robinies, 21, of Quex Road, Kilburn, all deny murder.
Mr Stilwell had been staying on the sofa at the home of his friend Mr Gharbi after the pair watched a World Cup football match together.
Mr Gharbi was awoken by the sound of smashing glass and the screams of men shouting, the court heard.
He went to the living room where he saw four men trying to push through the patio doors with a paving slab, before running to another room and hiding in a cupboard, said David Howker QC, prosecuting.
"He got his mobile out and called the police but was put on hold for some reason so had to try again," said Mr Howker.
"When he emerged from the cupboard and went into the living room he found his friend Mr Stilwell lying face down on the floor surrounded by broken glass. He was in a bad way and was in fact fatally wounded."
The victim was eventually taken from the flat in Kilburn, north west London to the Royal Free Hospital where he was pronounced dead.
A post-mortem examination showed he suffered multiple stab wounds to the face, heart, back and arms as well as head injuries consistent with being beaten with a stick.
The trial continues.