ENUM test

henkoegema

Joined
Jul 12, 2007
Messages
37
Likes
0
Points
0
#1
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. :(

;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 . :blink:

Can someone try please.
 

henkoegema

Joined
Jul 12, 2007
Messages
37
Likes
0
Points
0
#2
I gave it another try like this:

;ENUM test
exten=>3003,1,BackGround(doing-enum-lookup)
exten=>3003,n,GotoIf($[${ENUMLOOKUP(+3216980102)}]:hangup)
exten=>3003,n,BackGround(enum-lookup-successful)
exten=>3003,n,Dial(${ENUM},30)
exten=>3003,n,Hangup()
exten=>3003,n(hangup),Background(enum-lookup-failed)
exten=>3003,n,Hangup()

The number +3216980102 is an ENUM.
When I dial 3003, I get enumlookup successfull, but it never dials the number.

But..when I change +3216980102 to a NOT ENUM then it still says, enumlookup successfull(and it doesn't dial anything (of course!) )

:(
 

Members online

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,567
Latest member
achilont13
Top