[asterisk-bugs] [Asterisk 0014576]: ENUMLOOKUP - broken regex.
Asterisk Bug Tracker
noreply at bugs.digium.com
Sun Mar 1 15:56:55 CST 2009
The following issue has been SUBMITTED.
======================================================================
http://bugs.digium.com/view.php?id=14576
======================================================================
Reported By: chris-mac
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 14576
Category: Functions/func_enum
Reproducibility: always
Severity: major
Priority: normal
Status: new
Asterisk Version: SVN
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1
SVN Revision (number only!): 178608
Request Review:
======================================================================
Date Submitted: 2009-03-01 15:56 CST
Last Modified: 2009-03-01 15:56 CST
======================================================================
Summary: ENUMLOOKUP - broken regex.
Description:
The following number +44800123123 is registered with e164.org.
$ dig 3.2.1.3.2.1.0.0.8.4.4.e164.org naptr
returns:
....
3.2.1.3.2.1.0.0.8.4.4.e164.org. 11 IN NAPTR 200 10 "u" "E2U+SIP"
"!^\\+44800(.*)$!sip:44800\\1 at selfnet.at!" .
so in theory it should translate to: sip:44800123123 at selfnet.at
But the following dialplan function:
exten => _X.,n,Set(ENUM_URI=${ENUMLOOKUP(+44800123123,sip,s,,e164.org)})
exten => _X.,n,NoOp(Enum URI: ${ENUM_URI})
returns:
... "Enum URI: 4480044800123123 at selfnet.at") in new stack
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-03-01 15:56 chris-mac New Issue
2009-03-01 15:56 chris-mac Asterisk Version => SVN
2009-03-01 15:56 chris-mac Regression => No
2009-03-01 15:56 chris-mac SVN Branch (only for SVN checkouts, not tarball
releases) => 1.6.1
2009-03-01 15:56 chris-mac SVN Revision (number only!) => 178608
======================================================================
More information about the asterisk-bugs
mailing list