Hello,
 
there is a small typo in rewriteport example on Kamailio Wiki
 
should be rewriteport("5070"); instead of rewriteport(5070);
 
http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.5.x#rewriteport_setport
 
regards,
Andreas