If we download the complete book length programming guide, the information tag leg_state and the status for that lg_xxx are missed.
But if we download chapter by chapter we can get those information.
Here is the link:
http://www.cisco.com/en/US/docs/ios/voice/tcl/developer/guide/tclivrv2_ch4.html
Leg State :
The state of the call leg and the corresponding status code is reported in lg_xxx format:
There is a perspective that TCL-IVR applications are not flexible enough for a newbie to play around. But in fact, there are lots of IVR applications that are coming inbuilt with Voice GW. You just need to copy/paste in a file editor and tweak it.
The recent hype is for BACD IVR applications. They are coming inbuilt with 12.4(15)T and later. Most of the enhancements are done with BACD AA application and that too coming inbuilt you can very easily play around with. Its easy to modify it to suite a big call centre/customer support kind of environment.
Just issue "show call application voice summary" to see all the inbuilt TCL applications. Happy IVR-ing :-)!!!