I’ve been sitting on this for about 2 days, looking up and trying every article I could possibly find, and I’ve finally thrown the towel in to the point where I need your help (I know you can do it, I’ve heard great comments about you.).
I have two trunks supplied by the same provider, each with a different demographic telephone number.
For this example, Trunk 1 & Trunk 2.
Trunk 1 starts 00448
Trunk 2 starts 00442
I’ve tried setting up call rules based on the originating number, such as _00448! _00448.! etc etc (all potential combinations) and this failed, every call that came in was trying to route to ‘s’ because it couldn’t find the destination. At this stage, I tried simply editing extensions/user/sip to redirect the trunk directly to an IVR voice menu, this also failed. Both numbers currently redirect to the same menu, ignoring the settings in extensions.conf.
Can anyone put me out of my misery?
Current Setup: Example for Trunk 2, Redirect to Voice Menu 2
This fails, and still ends up going to voice menu 1.
[DID_trunk_2]
include = DID_trunk_2_timeinterval_All,${timeinterval_All}
include = DID_trunk_2_default
[DID_trunk_2_default]
[DID_trunk_2_timeinterval_All]
exten = s,1,Goto(voicemenu-custom-2,s,1)