On Thu, 27 Nov 2003, Olle E. Johansson wrote:
Olle E. Johansson wrote:
Anyone succeeded in using regexp replacements in ENUM, like "!\\+421257296(.*)$!sip:[EMAIL PROTECTED]" 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(.*)[EMAIL PROTECTED]");
...and it fails...
I'll file a bug report.
> Thats because thats not correct. Aha, I thought the stub was correct..
> show me your full NAPTR record.
I try all versions:
0.5.2.3.4.4.4.8.6.4 IN NAPTR 100 10 "u" "E2U+IAX2" "!^\\+*(.*)$!iax2:webwayvx/3000!" . *.7.6.7.0.0.0 IN NAPTR 100 10 "u" "E2U+SIP" "!^\\+000767(.*)$!sip:[EMAIL PROTECTED]" . *.1.6.4.0.0.0 IN NAPTR 100 10 "u" "E2U+SIP" "!^\\\\+000461(.*)$!sip:[EMAIL PROTECTED]" .
Thank you for looking into this.
/Olle
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
