• Travis Cross's avatar
    Avoid playback on dead channels in voicemail · 622a5d7e
    Travis Cross 提交于
    For years we've been generating spurious messages like:
    
      [WARNING] switch_ivr_play_say.c:348 Macro [voicemail_ack]: 'saved' did not match any patterns
    
    This would happen when the caller hangs up during the playback of
    certain prompts in the voicemail system where we weren't checking the
    return value of vm_macro_get().  Looking closely at the log, it's
    clear we were calling down into switch_ivr_phrase_macro() long after
    the channel was gone.
    
    The message above is also misleading -- switch_ivr_phrase_macro()
    would have been able to find that pattern just fine, but it never
    actually looked because the channel was gone.  We'll clean up that
    message in a follow on commit.
    622a5d7e
mod_voicemail.c 213.6 KB