Lee, John (Sydney)
2008-May-20 07:58 UTC
[asterisk-users] Newbie Voicemail: Just use one [context] in voicemail.conf?!
I was thinking about dividing my users into different groups (contexts) in voicemail.conf so that I could use "voicemail show users for [context]" to manage them easier. However, I found out that I should not do that because if I am using [macro-stdexten] in extensions.conf, I will need to hardcode the [context] in Voicemail command within [macro-stdexten] and there is no way [macro-stdexten] can know which voicemail context a user is in anyway. As a result, I just go back to put all users in [default] in voicemail.conf. Am I missing anything?
Tzafrir Cohen
2008-May-20 08:14 UTC
[asterisk-users] Newbie Voicemail: Just use one [context] in voicemail.conf?!
On Tue, May 20, 2008 at 05:58:45PM +1000, Lee, John (Sydney) wrote:> I was thinking about dividing my users into different groups (contexts) > in voicemail.conf so that I could use "voicemail show users for > [context]" to manage them easier. > > However, I found out that I should not do that because if I am using > [macro-stdexten] in extensions.conf, I will need to hardcode the > [context] in Voicemail command within [macro-stdexten] and there is no > way [macro-stdexten] can know which voicemail context a user is in > anyway."No way"? Why?> > As a result, I just go back to put all users in [default] in > voicemail.conf. > > Am I missing anything?What do those contexts mean in your setup (beside being arbitrary groups)? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Kevin Smith
2008-May-20 19:32 UTC
[asterisk-users] Newbie Voicemail: Just use one [context] invoicemail.conf?!
Perhaps seeing some of your dial plan (such as the macro, etc) would help not only me, but also others, because maybe I am just not following you. Off the top of my head there are a few things you could do..but again, it depends on how your dialplan is set up and how you access the macro. One way to do this is in in the outbound calling context you could set a variable with the context of the voicemail depending on the extension, then pass that to the marco. Another way is you could set an "if" statement to get the extension and then go to the proper context (assuming your extensions have some meaning to them). I'm sure there are others methods to do this too. Kevin Lee, John (Sydney) wrote:> I was thinking about dividing my users into different groups (contexts) > in voicemail.conf so that I could use "voicemail show users for > [context]" to manage them easier. > > However, I found out that I should not do that because if I am using > [macro-stdexten] in extensions.conf, I will need to hardcode the > [context] in Voicemail command within [macro-stdexten] and there is no > way [macro-stdexten] can know which voicemail context a user is in > anyway. > > As a result, I just go back to put all users in [default] in > voicemail.conf. > > Am I missing anything? > > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >