diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2011-02-02 18:37:02 +0200 |
---|---|---|
committer | Pekka Pessi <Pekka.Pessi@nokia.com> | 2011-02-02 18:37:02 +0200 |
commit | 2cd686d12c99c64125daef172f09734907f71a1e (patch) | |
tree | 21398b5770d46a0cd4fb352547aef61b8171f688 | |
parent | 6106c27d8aa4dd6fb841b805f8f7d6885fc74262 (diff) |
ring-media-channel: log error response to hold request
-rw-r--r-- | src/ring-media-channel.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ring-media-channel.c b/src/ring-media-channel.c index 35aad36..c8c97d8 100644 --- a/src/ring-media-channel.c +++ b/src/ring-media-channel.c @@ -891,8 +891,16 @@ response_to_hold (ModemCall *ci, if (error && priv->hold.requested != -1) { - ring_update_hold (self, - priv->hold.requested ? TP_LOCAL_HOLD_STATE_UNHELD : TP_LOCAL_HOLD_STATE_HELD, + uint8_t next; + + DEBUG ("%s: %s", self->nick, error->message); + + if (priv->hold.requested) + next = TP_LOCAL_HOLD_STATE_UNHELD; + else + next = TP_LOCAL_HOLD_STATE_HELD; + + ring_update_hold (self, next, TP_LOCAL_HOLD_STATE_REASON_RESOURCE_NOT_AVAILABLE); priv->hold.requested = -1; |