If this excerpt from the core docs still holds true: "It is necessary to include the port (the port value used in the “port=” or “listen=” defintions) in the alias definition otherwise the loose_route() function will not work as expected for local forwards", it might be a good idea to use # alias="sip.mydomain.com:5060" here to provide a hint to whomever is reading this.