Cannot get dynamic features to work

I have an AA50 behind a Mitel PBX. When a call comes through to a user on the AA50, they sometimes need to transfer the call to someone on the Mitel. There is no disconnect signaling from the Mitel, so this locks up ports if the AA50 handles the transfer. I want to send a flash to the Mitel port and have the Mitel deal with the transfer. So far I have not been able to make this happen. I’ve also tried the test feature, and nothing happens there either.

Here is what I have in features.conf:

[featuremap]
blindxfer => #1 ; Blind transfer
disconnect => *0 ; Disconnect
;automon => *1 ; One Touch Record (a.k.a. Touch Monitor)
;atxfer => *2 ; Attended transfer

[applicationmap]
Set(DYNAMIC_FEATURES=zapflash#testfeature)
zapflash => *1,callee,flash,()
zapflash => *1,caller,flash,()
testfeature => #9,callee,Playback,tt-monkeys ;Play tt-monkeys to
;callee if #9 was pressed

And in extensions.conf:

[globals]
DYNAMIC_FEATURES = zapflash
FEATURES =
DIALOPTIONS =
RINGTIME = 15
etc…and lower down:
[macro-trunkdial]
exten => s,1,Set(DYNAMIC_FEATURES=zapflash#testfeature)
exten => s,1,set(CALLERID(all)=${IF($["${LEN(${CALLERID(num)})}" > “6”]?${CALLERID(all)}:${ARG2})})
exten => s,n,Dial(${ARG1})
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Hangup
exten => s-BUSY,1,Hangup
exten => s-CONGESTION,1,Hangup(1)
exten => _s-.,1,NoOp

And version info:
OS Version:
Linux asterisk.pbx 2.6.16.27sx00i-1.3.0.5 #3 Mon Nov 16 13:11:14 CST 2009 blackfin unknown

Uptime:
18:12:56 up 7 days, 1:36,
Load Average: 0.00, 0.08, 0.10

Asterisk Build:
Asterisk/C.2.2.6 (sx00i 1.3.0.5)
Asterisk GUI-version : 2.0.4.5

I’m still quite new to this, and I’m hitting a wall right now. I NEED to send a flash on the FXO ports, and I would appreciate any assistance.

That’s a commercially supported version, not the open source version. If you still have the support contract, you may find it better to get support that way. Isn’t the AA50 a commercially supported “appliance”?

You have two priority ones in the macro, which won’t work properly.

You have a bogus Set in features.conf.

I’m not sure about the use of ().