Skip to content
Snippets Groups Projects
  • George Joseph's avatar
    c23c8d92
    app_voicemail: Don't delete mailbox state unless mailbox is deleted · c23c8d92
    George Joseph authored
    The free_user function was automatically deleting the stasis mailbox
    state but this only makes sense when the mailbox is actually
    deleted, not just the structure freed.  This was causing issues
    where leave_voicemail would publish the mwi message to stasis and
    delete the state before the message could be processed by
    res_pjsip_mwi.
    
    * Removed the delete of state from free_user().
    
    * Created a new free_user_final() function that both frees the data
      structure and deletes the state.  This function is only called
      during module load/unload where it's appropriate to delete the
      state.
    
    ASTERISK-28215
    
    Change-Id: I305e8b3c930e9ac41d901e5dc8a58fd7904d98dd
    c23c8d92
    History
    app_voicemail: Don't delete mailbox state unless mailbox is deleted
    George Joseph authored
    The free_user function was automatically deleting the stasis mailbox
    state but this only makes sense when the mailbox is actually
    deleted, not just the structure freed.  This was causing issues
    where leave_voicemail would publish the mwi message to stasis and
    delete the state before the message could be processed by
    res_pjsip_mwi.
    
    * Removed the delete of state from free_user().
    
    * Created a new free_user_final() function that both frees the data
      structure and deletes the state.  This function is only called
      during module load/unload where it's appropriate to delete the
      state.
    
    ASTERISK-28215
    
    Change-Id: I305e8b3c930e9ac41d901e5dc8a58fd7904d98dd
app_voicemail.c 523.78 KiB