I have two freepbx installed in two different location, with two different sip account, interconnected using iax2. On the second pbx I have free calls flat rate and I would to use that possibility on the first too.
It’s possible to send all outgoing calls from first pbx to the outbound route of the second one trough iax2 connection? If yes, how can I get this?
Because it is ‘from-internal’ it will route to the first matching route… You can use dialplan show nnnnnnnnnn@ to see where nnnnnnnnn will be sent, so the shorter ‘extensions’ will ring that endpoint, the longer ones will be considere ‘outbound’ make sure you don’t have conflicting endpoints on both PBI
After creating a second outbound route with iax destination and moved to the top, all calls from the first pbx go directly to the outbound of the second pbx with free calls!