Request Hangupcause in php

Hi All,

I am trying to recognise the status of a call – whether it is busy, not in service, answered by an answering machine etc. I have read up on the hangupcause variable. I think it provided as much understanding as it could to a newbie. I’d now like to know how to request the hangupcause variable in a php file. Is there some request method in the agi class?

I’d like to make some tests and i plan on calling a number that will call a php script and this script will make an outgoing call to a number (busy#, #not in service etc.). I am hoping that the hangupcause variable will stores the status of the call the the script makes. Is this correct?