The free Extension Routes module is installed, but not registered

I can help you do it, I’ve done it before.

Here’s the basics:

  1. In the Cisco SPA Phone diaplan (web or xml config), change it to prefix “0001” to all calls. This article explains all the dial plan syntax Cisco SPA942 4-line IP Phone with 2-port Switch - Retirement Notification - Cisco

So for example, the end user dials 9495001234. The Cisco Phone adds 0001 and sends 00019495001234 to freepbx

  1. Program FreePBX (web gui) with multuple Outbound Routes, one to match patterns of 0001xxxxxxxxxx, one to match 0002xxxxxxxxx etc. Then each send it to a different trunk. On the trunk configs, tell it to strip 0001 (add 0001 to the 'prefix | ’ box under digit manipulation, so it will be removed) before sending the call.

Here is a config example, where it says 9, it is prefixing a 9 then the comma is used to wait a few seconds before dialing the rest of the digits. You would just put 0001 there with no comma.

If you put this into the web gui config it should work fine, but if you are configuring it in XML, keep in mind that the ‘<’ and ‘>’ characters are illegal and will cause your config not to work because it will break the other tags, so you have to use HTML codes for example

&lt;0001&#58;&gt; would mean <0001:>

  1. Now calls will work and you can have as many different trunks as you want because the dial plans do not overlap on freepbx.

Would be REALLY nice if Asterisk / FreePBX solved this problem, and allowed separation of pattern matching, so that you could have multi tenant PBX / multiple pattern matching groups without having to have weird work arounds like this