From 57708ed4314795b623008b475e3fcfeffd99c7db Mon Sep 17 00:00:00 2001 From: MelwareDE Date: Thu, 6 Aug 2009 15:55:00 +0000 Subject: [PATCH] Fixed chat when adding third room. --- CHANGES | 5 +++++ chan_capi_chat.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 4cb40e5..56fefab 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,11 @@ CHANGES ======= +HEAD +------------------ +- use extended fax if available only and have fine resolution on receive activated by default +- fixed chat error on creating third chat-room + chan_capi-1.1.3 ------------------ - fixed buffer length error with internal libcapi debug code. diff --git a/chan_capi_chat.c b/chan_capi_chat.c index b21a172..6712d41 100644 --- a/chan_capi_chat.c +++ b/chan_capi_chat.c @@ -389,8 +389,8 @@ static struct capichat_s *add_chat_member(char *roomname, struct capi_pvt *i, ro room_mode = tmproom->room_mode; break; } else { - if (tmproom->number == roomnumber) { - roomnumber++; + if (tmproom->number >= roomnumber) { + roomnumber = tmproom->number + 1; } } tmproom = tmproom->next;