Remote ring group connection

I have to freepbx servers connected to each other with a iax2 connection. I want to put a remote ring group extention in a local ring group so that when the trunk rings the local ring group it also rings the remote one. I know the trick to put a # at the end of the extention number but when I do that, I can dial the local ring group and everything works how it should. As in the local and remote extentions are dialed and ring. When the trunk dials the ring group only the local extentions ring but not the remote ones. What am I missing here?

Almost forgot using asterisk 11 and 2.11. Both servers have same version.