If you remove the 0031+Z. from the Dial Rules of the trunk, and you match on xxx. in the Dial Patterns of the Outbound Route, will a call go through to the trunk if you dial it like the following 0031xxxxxxxxx pattern?
If the call does not go through to the trunk, then it's not a Dial Plan issue.
If it does, then put back 0031Zxxxxxxxx in the Dial Patterns of the Outbound Route, and try another call. If the call goes through, the dial plan works on the outbound route.
Then leave the 0|Zxxxxxxxx in the Dial Patterns of the Outbound Route, and add 0031+Zxxxxxxx. in the Dial Rules of the trunk. Try another call and observe if it now goes through.
For the call recording to work, the audio bypass option in the extension has to be set to No, otherwise the RTP packets do not pass through PBXes to be recorded.
The downside of this is the lower call quality, since every voice packet has to go through the server.
Thanks for your request. A global problem with dial rules and recordings arised yesterday. This has been fixed now. We apologise for any inconvenience caused.