I have installed asterisk@home 2.8. I have two x100p clone cards which is on zap/1 and zap/2. i have two bell south line connected to it.
I would like to detect calls coming in on zap trunk 1 and forward it to specific extension. if calls comes in on zap trunk 2 it will also be forwarded to a specific extension or a group.
I have tried this with freePBX and creating a inbound calling rule where i set the DID number as the bell south line number. But that didn’t work.
could someone direct me to the right direction how to do this.
Thanks in advance.
how to route in coming calls based on ZAP CHANNEL.
I am using Asterisk@Home and freePBX web admin 2.1
Go to Tools in you freePBX admin page.
Click on /etc/asterisk
go to
extensions_custom.conf
click on ext-did-custom or look for it
you will see this:
[ext-did-custom]
; this will allow calls to be routed by the ZAP channel they come in on.
; example a call comming in on ZAP cahnnel 1 will have Zap1 for it’s DID.
NOW GO BACK TO freePBX SETUP
Click on InBound Routes
Click on Add Incoming Route
on the DID Number: Zap1
it can be any channel number like if you have Zap10
FreePBX 2.1 allows you to create Inbound Routes based on Zap channels now. You don’t have to muck about with custom contexts any more. The Inbound Routes now has a “Zaptel Channel” option.
Just make sure your Zapata.conf has your Zaptel context as “from-zaptel” for it to work, as specified in the pop-up help for the Zaptel Channel option on the Inbound Routes screen.
question: i tried this and got a “no DID or CID match” error. poked around and found that zapata-auto.conf was still saying ‘context=from-pstn’. i fixed that, but that file is not supposed to be edited manually, but is created by genzaptelconf?