I've commited INVITE challenges support and transparent 401 or 407 management on subversion repository. To work with Asterisk, I still have to manage re-INVITEs correctly on peers.