Detect the incoming ANI and redirect automatically to extent

Hi guys;
i searched the forum but i couldn’t find anything like this.

Let’s say i have extention 250, and everytime a person dials from a specific number, like 305-123-4567 that person get’s transfered to that extention automatically.

How do i do that?

Tnx!

you can use GoToIf see link

voip-info.org/wiki-Asterisk+cmd+GotoIf