mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-20 11:43:52 +00:00
Make sure things compile...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383287 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -507,7 +507,7 @@ static int has_voicemail(struct mgcp_endpoint *p)
|
|||||||
|
|
||||||
ast_str_set(&uniqueid, 0, "%s@%s", mbox, cntx);
|
ast_str_set(&uniqueid, 0, "%s@%s", mbox, cntx);
|
||||||
|
|
||||||
msg = stasis_cache_get(stasis_mwi_topic_cached(), stasis_mwi_state(), ast_str_buffer(uniqueid));
|
msg = stasis_cache_get(stasis_mwi_topic_cached(), stasis_mwi_state_message(), ast_str_buffer(uniqueid));
|
||||||
|
|
||||||
if (msg) {
|
if (msg) {
|
||||||
struct stasis_mwi_state *mwi_state = stasis_message_data(msg);
|
struct stasis_mwi_state *mwi_state = stasis_message_data(msg);
|
||||||
@@ -4182,7 +4182,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
|
|||||||
ast_str_reset(uniqueid);
|
ast_str_reset(uniqueid);
|
||||||
ast_str_set(&uniqueid, 0, "%s@%s", mbox, cntx);
|
ast_str_set(&uniqueid, 0, "%s@%s", mbox, cntx);
|
||||||
|
|
||||||
maibox_specific_topic = stasis_mwi_topic(ast_str_buffer(uniqueid));
|
mailbox_specific_topic = stasis_mwi_topic(ast_str_buffer(uniqueid));
|
||||||
if (mailbox_specific_topic) {
|
if (mailbox_specific_topic) {
|
||||||
e->mwi_event_sub = stasis_subscribe(mailbox_specific_topic, mwi_event_cb, NULL);
|
e->mwi_event_sub = stasis_subscribe(mailbox_specific_topic, mwi_event_cb, NULL);
|
||||||
}
|
}
|
||||||
|
@@ -3249,7 +3249,7 @@ static void aji_mwi_cb(void *data, struct stasis_subscription *sub, struct stasi
|
|||||||
struct aji_client *client = data;
|
struct aji_client *client = data;
|
||||||
struct stasis_mwi_state *mwi_state;
|
struct stasis_mwi_state *mwi_state;
|
||||||
|
|
||||||
if (!stasis_subscription_is_subscribed(sub) || stasis_mwi_state() != stasis_message_type(msg)) {
|
if (!stasis_subscription_is_subscribed(sub) || stasis_mwi_state_message() != stasis_message_type(msg)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user