summaryrefslogtreecommitdiff
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r--res/res_musiconhold.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 604ff300e..410a23288 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1346,7 +1346,7 @@ static int local_ast_moh_start(struct ast_channel *chan, const char *mclass, con
return -1;
}
- manager_event(EVENT_FLAG_CALL, "MusicOnHold",
+ ast_manager_event(chan, EVENT_FLAG_CALL, "MusicOnHold",
"State: Start\r\n"
"Channel: %s\r\n"
"UniqueID: %s\r\n",
@@ -1378,7 +1378,7 @@ static void local_ast_moh_stop(struct ast_channel *chan)
}
}
- manager_event(EVENT_FLAG_CALL, "MusicOnHold",
+ ast_manager_event(chan, EVENT_FLAG_CALL, "MusicOnHold",
"State: Stop\r\n"
"Channel: %s\r\n"
"UniqueID: %s\r\n",