From eb802c8f06e3222e45245014abeaf67f41e230d6 Mon Sep 17 00:00:00 2001 From: yanmorin <yanmorin> Date: Tue, 20 Sep 2005 20:51:28 +0000 Subject: [PATCH] Add message handling when not registred --- src/gui/server/guiserver.cpp | 1 + src/sipvoiplink.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/server/guiserver.cpp b/src/gui/server/guiserver.cpp index dab7006600..f6722e8165 100644 --- a/src/gui/server/guiserver.cpp +++ b/src/gui/server/guiserver.cpp @@ -181,6 +181,7 @@ void GUIServer::hangup(const std::string& callId) { try { short id = getIdFromCallId(callId); + // There was a problem when hanging up... if (!GuiFramework::hangupCall(id)) { throw std::runtime_error("Error when hangup"); } diff --git a/src/sipvoiplink.cpp b/src/sipvoiplink.cpp index fb3cb8e0a1..36b99d67d6 100644 --- a/src/sipvoiplink.cpp +++ b/src/sipvoiplink.cpp @@ -747,11 +747,12 @@ SipVoIPLink::getEvent (void) } break; - case EXOSIP_REGISTRATION_SUCCESS: + case EXOSIP_REGISTRATION_SUCCESS: //1 Manager::instance().displayStatus(LOGGED_IN_STATUS); break; - case EXOSIP_REGISTRATION_FAILURE: + case EXOSIP_REGISTRATION_FAILURE: // 2 + Manager::instance().displayError("getEvent:Registration Failure"); break; case EXOSIP_MESSAGE_NEW: -- GitLab