I’m trying to route inbound calls to ring group depending on the analog trunk dialed. Seems like such a simple thing to do.
But I can’t seem to figure out the physical port mapping to inbound routes from the Elastix web admin, which has access to the FreePBX UI, so I can go into FreePBX if need be.
Hardware used for analog trunks and extensions: Sangoma A200 4-port FXO and 4 Port FXS
Essentially, I’m having difficulty figuring out how to separate the analog trunk group (ZAP Channel g0 - Zap Identifier = g0) into individual trunk lines that I can then set specific inbound and outbound rules for.
In addition to the default ‘ZAP Channel g0’ (Zap Identifier = g0), I also added 4 ZAP Trunks
Trunk Name = trunk1
Zap Identifier = 1
Trunk Name = trunk2
Zap Identifier = 2
Trunk Name = trunk3
Zap Identifier = 3
Trunk Name = trunk4
Zap Identifier = 4
I’m not sure if the Zap Identifier maps to the physical port or not. I left the default ‘ZAP Channel g0’, so maybe that overrides these new trunks? Am I supposed to delete this default ZAP group?
Anyway, here’s what I’m trying to do:
Scenario 1: Door Buzzer pressed - generates ring-voltage to Sangoma FXO trunk port #1 (Zap Identifier 1)
- Rings specific trunk port (trunk1) on Elastix
- Elastix detects this as a call on trunk1 and routes to ring group x600 to ring all IP phones (The other trunks 2, 3, and 4 go to IVR)
- All IP Phones ring. First person to answer talks then presses 8 or 9, which opens DoorKing
From the Elastix web UI I can’t seem to detect which trunk line the call comes in on, so I temporarily modified the default Incoming Route with no CallerID to route to x600 just as a test.
This test works - was able to open door gate by pressing ‘9’ after answering call. But now I need to restrict it so it ONLY routes to x600 on trunk1
Scenario 2: Employee dials the DoorKing connected to trunk1 from an IP phone extension
Employee presses a certain line (line 2) on IP phone which picks specific trunkport1, goes off-hook to get 2nd dialtone, and then they can type touch-tone/DTMF digits (i.e. *79) to communicate with DoorKing, which is connected “inline” between the central office dialtone signal and the Elastix PBX. (it acts as a relay mechanism).
Lastly, I need to be able to set number of rings on a specific trunk port (NOT GLOBALLY on all ports) to say 3 rings. How do I do this?
This is my first post, so thanks in advance for the help!