Voicemail: Remove mailbox identifier format (box@context) assumptions in the system.
This change is in preparation for external MWI support. Removed code from the system for normal mailbox handling that appends @default to the mailbox identifier if it does not have a context. The only exception is the legacy hasvoicemail users.conf option. The legacy option will only work for app_voicemail mailboxes. The system cannot make any assumptions about the format of the mailbox identifer used by app_voicemail. chan_sip and chan_dahdi/sig_pri had the most changes because they both tried to interpret the mailbox identifier. chan_sip just stored and compared the two components. chan_dahdi actually used the box information. The ISDN MWI support configuration options had to be reworked because chan_dahdi was parsing the box@context format to get the box number. As a result the mwi_vm_boxes chan_dahdi.conf option was added and is documented in the chan_dahdi.conf.sample file. Review: https://reviewboard.asterisk.org/r/3072/ ........ Merged revisions 404348 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- CHANGES 16 additions, 0 deletionsCHANGES
- UPGRADE-12.txt 19 additions, 0 deletionsUPGRADE-12.txt
- apps/app_voicemail.c 95 additions, 51 deletionsapps/app_voicemail.c
- channels/chan_dahdi.c 26 additions, 34 deletionschannels/chan_dahdi.c
- channels/chan_dahdi.h 2 additions, 1 deletionchannels/chan_dahdi.h
- channels/chan_h323.c 9 additions, 1 deletionchannels/chan_h323.c
- channels/chan_iax2.c 11 additions, 23 deletionschannels/chan_iax2.c
- channels/chan_mgcp.c 12 additions, 25 deletionschannels/chan_mgcp.c
- channels/chan_sip.c 25 additions, 29 deletionschannels/chan_sip.c
- channels/chan_skinny.c 13 additions, 13 deletionschannels/chan_skinny.c
- channels/chan_unistim.c 4 additions, 14 deletionschannels/chan_unistim.c
- channels/h323/chan_h323.h 2 additions, 1 deletionchannels/h323/chan_h323.h
- channels/sig_pri.c 52 additions, 67 deletionschannels/sig_pri.c
- channels/sig_pri.h 23 additions, 9 deletionschannels/sig_pri.h
- channels/sip/include/sip.h 2 additions, 3 deletionschannels/sip/include/sip.h
- configs/chan_dahdi.conf.sample 26 additions, 18 deletionsconfigs/chan_dahdi.conf.sample
- configs/iax.conf.sample 1 addition, 0 deletionsconfigs/iax.conf.sample
- configs/sip.conf.sample 4 additions, 2 deletionsconfigs/sip.conf.sample
- configs/skinny.conf.sample 1 addition, 0 deletionsconfigs/skinny.conf.sample
- configs/voicemail.conf.sample 9 additions, 0 deletionsconfigs/voicemail.conf.sample
Loading
Please register or sign in to comment