]> 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:27:29 +0000 (19:27 +0000)
committerSean Bright <sean@malleable.com>
Wed, 15 Feb 2012 19:27:29 +0000 (19:27 +0000)
........

Merged revisions 355529 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@355530 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index b997efd5a46fd817bd5d10d8f497bb0fe7c628fc..55a124b96256632f22a72a50464b3e0cb1b2e0d9 100644 (file)
@@ -4812,6 +4812,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));
 }