[asterisk-bugs] [Asterisk 0009692]: Regular expression parsing for ENUM entries on ENUMLOOKUP fails

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Aug 13 16:53:13 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=9692 
====================================================================== 
Reported By:                jtodd
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   9692
Category:                   Functions/func_enum
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 62039 
Disclaimer on File?:        Yes 
Request Review:              
====================================================================== 
Date Submitted:             05-08-2007 19:00 CDT
Last Modified:              08-13-2007 16:53 CDT
====================================================================== 
Summary:                    Regular expression parsing for ENUM entries on
ENUMLOOKUP fails
Description: 
ENUMLOOKUP returns errors when it should return a URL.  The data in the DNS
is valid, but Asterisk chokes on the re-write.  Verified on TRUNK from a
few days ago, and I haven't seen any ENUM-related fixes so it's a safe bet
it's still broken.


====================================================================== 

---------------------------------------------------------------------- 
 jamesgolovich - 08-13-07 16:53  
---------------------------------------------------------------------- 
Please provide an example that doesn't work.  Using the provided
information     
above:

exten => *11,1,Set(foo=${ENUMLOOKUP(43158058304)})
returns:
[Aug 13 14:48:23] WARNING[3967]: enum.c:247 parse_naptr: NAPTR Regex match
failed.
[Aug 13 14:48:23] WARNING[3967]: enum.c:363 enum_callback: Failed to parse
naptr :(
[Aug 13 14:48:23] WARNING[3967]: dns.c:226 dns_parse_answer: Failed to
parse result
[Aug 13 14:48:23] WARNING[3967]: dns.c:267 ast_search_dns: DNS Parse error
for 4.0.3.8.5.0.8.5.1.3.4.e164.arpa
    -- Executing [*11 at internal:1] Set("Zap/1-1", "foo=") in new stack


exten => *11,n,Set(foo=${ENUMLOOKUP(+43158058304)})
returns:
-- Executing [*11 at internal:2] Set("Zap/1-1", "foo=304 at rtr.at") in new
stack

So +43158058304 works just fine, and does not work without the + 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-13-07 16:53  jamesgolovich  Note Added: 0068802                          
======================================================================




More information about the asterisk-bugs mailing list