Sounds like the systems we have in Iraq. Its a radar system that tracks the incoming rounds, calculates where the round will hit and more importantly, where the round was fired from. All before the round lands. Very impressive.
On a much smaller scale. Israel can't destroy the building they're launching from after all, only the mortar crew.