Manual ENUMLOOKUP interfering with freePBX?

Before I changed to Elastix, I used in Asterisk 1.4 following extension to do an ENUM test. (which worked well !)

However in Elastix I can’t get it working.

/etc/asterisk/extensions_custom.conf:
;ENUM test
exten=>3002,1,BackGround(doing-enum-lookup)
exten=>3002,2,ENUMLOOKUP(+882990046710000)
exten=>3002,3,BackGround(enum-lookup-successful)
exten=>3002,4,Dial(${ENUM},30)
exten=>3002,5,Goto(104)
exten=>3002,103,Background(enum-lookup-failed)
exten=>3002,104,Hangup

My CLI output is:

– Executing [3002@from-internal:1] BackGround(“Zap/1-1”, “doing-enum-lookup”) in new stack
– <Zap/1-1> Playing ‘doing-enum-lookup’ (language ‘en’)
== Spawn extension (from-internal, 3002, 2) exited non-zero on ‘Zap/1-1’
– Executing [h@from-internal:1] Macro(“Zap/1-1”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“Zap/1-1”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“Zap/1-1”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“Zap/1-1”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“Zap/1-1”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Wait(“Zap/1-1”, “5”) in new stack
– Executing [s@macro-hangupcall:10] Hangup(“Zap/1-1”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 10) exited non-zero on ‘Zap/1-1’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 10) exited non-zero on ‘Zap/1-1’
– Hungup ‘Zap/1-1’

It only executes the first line and then I get congestion tone after 6 seconds.

From the CLI output it looks like that freePBX takes over in some way.

Can someone try please.

(b.t.w. adding ENUM trunk in freePBX works ok)