roayu wrote:
In that case, since it's not recommended to change the TO header, is there any other ways I can make the SER to route to another SIP server without using rewritehostport()?
Yes, several. First of all, rewritehostport() does no forwarding, it just changes the domain part of the request URI (not To). Use forward() or t_relay() depending on your particular needs.
Regards, Olaf