No apllication ENUMLOOKUP (?)

When I’m using the function
exten => 3008,1,ENUMLOOKUP(+882990046710000)
I get:

– Executing [3008@default:1] BackGround(“SIP/1000-082442d0”, “doing-enum-lookup”) in new stack
– <SIP/1000-082442d0> Playing ‘doing-enum-lookup’ (language ‘en’)
[Sep 12 12:42:13] WARNING[9915]: pbx.c:1797 pbx_extension_helper: No application ‘ENUMLOOKUP’ for extension (default, 3008, 2)
== Spawn extension (default, 3008, 2) exited non-zero on ‘SIP/1000-082442d0’

*CLI> core show function ENUMLOOKUP

-= Info about function ‘ENUMLOOKUP’ =-

[Syntax]
ENUMLOOKUP(number[|Method-type[|options[|record#[|zone-suffix]]]])

[Synopsis]
ENUMLOOKUP allows for general or specific querying of NAPTR records or counts of NAPTR types for ENUM or ENUM-like DNS pointers

[Description]
Option ‘c’ returns an integer count of the number of NAPTRs of a certain RR type.
Combination of ‘c’ and Method-type of ‘ALL’ will return a count of all NAPTRs for the record.
Defaults are: Method-type=sip, no options, record=1, zone-suffix=e164.arpa

For more information, see doc/enum.txt

It’s a function, not an application so:
exten => 3008,1,Set(result=${ENUMLOOKUP(+882990046710000) })

Regards.

Marco Bruni

[quote=“mbruni”]It’s a function, not an application so:
exten => 3008,1,Set(result=${ENUMLOOKUP(+882990046710000) })

Regards.

Marco Bruni[/quote]

You are right Marco. :smiley:

The number given in the example above (+882990046710000) IS an ENUM.
However the variable ${result} remains empty. :open_mouth:

I have been using enum lookup successfully in an earlier * version.
Like this:

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

ENUMLOOKUP assigns a return value to the variable ENUM (if it exists)

Is this not valid anymore? :unamused:

Have a look here, perhaps it helps you: voip-info.org/wiki/view/Aste … enumlookup .

Regards.

Marco Bruni

And here: voip-info.org/wiki/view/Aste … +enum.conf .

Regards.

Marco Bruni

[quote=“mbruni”]Have a look here, perhaps it helps you: voip-info.org/wiki/view/Aste … enumlookup .

Regards.

Marco Bruni[/quote]

I know this site very well. :smile:

On
voip-info.org/wiki/index.php … EnumLookup

I found:

Example
 [fullaccess]
 exten=> _0[1-9]XXX.,1,BackGround(nic.at/enum-doing)
 exten=> _0[1-9]XXX.,2,EnumLookup(+431${EXTEN:1})
 ; ${EXTEN:1} is the number dialedby user with the leading 0 stripped.
 ; Thus "431${EXTEN:1}" is the E.164 number.
 ;EnumLookupsets ${ENUM} on success. On failure jumps to priority+101.
 exten=> _0[1-9]XXX.,3,BackGround(nic.at/enum-successful)

 exten=> _0[1-9]XXX.,4,Dial(${ENUM},30)
 exten=> _0[1-9]XXX.,5,Goto(104); No answer on SIP, fallback to PSTN
 exten=> _0[1-9]XXX.,103,BackGround(nic.at/enum-failed)
 exten=> _0[1-9]XXX.,104,Dial,${TRUNK}/${EXTEN:1}

This is how I have been using EnumLookup before. :astonished:

Now this doesn’t seem to work anymore. :unamused:

Does it need some adjustment?