but with the same setupo I also tried
enum_query(): No NAPTR record found for 0.0.0.0.0.0.0.0.6.5.4.4.e164.arpa. 2(27896) enum_query(): order 100, pref 10, flen 1, flags 'u', slen 7, services 'E2U+sip', rlen 63, regexp '!^[+*]*(44560000[[:digit:]]*)!sip:\1@public.sip.magrathea.net!' 2(27896) reg_replace(): pattern: '^[+*]*(44560000[[:digit:]]*)', replacement: 'sip:\1@public.sip.magrathea.net', string: '+445600000000' 2(27896) enum_query(): resulted in replacement: 'sip:445600000000@public.sip.magrathea.net' 2(27896) TOI: rewrite_uri: Rewriting Request-URI with 'sip:445600000000@public.sip.magrathea.net' 2(27896) enum_query(): order 100, pref 10, flen 1, flags 'u', slen 13, services 'E2U+voice:sip', rlen 63, regexp '!^[+*]*(44560000[[:digit:]]*)!sip:\1@public.sip.magrathea.net!'
and the replace statement is different, where does the [:digit] part come in,
Iqbal
Juha Heinanen wrote:
Iqbal writes:
'!^+3522619161(.*)$!sip:\1@siprelay.e164.info!'
\1 would be replaced by whatever follows +3522619161 in request uri, which in your example seems to be nothing.
-- juha
.