File transfer through 2 SOCKS5 proxies (XEP-0260)

I’d like to transfer files through 2 SOCKS5 proxies (with 2 Openfire servers):

  • 1 SOCKS5 proxy configured on the server connected to the initiator client (file transfer proxy activated in Openfire server)
  • 1 SOCKS5 proxy configured on the Openfire server connected to the responder client (file transfer proxy activated in the other Openfire server)

The goal is to have the following stream for file transfer: initiator client <-> SOCKS5 proxy of initiator server <-> SOCKS5 proxy of responder server <-> responder client

According to XEP-0260: Jingle SOCKS5 Bytestreams Transport Method, only 1 SOCKS5 proxy is chosen at a time by both clients and SOCKS5 proxies aren’t able to communicate with each other.

Do you have any idea to be able to do that or an alternative solution?
Thanks by advance for the help.