Sending DTMF Commands to ISDN with DAHDI

Hello,

I am trying to figure out a way to send DTMF commands to my ISDN modem (throught BRI Card) to enable some services it provides. For example, for call forward I need to send the DTMF *21*<number>#

Has anyone done this with DAHDI? I have done it at the past with MISDN but I can’t figure out how to do it with DAHDI.

Thanks,
esarant

hi:
Maybe you can try by this command,something like this:
Dial(DAHDI/g1/${EXTEN:1},30,M(dtmf,${EXTEN:2}))

Can you also paste the [macro-dtmf] context? I guess it’s a custom one, right?

The main problem is that I dont actually call any number at all. For example, if I put an ISDN phone on the directly on the ISDN modem I just need to dial the feature code (21#) and the call forward gets enable. So, I need somehow to open the channel and dial the DTMF without actually calling a number. Is this possible?