Newbie Asterisk help needed

This my first post here :wink:

I’m pro PHP/Mysql developer that need some help here. I’ve no Asterisk work background at all. And this will be my first.

I need a system that can be originated voip calls in SIP (with caller id) to it, and then do some IVR in it. Also some calls should be send to another gateway instead. The system should be interacted with mysql and php in order to do some calculations realtime.

Now, as I dont have any background in asterisk, any help/advise will be appreciated. on how things can be done for my scenario.