Open jhuijsing opened 3 years ago
test line sip:+14489938989833;rn=+21450@test.com
regex ^(sip|tel):+1([[:digit:]]).;rn=+2([[:digit:]]{4,5}).*
replace tel:\330\2;phone-context=+1
displays
tel:04489938989833;phone-context=+1
expecting tel:1450304489938989833;phone-context=+1
regex should be ^(sip|tel):\+1([[:digit:]]+).;rn=\+2([[:digit:]]{4,5}).*
^(sip|tel):\+1([[:digit:]]+).;rn=\+2([[:digit:]]{4,5}).*
replace should be tel:${3}30\2;phone-context=+1
tel:${3}30\2;phone-context=+1
Link
test line sip:+14489938989833;rn=+21450@test.com
regex ^(sip|tel):+1([[:digit:]]).;rn=+2([[:digit:]]{4,5}).*
replace tel:\330\2;phone-context=+1
displays
tel:04489938989833;phone-context=+1
expecting tel:1450304489938989833;phone-context=+1