From 2221a70e379ef45f989bc323f448a4151ccdffd0 Mon Sep 17 00:00:00 2001
From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Date: Tue, 19 May 2015 14:55:37 -0400
Subject: [PATCH] sip: change some error messages

Use more explicit error messages for better debuging.

Refs #73286

Change-Id: Id371721cf256678e26d65e5941bcefb4020cb196
---
 src/sip/sipvoiplink.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/sip/sipvoiplink.cpp b/src/sip/sipvoiplink.cpp
index 686d12994c..fa571777cd 100644
--- a/src/sip/sipvoiplink.cpp
+++ b/src/sip/sipvoiplink.cpp
@@ -424,19 +424,19 @@ transaction_request_cb(pjsip_rx_data *rdata)
         }
     } else { // Proceed with normal call flow
         if (pjsip_inv_initial_answer(call->inv.get(), rdata, PJSIP_SC_TRYING, NULL, NULL, &tdata) != PJ_SUCCESS) {
-            RING_ERR("Could not answer invite");
+            RING_ERR("Could not create answer TRYING");
             return PJ_FALSE;
         }
 
         if (pjsip_inv_send_msg(call->inv.get(), tdata) != PJ_SUCCESS) {
-            RING_ERR("Could not send msg for invite");
+            RING_ERR("Could not send msg TRYING");
             return PJ_FALSE;
         }
 
         call->setConnectionState(Call::TRYING);
 
         if (pjsip_inv_answer(call->inv.get(), PJSIP_SC_RINGING, NULL, NULL, &tdata) != PJ_SUCCESS) {
-            RING_ERR("Could not answer invite");
+            RING_ERR("Could not create answer RINGING");
             return PJ_FALSE;
         }
 
@@ -445,7 +445,7 @@ transaction_request_cb(pjsip_rx_data *rdata)
         sip_utils::addContactHeader(&contactStr, tdata);
 
         if (pjsip_inv_send_msg(call->inv.get(), tdata) != PJ_SUCCESS) {
-            RING_ERR("Could not send msg for invite");
+            RING_ERR("Could not send msg RINGING");
             return PJ_FALSE;
         }
 
-- 
GitLab