Migrate a large number of AMI events over to Stasis-Core
[asterisk/asterisk.git] / channels / chan_unistim.c
index 88332ec..42a71ba 100644 (file)
@@ -5508,10 +5508,10 @@ static int unistim_send_mwi_to_peer(struct unistim_line *peer, unsigned int tick
 
        ast_str_set(&uniqueid, 0, "%s@%s", mailbox, context);
 
-       msg = stasis_cache_get(stasis_mwi_topic_cached(), stasis_mwi_state_type(), ast_str_buffer(uniqueid));
+       msg = stasis_cache_get(ast_mwi_topic_cached(), ast_mwi_state_type(), ast_str_buffer(uniqueid));
 
        if (msg) {
-               struct stasis_mwi_state *mwi_state = stasis_message_data(msg);
+               struct ast_mwi_state *mwi_state = stasis_message_data(msg);
                new = mwi_state->new_msgs;
        } else { /* Fall back on checking the mailbox directly */
                new = ast_app_has_voicemail(peer->mailbox, "INBOX");