[asterisk-dev] ENUMLOOKUP - regex broken?

Chris Maciejewski chris at wima.co.uk
Sat Feb 28 17:18:32 CST 2009


Hi,

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,1,e164.org)})
exten => _X.,n,NoOp(Enum URI: ${ENUM_URI})

returns: ... "Enum URI: 4480044800123123 at selfnet.at") in new stack

Is there a problem with regex rewriting in ENUMLOOKUP function?

Best regards,
Chris



More information about the asterisk-dev mailing list