Review at  https://gerrit.osmocom.org/3746

log: output message content also on retransmissions

When a duplicate command is sent, the MGCP-GW will interpret this
as a retramsmission and will send the response of the already
executed command again. This response is not printed in the log.

Make sure that also responses, which are retrsnamitted are
displayed in the log

Change-Id: Ic41c2defb521e2f81762d932f8e29f7c8fed06a9
---
M src/libosmo-legacy-mgcp/mgcp_protocol.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/46/3746/1

diff --git a/src/libosmo-legacy-mgcp/mgcp_protocol.c 
b/src/libosmo-legacy-mgcp/mgcp_protocol.c
index 332aa91..bc1ec0d 100644
--- a/src/libosmo-legacy-mgcp/mgcp_protocol.c
+++ b/src/libosmo-legacy-mgcp/mgcp_protocol.c
@@ -172,6 +172,7 @@
 
        msg->l2h = msgb_put(msg, strlen(endp->last_response));
        memcpy(msg->l2h, endp->last_response, msgb_l2len(msg));
+       display_mgcp_message(msg->l2h, msgb_l2len(msg), "Retransmitted 
response");
        return msg;
 }
 

-- 
To view, visit https://gerrit.osmocom.org/3746
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic41c2defb521e2f81762d932f8e29f7c8fed06a9
Gerrit-PatchSet: 1
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <[email protected]>
Gerrit-Reviewer: dexter <[email protected]>

Reply via email to