Skip to content
Snippets Groups Projects
Commit 2221a70e authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

sip: change some error messages

Use more explicit error messages for better debuging.

Refs #73286

Change-Id: Id371721cf256678e26d65e5941bcefb4020cb196
parent 2612265e
No related branches found
No related tags found
No related merge requests found
...@@ -424,19 +424,19 @@ transaction_request_cb(pjsip_rx_data *rdata) ...@@ -424,19 +424,19 @@ transaction_request_cb(pjsip_rx_data *rdata)
} }
} else { // Proceed with normal call flow } else { // Proceed with normal call flow
if (pjsip_inv_initial_answer(call->inv.get(), rdata, PJSIP_SC_TRYING, NULL, NULL, &tdata) != PJ_SUCCESS) { 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; return PJ_FALSE;
} }
if (pjsip_inv_send_msg(call->inv.get(), tdata) != PJ_SUCCESS) { 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; return PJ_FALSE;
} }
call->setConnectionState(Call::TRYING); call->setConnectionState(Call::TRYING);
if (pjsip_inv_answer(call->inv.get(), PJSIP_SC_RINGING, NULL, NULL, &tdata) != PJ_SUCCESS) { 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; return PJ_FALSE;
} }
...@@ -445,7 +445,7 @@ transaction_request_cb(pjsip_rx_data *rdata) ...@@ -445,7 +445,7 @@ transaction_request_cb(pjsip_rx_data *rdata)
sip_utils::addContactHeader(&contactStr, tdata); sip_utils::addContactHeader(&contactStr, tdata);
if (pjsip_inv_send_msg(call->inv.get(), tdata) != PJ_SUCCESS) { 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; return PJ_FALSE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment