]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When IAX2 debugging is enabled, make sure to log 'apathetic' messages too.
authorSean Bright <sean@malleable.com>
Wed, 15 Feb 2012 19:26:38 +0000 (19:26 +0000)
committerSean Bright <sean@malleable.com>
Wed, 15 Feb 2012 19:26:38 +0000 (19:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@355529 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 748e4f633eddf5414b0806734b0ed4377eb264ef..8d410f25e1351e182a924561b918879a5b5cb03a 100644 (file)
@@ -4718,6 +4718,10 @@ static int send_apathetic_reply(unsigned short callno, unsigned short dcallno,
        data.f.type = AST_FRAME_IAX;
        data.f.csub = compress_subclass(command);
 
+       if (iaxdebug) {
+               iax_outputframe(NULL, &data.f, 0, sin, size - sizeof(struct ast_iax2_full_hdr));
+       }
+
        return sendto(sockfd, &data, size, 0, (struct sockaddr *)sin, sizeof(*sin));
 }