[asterisk-dev] [Code Review] 3072: Voicemail: Remove mailbox identifier format (box at context) assumptions in the system.

rmudgett reviewboard at asterisk.org
Fri Dec 13 17:45:07 CST 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3072/
-----------------------------------------------------------

Review request for Asterisk Developers.


Repository: Asterisk


Description
-------

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.  (I'd like to just remove the hasvoicemail option since it is usually superceeded by an explicit mailbox option. :) )  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 at 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.


Diffs
-----

  /branches/12/res/res_xmpp.c 403807 
  /branches/12/res/res_jabber.c 403807 
  /branches/12/main/app.c 403807 
  /branches/12/include/asterisk/app.h 403807 
  /branches/12/funcs/func_vmcount.c 403807 
  /branches/12/configs/voicemail.conf.sample 403807 
  /branches/12/configs/skinny.conf.sample 403807 
  /branches/12/configs/sip.conf.sample 403807 
  /branches/12/configs/iax.conf.sample 403807 
  /branches/12/configs/chan_dahdi.conf.sample 403807 
  /branches/12/channels/sip/include/sip.h 403807 
  /branches/12/channels/sig_pri.c 403807 
  /branches/12/channels/sig_pri.h 403807 
  /branches/12/channels/chan_unistim.c 403807 
  /branches/12/channels/chan_skinny.c 403807 
  /branches/12/channels/chan_sip.c 403807 
  /branches/12/channels/chan_mgcp.c 403807 
  /branches/12/channels/chan_iax2.c 403807 
  /branches/12/channels/chan_h323.c 403807 
  /branches/12/channels/chan_dahdi.c 403807 
  /branches/12/apps/app_voicemail.c 403807 
  /branches/12/UPGRADE.txt 403807 
  /branches/12/CHANGES 403807 

Diff: https://reviewboard.asterisk.org/r/3072/diff/


Testing
-------

Tested chan_dahdi to be sure that the new mwi_vm_boxes option parses correctly and sets up mailboxes.
Tested chan_sip to be sure that the mailbox option works.


Thanks,

rmudgett

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131213/3a5ca468/attachment.html>


More information about the asterisk-dev mailing list