[telepathy-sofiasip/master] Remap SIP status 404 to Group change reason NoAnswer

Mikhail Zabaluev mikhail.zabaluev at nokia.com
Tue Apr 7 09:53:09 PDT 2009


This gives a middleway semantic between InvalidContact and Offline,
because proxies are known to mean any of the two reasons by this
status code.
---
 src/sip-media-channel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/sip-media-channel.c b/src/sip-media-channel.c
index 00da7f7..9f7eca6 100644
--- a/src/sip-media-channel.c
+++ b/src/sip-media-channel.c
@@ -959,10 +959,10 @@ tpsip_media_channel_peer_error (TpsipMediaChannel *self,
     case 600:
       reason = TP_CHANNEL_GROUP_CHANGE_REASON_BUSY;
       break;
+    case 404:
     case 408:
       reason = TP_CHANNEL_GROUP_CHANGE_REASON_NO_ANSWER;
       break;
-    case 404:
     case 480:
       reason = TP_CHANNEL_GROUP_CHANGE_REASON_OFFLINE;
       break;
-- 
1.5.6.5




More information about the telepathy-commits mailing list