revert_uri();
if (uri=~"^sip:9[2-9][0-9]{6}@") {
strip(1);
};
subst_uri('/^sip:([0-9]+)@(.*)$/sip:$avp(s:areacode)\...@\2/i');
prefix("VMR_");
rewritehost("173.XXX.XX.63");
xlog("----- new ruri=<$ru>, dst=<$du>\n");
t_relay();
exit;
And my log shows
----- new ruri=<sip:[email protected];user=phone>,
dst=<sip:75.65.8.158:2049>
--
View this message in context:
http://opensips-open-sip-server.1449251.n2.nabble.com/rewritehostport-not-working-but-it-has-before-tp5699595p5701562.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users