[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
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}