Merged revisions 96199 via svnmerge from
authorChristian Richter <christian.richter@beronet.com>
Tue, 29 Jan 2008 10:47:06 +0000 (10:47 +0000)
committerChristian Richter <christian.richter@beronet.com>
Tue, 29 Jan 2008 10:47:06 +0000 (10:47 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r96199 | crichter | 2008-01-03 13:12:27 +0100 (Do, 03 Jan 2008) | 1 line

make sure frame is completely clean, before we send it to asterisk as DTMF. If we don't make it clean, it happens that one way audio occurs..
........

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

channels/chan_misdn.c

index ca39186..550414b 100644 (file)
@@ -4163,6 +4163,7 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
                        /*  sending INFOS as DTMF-Frames :) */
                        struct ast_frame fr;
                        int digits;
+                       memset(&fr, 0, sizeof(fr));
                        fr.frametype = AST_FRAME_DTMF;
                        fr.subclass = bc->info_dad[0] ;
                        fr.src = NULL;