Ticket #3980 (closed Bugs: fixed)

Opened 3 years ago

Last modified 3 years ago

ENUM Lookup not frunctioning properly

Reported by: kieranmullen3 Assigned to: p_lindheimer
Priority: major Milestone: 2.8
Component: Core - Trunks/Routing Version: 2.5-branch
Keywords: Cc:
Confirmation: Unreviewed Distro:
Backend Engine: Asterisk 1.4.x Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description (Last modified by mickecarlsson)

ENUM Lookup runs but does not perform function correctly. I have confirmed lookup information is valid with e164.org email list. FreePBX 2.5.2.2 All updated exccept for version to Beta. (if bug is confirmed as fixed in Beta I will upgrade to beta)

I have a dial pattern matching on the enum trunk 1+NXXXXXXXXX

When the number 555-555-1212 is dialed (replaced my number for this post not for test) it matches the pattern but returns result of 0 even though it does exists. I also checked to make sure the uri was valid in GizmoProject?.com with sip uri dialing.

My only guess is either the lookups are not working at all or it is looking up the number before the outgoing string is adjusted,

Ideas?

Thanks!

-- Executing [s@macro-dialout-enum:6] Set("SIP/200-a02ad9e0",
"DIAL_NUMBER=5555551212") in new stack
   -- Executing [s@macro-dialout-enum:7] Set("SIP/200-a02ad9e0",
"DIAL_TRUNK=7") in new stack
   -- Executing [s@macro-dialout-enum:8] ExecIf("SIP/200-a02ad9e0",
"1|AGI|fixlocalprefix") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
 ==  fixlocalprefix: Dialpattern 1+NXXXXXXXXX matched. 5555551212 ->
15555551212
   -- AGI Script fixlocalprefix completed, returning 0
   -- Executing [s@macro-dialout-enum:9] AGI("SIP/200-a02ad9e0",
"enumlookup.agi") in new stack
   -- Launched AGI Script /var/lib/asterisk/agi-bin/enumlookup.agi
   -- AGI Script enumlookup.agi completed, returning 0
   -- Executing [s@macro-dialout-enum:10] GotoIf("SIP/200-a02ad9e0",
"1?end") in new stack
   -- Goto (macro-dialout-enum,s,18)
   -- Executing [s@macro-dialout-enum:18] NoOp("SIP/200-a02ad9e0",
"Exiting macro-dialout-enum") in new stack
   -- Executing [5033501765@from-internal:6]
Macro("SIP/200-a02ad9e0", "dialout-trunk|8|5555551212||") in new stack

Change History

12/20/09 16:03:35 changed by mickecarlsson

  • description changed.

01/29/10 01:46:38 changed by p_lindheimer

  • milestone changed from 2.7 to 2.8.

01/29/10 12:34:32 changed by mickecarlsson

See also #3992

01/29/10 13:50:46 changed by p_lindheimer

as an fyi I have moved this to 2.8 because I do nothing with ENUM. If someone wants to take this on and determine the conclusive fix I'm happy to get it put in sooner rather then later.

01/29/10 15:47:45 changed by mickecarlsson

The fix is to always use Google's dns, they return the NAPTR properly.

There is an issue with this as Google tracks the usage if their dns servers.

I think it should be selectable, I can add a setting in amportal.conf like USEGOOGLEDNSINENUM=true/false and code the function in enum to use Google dns if set to true.

02/01/10 16:12:59 changed by mickecarlsson

(In [8749]) Re #2389 #3980 #3992 Modified enumlookup.agi to use Google dns 8.8.8.8 if selected in amportal.conf A new variable in amportal.conf called USEGOOGLEDNSFORENUM needs to be set to true for this to work. Modification of core was necessary to set a global in Asterisk called ENUMUSEGOOGLEDNS I also cleaned up the agi script as it was checking for php function dns_get_record and dig for every enumeration of the enum array.

02/01/10 16:25:40 changed by mickecarlsson

  • status changed from new to closed.
  • resolution set to fixed.

(In [8750]) Closes #2839 #3980 #3992 added setting in amportal.conf for using Google DNS for enumlookup.ago

02/28/10 01:32:53 changed by p_lindheimer

(In [9043]) Merged revisions 8714-9042 via svnmerge from http://svn.freepbx.org/freepbx/branches/2.7

................

r8714 | p_lindheimer | 2010-01-30 08:02:33 -0800 (Sat, 30 Jan 2010) | 1 line

branch trunk to 2.7

................

r8731 | p_lindheimer | 2010-01-30 09:18:30 -0800 (Sat, 30 Jan 2010) | 1 line

Creating release 2.7.0beta1

................

r8750 | mickecarlsson | 2010-02-01 13:25:40 -0800 (Mon, 01 Feb 2010) | 1 line

Closes #2839 #3980 #3992 added setting in amportal.conf for using Google DNS for enumlookup.ago

................

r8751 | mickecarlsson | 2010-02-01 13:29:00 -0800 (Mon, 01 Feb 2010) | 1 line

Dont use language specific page in the url

................

r8763 | mickecarlsson | 2010-02-02 11:02:41 -0800 (Tue, 02 Feb 2010) | 1 line

Updated amp.pot for 2.7

................

r8764 | mickecarlsson | 2010-02-02 11:25:42 -0800 (Tue, 02 Feb 2010) | 1 line

Spelling error fix

................

r8766 | mickecarlsson | 2010-02-02 11:46:04 -0800 (Tue, 02 Feb 2010) | 1 line

Spelling error fixes for 2.7 branch

................

r8772 | mickecarlsson | 2010-02-02 14:34:58 -0800 (Tue, 02 Feb 2010) | 1 line

Close #4024 add check for Asterisk 1.6 in GotoIfTime? extensions class

................

r8829 | p_lindheimer | 2010-02-16 08:09:12 -0800 (Tue, 16 Feb 2010) | 9 lines

Merged revisions 8828 via svnmerge from http://svn.freepbx.org/freepbx/branches/2.6

........

r8828 | p_lindheimer | 2010-02-16 08:06:59 -0800 (Tue, 16 Feb 2010) | 1 line

sytax error == should be assignment =

........

................

r8843 | p_lindheimer | 2010-02-17 09:17:43 -0800 (Wed, 17 Feb 2010) | 1 line

change mohmp3 to moh, put moh as default in template, use mohmp3 as fallback default when not specified for compatibility re #4051

................

r8846 | p_lindheimer | 2010-02-17 12:15:05 -0800 (Wed, 17 Feb 2010) | 1 line

closes #4052 add option to force reinstall or downgrade modules

................

r8847 | p_lindheimer | 2010-02-17 12:23:23 -0800 (Wed, 17 Feb 2010) | 1 line

bump the base version to RC1 in prep for RC1 tarball

................

r8848 | p_lindheimer | 2010-02-17 12:27:26 -0800 (Wed, 17 Feb 2010) | 1 line

update CHANGES for RC release

................

r8849 | p_lindheimer | 2010-02-17 12:36:58 -0800 (Wed, 17 Feb 2010) | 1 line

closes #3575 check for ASTMANAGERHOST and ASTMANAGERPORT

................

r8860 | p_lindheimer | 2010-02-17 16:50:54 -0800 (Wed, 17 Feb 2010) | 1 line

Creating release 2.7.0RC1

................

r8861 | p_lindheimer | 2010-02-17 16:53:25 -0800 (Wed, 17 Feb 2010) | 1 line

Modify build tools to deal with change from mohmp3 to moh

................

r8862 | p_lindheimer | 2010-02-17 16:53:45 -0800 (Wed, 17 Feb 2010) | 1 line

Creating release 2.7.0RC1

................

r8873 | p_lindheimer | 2010-02-17 17:10:45 -0800 (Wed, 17 Feb 2010) | 1 line

remove the wihtmodules generation part of script, we don't use that anymore

................

r8880 | mickecarlsson | 2010-02-18 13:54:51 -0800 (Thu, 18 Feb 2010) | 1 line

Finally, an automated tool to generate all .pot files for localization, ugly but working. Requires some setup yet to be documented, should have merge from trunk but I did not manage that so here is another ci

................

r8881 | p_lindheimer | 2010-02-18 16:45:33 -0800 (Thu, 18 Feb 2010) | 1 line

fixes #4057 don't iterate through global array when calling hooks or hooks that do the same will end the loop prematurely

................

r8907 | p_lindheimer | 2010-02-22 16:59:53 -0800 (Mon, 22 Feb 2010) | 1 line

adds un-published option, USEDIALONE, to use the experimental macro-dial-one in place of macro-dial + dialparties.agi when dialing single extensions. The macro has been very little tested and is otherwise not used at all if this is not set. However, this will enable for those who want to start to test the macro and help flush out its operation for a 2.8 target re #4068

................

r8923 | mickecarlsson | 2010-02-24 12:38:40 -0800 (Wed, 24 Feb 2010) | 1 line

Commented out format_au.so as it is removed from Asterisk 1.4 and later.

................

r8950 | mickecarlsson | 2010-02-27 06:40:10 -0800 (Sat, 27 Feb 2010) | 1 line

Updated amp.pot, updated swedish language

................

r8952 | mickecarlsson | 2010-02-27 07:45:55 -0800 (Sat, 27 Feb 2010) | 1 line

Removed obsolete language tool

................

r8971 | p_lindheimer | 2010-02-27 21:48:35 -0800 (Sat, 27 Feb 2010) | 1 line

2.7.0 upgrade directory for release

................

r8972 | p_lindheimer | 2010-02-27 21:52:36 -0800 (Sat, 27 Feb 2010) | 1 line

update CHANGES

................

r9029 | p_lindheimer | 2010-02-27 22:17:38 -0800 (Sat, 27 Feb 2010) | 1 line

Creating release 2.7.0

................