manager_channels: Fix throwing of HangupHandler manager events
[asterisk/asterisk.git] / main / manager_channels.c
index edbc770..646bbd7 100644 (file)
@@ -971,11 +971,11 @@ static void channel_hangup_handler_cb(void *data, struct stasis_subscription *su
                return;
        }
 
-       if (!strcmp(action, "type")) {
+       if (!strcmp(action, "run")) {
                event = "HangupHandlerRun";
-       } else if (!strcmp(action, "type")) {
+       } else if (!strcmp(action, "pop")) {
                event = "HangupHandlerPop";
-       } else if (!strcmp(action, "type")) {
+       } else if (!strcmp(action, "push")) {
                event = "HangupHandlerPush";
        } else {
                return;