diff --git a/sflphone-common/src/sip/sipvoiplink.cpp b/sflphone-common/src/sip/sipvoiplink.cpp
index 69f52d70a459d1dc212a3279837c308149b913d7..a12edf9d16423d52ec8e97f36a7a92bd91c5f57d 100644
--- a/sflphone-common/src/sip/sipvoiplink.cpp
+++ b/sflphone-common/src/sip/sipvoiplink.cpp
@@ -3533,12 +3533,12 @@ void sdp_media_update_cb (pjsip_inv_session *inv, pj_status_t status)
             call->getAudioRtp()->updateSessionMedia (static_cast<AudioCodec *>(audiocodec));
         }
     }  // FIXME: should this really be std::exception? If so, it should be caught last
+    catch (const SdpException &e) {
+        _error("UserAgent: Exception: %s", e.what());
+    }
     catch (const std::exception& rtpException) {
         _error ("UserAgent: Exception: %s", rtpException.what());
     } 
-    catch (const SdpException &e) {
-    	_error("UserAgent: Exception: %s", e.what());
-    }
 
 }