Author: anthm Date: Thu Feb 15 15:02:52 2007 New Revision: 4292 Modified: freeswitch/trunk/src/switch_ivr.c Log: update Modified: freeswitch/trunk/src/switch_ivr.c ============================================================================== --- freeswitch/trunk/src/switch_ivr.c (original) +++ freeswitch/trunk/src/switch_ivr.c Thu Feb 15 15:02:52 2007 @@ -4980,6 +4980,9 @@ if (!(x_application = switch_xml_add_child_d(x_caller_extension, "application", app_off++))) { goto error; } + if (ap == caller_profile->caller_extension->current_application) { + switch_xml_set_attr_d(x_application, "last_executed", "true"); + } switch_xml_set_attr_d(x_application, "app_name", ap->application_name); switch_xml_set_attr_d(x_application, "app_data", ap->application_data); }