Polish government officials are talking to European Union and North American allies on the next steps but haven't determined which telecoms equipment maker might replace Huawei, the sources said.

"Arresting a spy means end of the discussion," said a government official, who spoke on the condition of anonymity. "I think the Chinese will not be present in 5G in Poland."

Finland's Nokia and Swedish telecoms company Ericsson are the leading two European competitors who could provide 5G telecoms equipment for Poland, the largest economy in eastern Europe.

Poland's President Andrzej Duda has also suggested that Huawei was likely to be shut out.

"I'm definitely closer to cooperating with European firms or with those from the U.S. than with producers from Asia," Duda said in an interview with Polish website money.pl.

Poland announced two weeks ago that it had arrested a Chinese Huawei executive and a former Polish security official on spying allegations. Huawei has fired the man, who has denied wrongdoing.

The Polish national's lawyer also told Reuters that his client is not guilty, nor is he a spy.

Huawei officials met the Polish government this week to address security concerns.

"We are working with the government and partners in Poland to convince the authorities that far from posing a threat to networks in the country, our technology will help improve connectivity," Huawei said in a statement.

Huawei is playing a leading role as the telecoms world gears up for 5G, the next generation wireless technology that promises to link up everything from vehicles to household devices at far greater speeds.

But some Western countries have barred Huawei after U.S. officials briefed allies that Huawei is at the beck and call of the Chinese state, warning that its network equipment may contain "back doors" that could open them up to cyber espionage. Huawei says such concerns are unfounded.

Two of the largest ongoing 5G trials in Poland -- run by Orange and T-Mobile -- are based on Huawei technology but that appears likely to change.

T-Mobile, Orange, Nokia and Ericsson declined to comment.

Last year, Poland's state-run telecom operator Exatel suggested building a state consortium, saying it would be cheaper to put together and that the state would earn more from the network.

Telecoms industry sources confirmed that such an option is now more seriously under consideration following the arrest of the Huawei official.

"Poland's alternative (to Huawei) is to build a state-owned company (or consortium) that would maintain 5G connectivity and using some sort of consortium they will pick partners," said Tomasz Siemoniak, a former defence minister and current parliament member.

(Reporting by Joanna Plucinska, Agnieszka Barteczko and Anna Koper in Warsaw, Jack Stubbs in London, Anne Kauranen in Finland and Helena Soderpalm in Sweden. Writing by Michael Kahn; Editing by Justyna Pawlak/Keith Weir)

By Joanna Plucinska and Anna Koper

Stocks treated in this article : Nokia Oyj, Orange Polska SA, Ericsson AB, T-Mobile US