# Asterisk10 und ENUMLOOKUP

Hi,

i was wondering that my Dialplan for ENUMLOOKUP don´t work anymore, has something changed?

[code][enum-go]
exten => _+Z.,1,Set(Nebenstelle=\${CALLERID(num)})
exten => _X.,1,Set(Nebenstelle=\${CALLERID(num)})
exten => _Z.,2,Goto(nachenum\${Nebenstelle},\${EXTEN},1)
exten => _+Z.,2,Goto(enum,\${EXTEN},1)
exten => _0Z.,2,Goto(enum,+43\${EXTEN:1},1)
exten => _00Z.,2,Goto(enum,+\${EXTEN:2},1)
exten => _000Z.,2,Goto(nachenum\${Nebenstelle},\${EXTEN},1)

[enum]
exten => _+Z.,1,Set(CALLERID(number)=+43720501078)
exten => _+Z.,1,Set(sipcount=\${ENUMLOOKUP(\${EXTEN},sip,c)})
exten => _+Z.,2,Set(counter=0)
exten => _+Z.,3,GotoIf(\$["\${counter}"<"\${sipcount}"]?4:7)
exten => _+Z.,4,Set(counter=\${MATH(\${counter}+1,int)})
exten => _+Z.,5,Dial(SIP/\${ENUMLOOKUP(\${EXTEN},sip,\${counter})})
exten => _+Z.,6,GotoIf(\$["\${counter}"<"\${sipcount}"]?4:7)
;
exten => _+Z.,7,Set(iaxcount=\${ENUMLOOKUP(\${EXTEN},iax2,c)})
exten => _+Z.,8,Set(counter=0)
exten => _+Z.,9,GotoIf(\$["\${counter}"<"\${iaxcount}"]?10:13)
exten => _+Z.,10,Set(counter=\$[\${counter}+1])
exten => _+Z.,11,Dial(IAX2/\${ENUMLOOKUP(\${EXTEN},iax2,\${counter})})
exten => _+Z.,12,GotoIf(\$["\${counter}"<"\${iaxcount}"]?10:13)
;
exten => _X.,13,NoOp(“No valid entries in e164.arpa for \${EXTEN} - checking in e164.org”)
;
; …then also try e164.org, and look for SIP and IAX NAPTRs…
;
exten => _X.,14,Set(sipcount=\${ENUMLOOKUP(\${EXTEN},sip,c,e164.org)})
exten => _X.,15,Set(counter=0)
exten => _X.,16,GotoIf(\$["\${counter}"<"\${sipcount}"]?17:20)
exten => _X.,17,Set(counter=\${MATH(\${counter}+1,int)})
exten => _X.,18,Dial(SIP/\${ENUMLOOKUP(\${EXTEN},sip,\${counter},e164.org)})
exten => _X.,19,GotoIf(\$["\${counter}"<"\${sipcount}"]?17:20)
;
exten => _X.,20,Set(iaxcount=\${ENUMLOOKUP(\${EXTEN},iax2,c,e164.org)})
exten => _X.,21,Set(counter=0)
exten => _X.,22,GotoIf(\$["\${counter}"<"\${iaxcount}"]?24:26)
exten => _X.,23,Set(counter=\${MATH(\${counter}+1,int)})
exten => _X.,24,Dial(IAX2/\${ENUMLOOKUP(\${EXTEN},iax2,\${counter},e164.org)})
exten => _X.,25,GotoIf(\$["\${counter}"<"\${iaxcount}"]?24:26)
[/code]

So i thin no lookup was made, here is the debug.

-- Executing [07200101011@SIP-PHONE-682813410530704752e8aa:1] Set("SIP/48-0000005b", "Nebenstelle=48") in new stack -- Executing [07200101011@SIP-PHONE-682813410530704752e8aa:2] Goto("SIP/48-0000005b", "enum,+437200101011,1") in new stack -- Goto (enum,+437200101011,1) -- Executing [+437200101011@enum:1] Set("SIP/48-0000005b", "CALLERID(number)=+43720501078") in new stack -- Executing [+437200101011@enum:2] Set("SIP/48-0000005b", "counter=0") in new stack -- Executing [+437200101011@enum:3] GotoIf("SIP/48-0000005b", "0?4:7") in new stack -- Goto (enum,+437200101011,7) -- Executing [+437200101011@enum:7] Set("SIP/48-0000005b", "iaxcount=") in new stack -- Executing [+437200101011@enum:8] Set("SIP/48-0000005b", "counter=0") in new stack -- Executing [+437200101011@enum:9] GotoIf("SIP/48-0000005b", "0?10:13") in new stack -- Goto (enum,+437200101011,13) -- Auto fallthrough, channel 'SIP/48-0000005b' status is 'UNKNOWN'

So what is wrong, somebody can help?

Thx
Timmbo