From: Shamus R. <sh...@sr...> - 2018-08-26 03:06:31
|
I did some further digging and had a “doh” moment. Turns out that if you have "searchcontexts=yes” in your voicemail.conf, you cannot have duplicate mailboxes. Problem fixed! > > > Message: 2 > Date: Fri, 17 Aug 2018 10:56:13 +0200 > From: Michael Keuter <li...@mk...> > To: AstLinux Users Mailing List <ast...@li...> > Subject: Re: [Astlinux-users] multi-tenant voicemail > Message-ID: <525...@mk...> > Content-Type: text/plain; charset=utf-8 > > >> Am 17.08.2018 um 03:15 schrieb Shamus Rask <sh...@sr...>: >> >> This is more of an Asterisk question, but I?m hoping someone can share their experience. I?m setting up a multi-tenant system, and in doing so discovered the following. When I tried the following in voicemail.conf (note this is directly from the sample config): >> >> [default] >> 1234 => 4242,Example Mailbox,root@localhost >> >> [other] >> 1234 => 5678,Company2 User,root@localhost >> >> I see the following at the Asterisk CLI: >> pbx0*CLI >>> voicemail show users >> Context Mbox User Zone NewMsg >> default 1234 Example Mailbox 0 >> 1 voicemail users configured. > > You could also do that (with Tab) for a special context: > > "voicemail show users for other" > > That will show you the other context. > > In your sip.conf you need to always add the voicemail context: > > "mailbox=1234@default" or > "mailbox=1234@other" > > For me it seems to work with 2 contexts (Asterisk 13): > > pbx-nf9hg*CLI> voicemail show users > Context Mbox User Zone NewMsg > default 17 17-test germany 0 > callback 17 17-test germany 0 > > >> It looks like Asterisk cannot parse multiple mailboxes of the same number even if they?re in? different contexts. If I changed either of the mailbox numbers and did a ?voicemail reload?, they do both appear. >> >> Assuming the above behaviour is correct and I haven?t mis-configured some option, how do others handle multi-tenant voicemail? My initial thoughts were that I could prepend each mailbox with the tenant name, however I think this would break the VoiceMailMain() application (if not others). >> >> Thanks for your comments, >> Shamus > > Michael > > http://www.mksolutions.info > > > > > > > ------------------------------ > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Astlinux-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > > ------------------------------ > > End of Astlinux-users Digest, Vol 145, Issue 19 > *********************************************** |