Execute agi php script during a dial

Hi,

I will execute agi php scipt during a dial, the agi is only executed after the dial is finished.
You have one idee ?
Sorry for my bad english.

Thanks

I think you can use local channel