From ab7635e9bc408548ef46e43e84f17e2bb6a585c8 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Sat, 6 Apr 2013 14:44:11 +0200 Subject: [PATCH] Add IPs to mod_skinny recv/send event messages FS-5268 --resolve thanks to Nathan Neulinger --- src/mod/endpoints/mod_skinny/skinny_protocol.c | 4 ++-- src/mod/endpoints/mod_skinny/skinny_server.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod/endpoints/mod_skinny/skinny_protocol.c b/src/mod/endpoints/mod_skinny/skinny_protocol.c index baf96d48b5..9c103c6121 100644 --- a/src/mod/endpoints/mod_skinny/skinny_protocol.c +++ b/src/mod/endpoints/mod_skinny/skinny_protocol.c @@ -975,9 +975,9 @@ switch_status_t skinny_perform_send_reply(listener_t *listener, const char *file if (listener_is_ready(listener)) { if (listener->profile->debug >= 10 || reply->type != KEEP_ALIVE_ACK_MESSAGE) { switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG, - "Sending %s (type=%x,length=%d) to %s:%d.\n", + "Sending %s (type=%x,length=%d) to %s:%d at %s:%d.\n", skinny_message_type2str(reply->type), reply->type, reply->length, - listener->device_name, listener->device_instance); + listener->device_name, listener->device_instance, listener->remote_ip, listener->remote_port); } return switch_socket_send(listener->sock, ptr, &len); } else { diff --git a/src/mod/endpoints/mod_skinny/skinny_server.c b/src/mod/endpoints/mod_skinny/skinny_server.c index 6f8cf46553..cdff66e781 100644 --- a/src/mod/endpoints/mod_skinny/skinny_server.c +++ b/src/mod/endpoints/mod_skinny/skinny_server.c @@ -2107,8 +2107,8 @@ switch_status_t skinny_handle_request(listener_t *listener, skinny_message_t *re { if (listener->profile->debug >= 10 || request->type != KEEP_ALIVE_MESSAGE) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, - "Received %s (type=%x,length=%d) from %s:%d.\n", skinny_message_type2str(request->type), request->type, request->length, - listener->device_name, listener->device_instance); + "Received %s (type=%x,length=%d) from %s:%d at %s:%d.\n", skinny_message_type2str(request->type), request->type, request->length, + listener->device_name, listener->device_instance, listener->remote_ip, listener->remote_port); } if(zstr(listener->device_name) && request->type != REGISTER_MESSAGE && request->type != ALARM_MESSAGE && request->type != XML_ALARM_MESSAGE) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING,