diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8ca5b3bab19a72703748730677eeec0f902e2eda..55c79127d0bbde719b2e6c500d53dce8c7dfae4a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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)) {