Route incoming calls to please

I am trying to figure out how to route an incoming call to an AGI script.

My question is. Where in the conf files do i need to call the AGI script. I have looked through them but can’t figure out exactly where it needs to go.

I can make and recieve IAX2 calls through a softphone. I just want the inbound number that rings to extention 6000 to instead go straight to an AGI script.

Thanks for your help.