]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4738 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Oct 2012 19:48:13 +0000 (15:48 -0400)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Oct 2012 19:48:13 +0000 (15:48 -0400)
src/switch_cpp.cpp

index 0f7a52066b3029024eec44a902ee0a8469d9bd5b..64ca2fc120a2aef6f97deb7ac162e22665263f3e 100644 (file)
@@ -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();
                }