FreePBX -Asterisk and Prophecy IVR

I am trying to get a DID to dial thru Asterisk. I have the SIP side setup just fine and if I use my softphone and dial the extension say 9999, it calls the prophecy server just fine.

What I want to do is have one of my DID work calling thru Asterisk to prophecy. I’m using Trixbox with:

Welcome to the FreePBX Administration 2.1.1

This is what I have:

exten => 9999,1,Ringing
exten => 9999,2,Dial(SIP/[email protected],60,r)
exten => 9999,3,Hangup

I just don’t know what section to put this in to work in extensions and dial from the outside.