C.15. ENUMLOOKUP()

Asterisk 1.2:
ENUMLOOKUP(number[,service[,optionsANDentrynumber[,zone-suffix]]])
Asterisk 1.4:
ENUMLOOKUP(number[,service[,options,entrynumber[,Zonen-Suffix]]])
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)})

Note

Internal help for this application in Asterisk 1.4:
  -= 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
diff output to internal help in Asterisk 1.2:
5c5
< ENUMLOOKUP(number[|Method-type[|options[|record#[|zone-suffix]]]])
---
> ENUMLOOKUP(number[,Method-type[,options|record#[,zone-suffix]]])
15c15
< For more information, see doc/enum.txt
---
> For more information, see README.enum
See also
enum.conf