mgcp_client: add logging on received MGCP messages
There is verbose debug logging on MGCP messages sent out to the MGW, but none on received MGCP messages. Add Rx logging. Related: SYS#5529 Change-Id: Id76230896aa87c1a12bd5ad87a62430c048a2873
This commit is contained in:
parent
a8c684b51f
commit
d57310731f
|
@ -677,6 +677,9 @@ int mgcp_client_rx(struct mgcp_client *mgcp, struct msgb *msg)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOGP(DLMGCP, LOGL_DEBUG, "MGCP client: Rx %d %u %s\n",
|
||||||
|
r->head.response_code, r->head.trans_id, r->head.comment);
|
||||||
|
|
||||||
rc = parse_head_params(r);
|
rc = parse_head_params(r);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
LOGP(DLMGCP, LOGL_ERROR, "Cannot parse MGCP response (head parameters)\n");
|
LOGP(DLMGCP, LOGL_ERROR, "Cannot parse MGCP response (head parameters)\n");
|
||||||
|
|
|
@ -10,6 +10,7 @@ DLMGCP Cannot cancel, no such transaction: 1
|
||||||
- cancel succeeds
|
- cancel succeeds
|
||||||
DLMGCP Canceled transaction 1
|
DLMGCP Canceled transaction 1
|
||||||
- late response gets discarded
|
- late response gets discarded
|
||||||
|
DLMGCP MGCP client: Rx 200 1 OK
|
||||||
DLMGCP Cannot find matching MGCP transaction for trans_id 1
|
DLMGCP Cannot find matching MGCP transaction for trans_id 1
|
||||||
- canceling again does nothing
|
- canceling again does nothing
|
||||||
DLMGCP Cannot cancel, no such transaction: 1
|
DLMGCP Cannot cancel, no such transaction: 1
|
||||||
|
|
Loading…
Reference in New Issue