IVR Extension out Trunk

Hi all,

I am in need of a little helping hand…it seems my googling abilities has not been of complete assistance here!

Would appreciate any information regarding this…

Here’s the scenario:

I have an auto attendant which I would like to allow “extension” dialing to be forced out a specific trunk. The trunk is going into an Adtran and breaking out to an NEC. Purpose being to have things run side by side until we can replace the NEC. I am sending all 34xx, 35xx, 36xx, 37xx traffic to the Adtran. This works when dialing directly and with custom destinations.

However the issue lies in dialing directly from an auto attendant into the Adtran. I.E. I call into Asterisk IVR and press 3401 but it does not see it as an extension (because it is not!).

Inside of my extensions_custom.conf I have experimented using follow me feature a bit but have had no luck. Perhaps I should just attempt to build this straight from the extension rather than with a forward?? Anyway any assistance with be very appreciated!

[code][from-did-direct]
include => follow-out
include => ext-findmefollow
include => ext-local

[follow-out]
exten => 3401,1,Dial(SIP/3401@IG_TEST)[/code]

PIAF Installed Version = 2.0.6.4 under VMWARE
FreePBX Version = 2.10.1.9
Running Asterisk Version = 1.8.22.0
Asterisk Source Version = 1.8.22.0
Operating System = CentOS release 6.4 (Final)
Kernel Version = 2.6.32-358.6.2.el6.x86_64 - 64 Bit

Hopefully will meet some of you at Astricon this year!

Thank you!
Nick Adams

Ahh I have found a better way to do this I believe.

Rather than worrying about forwarding settings or anything like that… I am building custom context for the IVR to allow these extensions to be dialed.

I.E.

[ivr-2-custom]
exten => 3401,1,Dial(SIP/3401@IG_TEST)

I guess my question at this point is…

Can I create a variable that will carry over to the trunk…

For example

[ivr-2-custom]
exten => 34XX,1,Dial(SIP/{variable}@IG_TEST)

I tested it a bit and had no immediate success but still have work to do.

Thanks!
Nick

Do this all the time. Try this syntax.

exten => 34XX,1,Dial(SIP/${TRUNKNAME}/${EXTEN})