ASTPP CDR duration include call waiting time

Currently system calculate the duration from call answer to call end only. how can i make it system calculate duration from start ringback–>call answe–>call end?

You need to debug and apply related patch in astpp.cdr.php