Asterisk 1.2:
Asterisk 1.4:
Looks up a number with ENUM. The service can be sip (default), iax2, h323, tel or ALL. The option c returns the number of entries. The entrynumber (default 1) selects the entry from the list of results. The zone-suffix (default: e164.arpa) is the ENUM zone. Comprehensive descriptions and examples may be found in doc/README.enum (1.2) / doc/enum.txt (1.4).
; in Asterisk 1.2:
exten => 123,1,Set(foo=${ENUMLOOKUP(+${CALLERID(num)},sip,1,freenum.org)})

; in Asterisk 1.4:
exten => 123,1,Set(foo=${ENUMLOOKUP(+${CALLERID(num)},sip,,1,freenum.org)})


Internal help for this application in Asterisk 1.4:
  -= Info about function 'ENUMLOOKUP' =- 


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

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
diff output to internal help in Asterisk 1.2:
< ENUMLOOKUP(number[|Method-type[|options[|record#[|zone-suffix]]]])
> ENUMLOOKUP(number[,Method-type[,options|record#[,zone-suffix]]])
< For more information, see doc/enum.txt
> For more information, see README.enum
See also