The type value extracted from stasis message data in channel_hangup_handler_cb
isn't compared against the valid values "run", "pop" and "push". Thus the
manager events HangupHandlerPush, HangupHandlerPop and HangupHandlerRun are
never thrown.
This regression was introduced by ASTERISK_21462.
ASTERISK-28252
Change-Id: I9956e35e18da1873113644df1ddc3c7cd37bf524
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;