[HELP] Can Asterisk be used to be a PURE IAX PROXY?

How can I implement following:

Users can send register and invite packets to Asterisk, and send audio packets to destinations by P2P mode. So Asterisk can be a iax proxy, like sip proxy.

Thank you frist.