Having trouble connecting a soft phone to a cloud hosted Asterisk

So we’ve got asterisk up and running on a CentOS 6 Azure cloud vm, but we’re having problems connecting a user soft phone to it for testing. We’ve created a port 5060 udp endpoint in Azure, but we still aren’t able to register the phone. This is our current sip.conf:

[general]
context=nowhere ;;Hangs up for non-registered users
allowguest=no
alwaysauthreject=yes
transport=udp
nat=yes
externip=XX.XX.XXX.XX ;;;External IP of vm
localnet=10.0.0.8/255.0.0.0

friends_internal
type=friend
host=dynamic
context=from-internal ; Proper context
disallow=all
allow=ulaw

test-phone
secret=passwordhere ;;;not the real password

We’re using Zoiper as our soft phone. We’ve got the XX.XX.XXX.XX IP for the domain, test-phone as username, and passwordhere as the password. There’s some additional settings below as well. I’m pretty much the biggest networking noob ever, so this is probably a simple fix that I’m just missing. Any help is appreciated!

I ended up figuring it out.