Module: sems Branch: sayer/sbc_rtp_relay DELETED Commit: de421ca95be63fabc8a99b8c99ce3dfc59a22156 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=de421ca95be63fabc8a99b8c99ce3dfc59a22156
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Wed Feb 16 16:10:51 2011 +0100 b/f: use proper IP address in setLocalIP --- core/AmRtpStream.cpp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/AmRtpStream.cpp b/core/AmRtpStream.cpp index dcd314d..4a1ed28 100644 --- a/core/AmRtpStream.cpp +++ b/core/AmRtpStream.cpp @@ -70,12 +70,12 @@ void AmRtpStream::setLocalIP(const string& ip) } #ifdef SUPPORT_IPV6 - if (!inet_aton_v6(ip.c_str(), &l_saddr)) { - throw string ("Invalid IPv6 address."); + if (!inet_aton_v6(ip_s.c_str(), &l_saddr)) { + throw string ("Invalid IPv6 address for RTP stream('"+ip_s+"')."); } #else - if (!inet_aton(ip.c_str(), (in_addr*)&l_saddr.sin_addr.s_addr)) { - throw string ("Invalid IPv4 address."); + if (!inet_aton(ip_s.c_str(), (in_addr*)&l_saddr.sin_addr.s_addr)) { + throw string ("Invalid IPv4 address for RTP stream ('"+ip_s+"')."); } #endif } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
