How do I register a trunk without username?

In this case you don’t need any registration string. Just leave it blank:

peer=some IP address
insecure=very
type=friend
dissallow=all
allow=whatever codec you want to use

That’s it…