From 11d2cd1b4979e28bed1521bc5180faf28d41e925 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 1 Aug 2011 23:55:58 -0500 Subject: [PATCH] print ip:port on rtp bind err --- src/switch_rtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 7e70557191..0ce47d9231 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1148,7 +1148,8 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s } if (switch_socket_bind(new_sock, rtp_session->local_addr) != SWITCH_STATUS_SUCCESS) { - *err = "Bind Error!"; + char *em = switch_core_sprintf(rtp_session->pool, "Bind Error! %s:%d", host, port); + *err = em; goto done; }