Anyone succeeded in using regexp replacements in ENUM, like "!\\+421257296(.*)$!sip:2\\1@stuba.sk!" I can't get it to work in ASterisk. I've added '\\1' and Debug echos "1" I've added '\\\\1' and debug echoes "\1", but regexp fails to work. The example above is from the nic.at presentation, I can't get it to work. /Olle
Olle E. Johansson wrote:> Anyone succeeded in using regexp replacements in ENUM, like > "!\\+421257296(.*)$!sip:2\\1@stuba.sk!" > I can't get it to work in ASterisk. > > I've added '\\1' and Debug echos "1" > I've added '\\\\1' and debug echoes "\1", but regexp fails to work. > > The example above is from the nic.at presentation, I can't get it to work. >Enabled the ENUM debug stub in enum.c strcpy(regexp, "!^\\+43(.*)$!\\1@bla.fasel!"); ...and it fails... I'll file a bug report. /O
A working ENUM record: ; Mecosta Test routing *.2.7.9.1.3.2.1 IN NAPTR 100 10 "u" "E2U+X-IAX2" "!^\\+(.*)$!iax2:gw-mecosta/\\1!" . Jeremy McNamara Olle E. Johansson wrote:> Anyone succeeded in using regexp replacements in ENUM, like > "!\\+421257296(.*)$!sip:2\\1@stuba.sk!" > I can't get it to work in ASterisk. > > I've added '\\1' and Debug echos "1" > I've added '\\\\1' and debug echoes "\1", but regexp fails to work. > > The example above is from the nic.at presentation, I can't get it to > work. > > /Olle > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users