In my * setup, using FreePBX 2.3.0.2, I have a number of indial numbers (DID) and
a number of inbound routes to neatly map each number to a department,
eg,
any / any -> front_desk
20000 / any -> ivr1
20001 / any -> ivr2
20002 / any -> sales_rg
20003 / any -> support_rg
If I want the CEO to always get sent to his PA, I expect to
add
any / CEO_CID -> ceo_pa_ext
However this will never work because any number he could possible call
on already matches a DID/any rule above.
Adding the following;
20000 / CEO_CID -> ceo_pa_ext
does work, and I can add an inbound route for each DID / CID mapping.
This is frustrating for the many CID’s which need matching.
The solution which I’ve found is to split the [ext-did] context into
two levels.
[ext-did]
exten => s,1,Goto(ext-did-level2,s,1)
exten => s/CEO_CID, … handle calls from CEO …
… handle remaining CID mappings …
[ext-did-level2]
exten => s,1, … handle any/any
exten => 20000, … handle 20000/any
… handle remaining DID mapping …
Now I have prioritized the /CID matches over the DID/ matches
and ensured the CEO gets sent to his PA regardless of which number
he calls.
Naturally this is all removed as soon as free pbx applies its next
config, so is there a freepbx way of doing this at the moment?
Can support for prioritizing Inbound Routes be added?
Blackdog