A parrot has spent five days under police "interrogation" in prison in Argentina in a related custody case.

Two neighbors, Jorge Machado and R. Vega, were disputing ownership of the bird and locked in a fierce custody battle.

Judge Osvaldo Carlos, in an attempt to solve the unusual case, ordered the parrot to be sent to prison until he said the name of his owner.

It took five long days but finally, Pepo said Machado's name and then broke into song singing the anthem of Machado's favorite football team San Lorenzo.

Machado says, "I knew he wasn't going to let me down, he is a real friend and we support the same football team."