Incoming Route From Specific Trunk Group

Hey Guys,

I am trying to setup an incoming route which come from group of trunk to the IVR.

First, i have an OpenVox 8 FXO PORTS which i have set it up and configured the group in dahdi-channels.conf which 6 ports grouped into group 0 and another 2 ports grouped to group 1.

Group 0 was intended for the land line purpose and the other group will be use with the VOIP Gateway.

So i am trying to achieve which any call that hit the trunk in Group 0 will be transfered to IVR.

Anyone can give the idea how to do that?

Go create a inbound route and pick group 0 for the did and route it to the IVR

Be sure to set up the DAHDI trunk first - that’s the point where you specify the incoming traffic from DAHDI/G0 is coming in and being processed.

so, i just have to write DAHDI/G0 to the DID in the inbound route?

But i got the error

DID can only be numbers, A-D, * and #. DID may also start with a +.
Patterns must begin with an _

DID format wrong?

yes, the format that i used is DAHDI/G0 in the inbound route

That should be the interface for your trunk. Your inbound route would be “any/any” (both the DID and the CID blank).

just try leave the DID and CID blank, but when i try to call to the land line that connected to the trunk, i got a ring but it does not reach the phone and this is the log from full is :

[2016-12-27 11:53:33] VERBOSE[11954][C-00000022] sig_analog.c: Hanging up on ‘DAHDI/1-1’
[2016-12-27 11:53:33] VERBOSE[11954][C-00000022] chan_dahdi.c: Hungup ‘DAHDI/1-1’
[2016-12-27 11:53:38] VERBOSE[11975][C-00000023] sig_analog.c: Starting simple switch on ‘DAHDI/1-1’
[2016-12-27 11:53:48] WARNING[11975][C-00000023] pbx.c: Channel ‘DAHDI/1-1’ sent to invalid extension but no invalid handler: context,exten,priority=,s,1

The inbound route actually is set to IVR, but it just ringing and no IVR played.

please check the error-invalid extension.

There is no context. The DAHDI channel is not being sent to an inbound context.