summaryrefslogtreecommitdiff
path: root/modules/mwi/mwi.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-14 20:15:43 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-14 20:15:43 +0200
commitdc794b38d0726e5104f266d304d987a7a3ad1b18 (patch)
treee3a1012cb36b8ac27af2614124ecb8cb7c704dc7 /modules/mwi/mwi.c
parentfcad53c745fe4cfa0a13e40f34bbe77a23aa5202 (diff)
ui: make API re-entrant
Diffstat (limited to 'modules/mwi/mwi.c')
-rw-r--r--modules/mwi/mwi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/mwi/mwi.c b/modules/mwi/mwi.c
index 4ce4a19..4bae5f5 100644
--- a/modules/mwi/mwi.c
+++ b/modules/mwi/mwi.c
@@ -60,8 +60,10 @@ static void notify_handler(struct sip *sip, const struct sip_msg *msg,
struct mwi *mwi = arg;
if (mbuf_get_left(msg->mb)) {
- ui_output("----- MWI for %s -----\n", ua_aor(mwi->ua));
- ui_output("%b\n", mbuf_buf(msg->mb), mbuf_get_left(msg->mb));
+ struct ui_sub *uis = baresip_uis();
+ ui_output(uis, "----- MWI for %s -----\n", ua_aor(mwi->ua));
+ ui_output(uis, "%b\n", mbuf_buf(msg->mb),
+ mbuf_get_left(msg->mb));
}
(void)sip_treply(NULL, sip, msg, 200, "OK");