print ip:port on rtp bind err

This commit is contained in:
Anthony Minessale 2011-08-01 23:55:58 -05:00
parent 1adb743f90
commit 11d2cd1b49
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}