From: Anthony Minessale Date: Fri, 19 Oct 2012 19:48:13 +0000 (-0400) Subject: FS-4738 --resolve X-Git-Tag: v1.3.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe7580b13d1c4476bdf16919ed0c42d721714e61;p=thirdparty%2Ffreeswitch.git FS-4738 --resolve --- diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index 0f7a52066b..64ca2fc120 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -1288,6 +1288,7 @@ SWITCH_DECLARE_NONSTD(switch_status_t) hanguphook(switch_core_session_t *session if ((coresession = (CoreSession *) switch_channel_get_private(channel, "CoreSession"))) { if (coresession->hook_state != state) { + coresession->cause = switch_channel_get_cause(channel); coresession->hook_state = state; coresession->check_hangup_hook(); }