From: Paul Belanger Date: Wed, 12 Oct 2011 16:27:23 +0000 (+0000) Subject: Fix verbose messages when IPv6 logic was added X-Git-Tag: 1.8.9.0-rc1~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35fcb785afc3a28e1f4e5ec450b28c01af4ed9a7;p=thirdparty%2Fasterisk.git Fix verbose messages when IPv6 logic was added (closes issue ASTERISK-18612) Reported by: Tim Osman git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@340418 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e15703afbf..e720c1769d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11031,7 +11031,7 @@ static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p, int needaudio = TRUE; if (debug) { - ast_verbose("Audio is at %s\n", ast_sockaddr_stringify_port(&p->ourip)); + ast_verbose("Audio is at %s\n", ast_sockaddr_stringify_port(&addr)); } /* Ok, we need video. Let's add what we need for video and set codecs. @@ -11045,7 +11045,7 @@ static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p, int if (p->maxcallbitrate) snprintf(bandwidth, sizeof(bandwidth), "b=CT:%d\r\n", p->maxcallbitrate); if (debug) { - ast_verbose("Video is at %s\n", ast_sockaddr_stringify(&p->ourip)); + ast_verbose("Video is at %s\n", ast_sockaddr_stringify(&vdest)); } } @@ -11058,7 +11058,7 @@ static enum sip_result add_sdp(struct sip_request *resp, struct sip_pvt *p, int ast_str_append(&m_text, 0, "m=text %d RTP/%s", ast_sockaddr_port(&tdest), t_a_crypto ? "SAVP" : "AVP"); if (debug) { /* XXX should I use tdest below ? */ - ast_verbose("Text is at %s\n", ast_sockaddr_stringify(&p->ourip)); + ast_verbose("Text is at %s\n", ast_sockaddr_stringify(&taddr)); } }