]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
print ip:port on rtp bind err
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 2 Aug 2011 04:55:58 +0000 (23:55 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 2 Aug 2011 04:55:58 +0000 (23:55 -0500)
src/switch_rtp.c

index 7e70557191ea77929fd1751980be739d7dce1456..0ce47d9231d5a630963eb2a17170f652d0f9dfbc 100644 (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;
        }