diff options
Diffstat (limited to 'main/manager_mwi.c')
-rw-r--r-- | main/manager_mwi.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/main/manager_mwi.c b/main/manager_mwi.c index 12a3de361..849c315e1 100644 --- a/main/manager_mwi.c +++ b/main/manager_mwi.c @@ -41,7 +41,7 @@ struct stasis_message_router *mwi_state_router; /*! \brief The \ref stasis subscription returned by the forwarding of the MWI topic * to the manager topic */ -static struct stasis_subscription *topic_forwarder; +static struct stasis_forward *topic_forwarder; /*! \brief Callback function used by \ref mwi_app_event_cb to weed out "Event" keys */ static int exclude_event_cb(const char *key) @@ -54,7 +54,6 @@ static int exclude_event_cb(const char *key) /*! \brief Generic MWI event callback used for one-off events from voicemail modules */ static void mwi_app_event_cb(void *data, struct stasis_subscription *sub, - struct stasis_topic *topic, struct stasis_message *message) { struct ast_mwi_blob *payload = stasis_message_data(message); @@ -86,7 +85,6 @@ static void mwi_app_event_cb(void *data, struct stasis_subscription *sub, } static void mwi_update_cb(void *data, struct stasis_subscription *sub, - struct stasis_topic *topic, struct stasis_message *message) { struct ast_mwi_state *mwi_state; @@ -149,7 +147,7 @@ static void mwi_update_cb(void *data, struct stasis_subscription *sub, static void manager_mwi_shutdown(void) { - stasis_unsubscribe(topic_forwarder); + stasis_forward_cancel(topic_forwarder); topic_forwarder = NULL; } |