When IAX2 debugging is enabled, make sure to log 'apathetic' messages too.
authorSean Bright <sean@malleable.com>
Wed, 15 Feb 2012 19:29:26 +0000 (19:29 +0000)
committerSean Bright <sean@malleable.com>
Wed, 15 Feb 2012 19:29:26 +0000 (19:29 +0000)
........

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

Merged revisions 355530 from http://svn.asterisk.org/svn/asterisk/branches/10

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

channels/chan_iax2.c

index e4dd424..3e5d84f 100644 (file)
@@ -4721,6 +4721,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));
 }