From dc19ff6675c0b984511b363e748f601e75492a8c Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 21 Oct 2014 00:06:02 +0200 Subject: [PATCH] Updated the copyright line --- include/Phone/modem.h | 3 ++- src/plugins/notify.c | 2 +- src/plugins/profiles.c | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/Phone/modem.h b/include/Phone/modem.h index f7d1be2..bfdd5a6 100644 --- a/include/Phone/modem.h +++ b/include/Phone/modem.h @@ -59,7 +59,8 @@ typedef enum _ModemCallStatus { MODEM_CALL_STATUS_NONE = 0, MODEM_CALL_STATUS_RINGING, - MODEM_CALL_STATUS_ACTIVE + MODEM_CALL_STATUS_ACTIVE, + MODEM_CALL_STATUS_BUSY } ModemCallStatus; typedef enum _ModemCallType diff --git a/src/plugins/notify.c b/src/plugins/notify.c index 6e98bc8..69fac8a 100644 --- a/src/plugins/notify.c +++ b/src/plugins/notify.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2012 Pierre Pronchery */ +/* Copyright (c) 2012-2014 Pierre Pronchery */ /* This file is part of DeforaOS Desktop Phone */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/plugins/profiles.c b/src/plugins/profiles.c index 9a68889..c8090cf 100644 --- a/src/plugins/profiles.c +++ b/src/plugins/profiles.c @@ -225,6 +225,8 @@ static int _event_modem_event(Profiles * profiles, ModemEvent * event) else if(direction == MODEM_CALL_DIRECTION_OUTGOING && status == MODEM_CALL_STATUS_RINGING) _profiles_play(profiles, "ringback", 0); + else if(status == MODEM_CALL_STATUS_BUSY) + _profiles_play(profiles, "busy", 0); else if(status == MODEM_CALL_STATUS_NONE || status == MODEM_CALL_STATUS_ACTIVE) _profiles_play(profiles, NULL, 0);