summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whyte <keith@rhizomatica.org>2018-08-28 07:12:35 -0400
committerKeith Whyte <keith@rhizomatica.org>2018-08-28 07:18:26 -0400
commit0cfe4763a456999bac39e657aa0e0e4c6b6d3693 (patch)
treeabe805f9b878caffbbc0bdc61485a55fe310d5a3
parentff4675516e7c6076a6ff5d61a8f54848edd12e65 (diff)
Logging: Log RTP IP in dotted quad format.
in check_rtp_create() log the IP address in human readable dotted quad format. Change-Id: I298b13836cc6b9c5888f931deca61132d31da035
-rw-r--r--src/mncc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mncc.c b/src/mncc.c
index b2c4abb..2ecf8d0 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -380,9 +380,10 @@ static void check_rtp_create(struct mncc_connection *conn, const char *buf, int
leg->base.payload_msg_type = rtp->payload_msg_type;
/* TODO.. now we can continue with the call */
+ struct in_addr net = { .s_addr = htonl(leg->base.ip) };
LOGP(DMNCC, LOGL_DEBUG,
- "RTP cnt leg(%u) ip(%u), port(%u) pt(%u) ptm(%u)\n",
- leg->callref, leg->base.ip, leg->base.port,
+ "RTP cnt leg(%u) ip(%s), port(%u) pt(%u) ptm(%u)\n",
+ leg->callref, inet_ntoa(net), leg->base.port,
leg->base.payload_type, leg->base.payload_msg_type);
stop_cmd_timer(leg, MNCC_RTP_CREATE);
continue_call(leg);