diff options
author | Alfred E. Heggestad <aeh@db.org> | 2016-01-17 23:43:01 +0100 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2016-01-17 23:43:01 +0100 |
commit | 753a848f7865529cdb1c665db54b56612f441662 (patch) | |
tree | f2124854cc8dedca5bd3f431024d35dfaf0d696e | |
parent | 5eaca6501fcc99c1a2e7480d8c04ddbd6d835c4e (diff) |
menu: stop alert on hangup (fixes #105)
-rw-r--r-- | modules/menu/menu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/menu/menu.c b/modules/menu/menu.c index 0d0ca92..70f2b45 100644 --- a/modules/menu/menu.c +++ b/modules/menu/menu.c @@ -40,6 +40,7 @@ static struct { static void menu_set_incall(bool incall); static void update_callstatus(void); +static void alert_stop(void); static const char *translate_errorcode(uint16_t scode) @@ -324,6 +325,7 @@ static int cmd_hangup(struct re_printf *pf, void *unused) /* Stop any ongoing ring-tones */ menu.play = mem_deref(menu.play); + alert_stop(); ua_hangup(uag_cur(), NULL, 0, NULL); |