What is dialparties.agi?

It’s belong to Asterisk or to FreePBX?
The asterisk support call-waiting setting?

Why I see that dialparties.agi Use with Manager Interface (login to 127.0.0.1). this is very strange that for each call we execute AGI like this, instead of use with the core of asterisk?