A couple of questions about enum.conf and ENUMLOOKUP

Hi List

I finally upgraded from Asterisk 16 to 22 and used the opportunity (no Macros anymore) to redo most of the configuration.

What is the purpose of the config file enum.conf?

It looks like you should be able to add domains on which ENUMLOOKUP performs NAPTR lookup in the defined search order.

But my tests reveal, ENUMLOOKUP does not seem to respect this config file in any way, if not enum domain is passed as a parameter to ENUMLOOKUP it sends it request to e164.arpa no matter what is in that file. So you can not use ENUMLOOKUP without specifying a domain and you have to call ENUMLOOKUP once per domain you want to perform a NAPTR request to. So that config file has no use at all, right?

ENUMLOOKUP method defaults to ‘pjsip’?

First I did not specify a method hoping that ENUMLOOKUP would get all records and the select sip or iax or whatever was available. But it did not even return and URI for the ‘sip’ method. I wonder as I guess ‘pjsip’ is not a method anyone would publish in e164.arpa, e164.org, e164.ch etc. Only when I specified method ‘sip’ I got a reply, but this again means I have to perform a lookup for each method. Same applies to ENUMQUERY Isn’t there one lookup returning all methods in one go?

-Benoît-

According to the code it is purely for the “branchlabel” and “ebl_alg” options. Probably not something anyone would touch.

Probably should default to “sip” but in reality you’re the first person I’ve ever seen who has mentioned ENUM that I can remember so this may be the first time anyone has noticed.

According to the code there is a hardcoded “ALL” which may do what you want, it appears to be documented in the ENUMLOOKUP documentation as well[1].

[1] ENUMLOOKUP - Asterisk Documentation

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.