$DIALSTATUS values and the MANAGER API

Hello,

I’m writing a small PHP application that generates calls automatically and tries to store call details on a Mysql Db, using manager API .

When making an autodial call, I noticed that I couldn’t read $DIALSTATUS values; since I can’t evaluate dial status (BUSY, CONGESTION, NOANSWER), I can’t understand when a receiver was busy or not.

Nobody seems to have solved this problem; I visited many wiki sites but no answer was found.

Could you help me to understand how could I get these values ?

Thank you.

when the call dies you can have it fire a DEADAGI on the h extension to get the DIALSTATUS and send that to the DB