Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 337912) +++ channels/chan_sip.c (working copy) @@ -11037,7 +11037,7 @@ 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. @@ -11051,7 +11051,7 @@ 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)); } } @@ -11064,7 +11064,7 @@ 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)); } }