[SR-Users] [EXT] Re: Kamailio 5.2.2 IMS -enum_query question
Woscek, Martin W.
mwoscek at mitre.org
Tue Jan 21 12:32:45 CET 2020
Hi Henning,
It turned out that I didn't know how an e.164 lookup is initiated particularly the required format of the calling number.
Reading through the source code, the function call: is_e164() showed I was missing the leading + char. I also noticed that I missed the LM_ERR in my log files eg:
Jan 10 10:50:11 imskamailio /usr/local/sbin/kamailio[24552]: ERROR: enum [enum.c:840]: enum_query(): R-URI user '<1234567>' is not an E164 number
In our case we are looking at standing up a ENUM server that can be queried for specific user characteristics to complete a call, so now we append the '+' when we want to check a caller or callee:
enum_pv_query("+$rU", "enumsvc.e164.arpa.", "sip+video")
enum_pv_query("+$fU", " enumsvc.e164.arpa", "+sip+video")
All is good now.
Thanks!
Martin
From: Henning Westerholt <hw at skalatan.de>
Sent: Saturday, January 18, 2020 6:47 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>; Woscek, Martin W. <mwoscek at mitre.org>
Subject: [EXT] Re: [SR-Users] Kamailio 5.2.2 IMS -enum_query question
Hello Martin,
do you see any errors in the log file during the time that you execute the enum_query? Have you tried to test it with activated debug logging?
Cheers,
Henning
Am 10.01.20 um 17:57 schrieb Woscek, Martin W.:
Hi,
I am trying to invoke unum lookups from calls to enum_query() ,is_from_user_enum() and enum_pv_query().
However we are not seeing any enum lookups over the wire using wireshark.
In the Kamailio.cfg the following are set:
loadmodule "enum"
modparam("enum", "domain_suffix", "mydnsserver.org.")
modparam("enum", "i_enum_suffix", " mydnsserver.org.")
sample use in our Kamailio.cfg file:
if(!enum_query("mydnsserver.org.")) {
xlog("....);
#do something
} else {
Xlog("....")
#do something else
}
I do see NAPTR lookups being done by the other Kamailio IMS processes initially when it starts up so I know it has connectivity to the DNS server, but none for the invoked enum queries.
We are running Kamailio 5.2.2.
Thanks,
Martin
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com
Kamailio Merchandising - https://skalatan.de/merchandising/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200121/812dc7cd/attachment.html>
More information about the sr-users
mailing list