Skip to content

Commit

Permalink
menu: print incoming message using ui_output()
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Nov 12, 2017
1 parent a0d7d73 commit 0643dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/menu/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,8 @@ static void message_handler(const struct pl *peer, const struct pl *ctype,
(void)ctype;
(void)arg;

(void)re_fprintf(stderr, "\r%r: \"%b\"\n", peer,
mbuf_buf(body), mbuf_get_left(body));
ui_output(baresip_uis(), "\r%r: \"%b\"\n",
peer, mbuf_buf(body), mbuf_get_left(body));

(void)play_file(NULL, baresip_player(), "message.wav", 0);
}
Expand Down

0 comments on commit 0643dca

Please sign in to comment.