Module: sems Branch: master Commit: 0787d9a6646020cf763b429cba6c57bce1ddf913 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=0787d9a6646020cf763b429cba6c57bce1ddf913
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Thu May 23 10:39:33 2013 +0200 b/f: fixes 84326506 --- core/sip/udp_trsp.cpp | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/core/sip/udp_trsp.cpp b/core/sip/udp_trsp.cpp index 1706979..33add86 100644 --- a/core/sip/udp_trsp.cpp +++ b/core/sip/udp_trsp.cpp @@ -169,9 +169,10 @@ int udp_trsp_socket::sendto(const sockaddr_storage* sa, SA_len(sa)); if (err < 0) { - ERROR("sendto(%i;%s:%i): %s\n", - get_addr_str_sip(sa).c_str(),am_get_port(sa), - strerror(errno)); + char host[NI_MAXHOST] = ""; + ERROR("sendto(%i;%s:%i): %s\n", sd, + am_inet_ntop_sip(sa,host,NI_MAXHOST), + am_get_port(sa),strerror(errno)); return err; } else if (err != msg_len) { @@ -231,9 +232,10 @@ int udp_trsp_socket::sendmsg(const sockaddr_storage* sa, // bytes_sent = ; if(::sendmsg(sd, &hdr, 0) < 0) { - ERROR("sendto(%i;%s:%i): %s\n", - get_addr_str_sip(sa).c_str(),am_get_port(sa), - strerror(errno)); + char host[NI_MAXHOST] = ""; + ERROR("sendto(%i;%s:%i): %s\n", sd, + am_inet_ntop_sip(sa,host,NI_MAXHOST), + am_get_port(sa),strerror(errno)); return -1; } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
