This depend on your and provider configuration.
First you need also a internal trunk for Audiocodes both mediation server to allow calls from AC to the other mediation server for external. The provider should rote the calls to the other sip trunk if the AC is not reachable.
regards Holger Technical Specialist UC