use a different method for overriding the send_digit_begin pointer, as the old one...
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 31 Jul 2007 14:55:37 +0000 (14:55 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 31 Jul 2007 14:55:37 +0000 (14:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77820 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 8ca5b3b..55c7912 100644 (file)
@@ -18654,11 +18654,11 @@ static int load_module(void)
                return AST_MODULE_LOAD_DECLINE;
 
        /* Prepare the version that does not require DTMF BEGIN frames.
-        * We need to use tricks such as memcopy and casts because the variable
+        * We need to use tricks such as memcpy and casts because the variable
         * has const fields.
         */
        memcpy(&sip_tech_info, &sip_tech, sizeof(sip_tech));
-       *((void **)&sip_tech_info.send_digit_begin) = NULL;
+       memset((void *) &sip_tech_info.send_digit_begin, 0, sizeof(sip_tech_info.send_digit_begin));
 
        /* Make sure we can register our sip channel type */
        if (ast_channel_register(&sip_tech)) {