I have two FreePBX instances. PBX 1 has a Sangoma A200 card, which seems to be working just fine. PBX 2 is my main PBX, with all of my configuration. I have them connected using IAX trunks.
For inbound calls to PBX 1, I want all of those calls transferred to PBX 2. I have an inbound route set up on PBX 1 to transfer all calls received from the DID to PBX 2, and it seems to work just fine.
Once calls are sent to PBX 2, however is where I seem to have my issue. In the logs on PBX 2, I see this:
[2018-07-13 08:19:49] WARNING[24785][C-000001ad]: pbx.c:4365 __ast_pbx_run: Channel ‘IAX2/pbx-phx-9885’ sent to invalid extension but no invalid handler: context,exten,priority=outbound-allroutes,02652987111,2
I do have, on PBX 2 an inbound route for the same DID, 02652987111 which sends those calls to the IVR, however it doesnt seem to be working.
The question is, how do I get calls that are received on PBX 1 from the A200 to be transferred to the IVR on PBX 1? Is there maybe an issue with my incoming route configuration on PBX 2?
OK, so you’re saying that you are using “from-internal” on your IAX2 inbound trunk. The call that came in from your PBX is being sent to “extension” 02652987111. Is that a valid extension on PBX2?
This error is common when the context is set from “from-external” (or similar) since you can’t place a call to an outbound number from a trunk - that would result in horrific toll-fraud charges… On the other hand, it doesn’t look like a reasonable extension number to me - if it is, then it should be working.
I dont have an extension with that number on PBX2, that is the DID of the line in to PBX 1. What’s the easiest way to configure this so that any call to that number will be routed to the main IVR of PBX2?
The logs say you didn’t. You either need a custom extension with that number, or you need to set up an inbound route on PBX2 to intercept the number from the inbound trunk.
That’s very strange. I had created the inbound route first as described, and then, when it didn’t work I created the virtual extension. The latter config was where I got this: