[asterisk-dev] a few newbie questions about asterisk and voicemail code

Russell Bryant russell at digium.com
Sat Sep 8 13:28:27 CDT 2007


Caio Begotti wrote:
> Sorry, it's all in handle_voicemail_show_users from app_voicemail.c.  
> I'm using it as a starting guide, there's no extra code yet. For  
> example, when you do:
> 
> *CLI> voicemail show users for<TAB>
> default  other  people  foo

The function to look at for how this is currently done is
complete_voicemail_show_users().  Note that this is the deprecated method for
creating new CLI commands.  Look for NEW_CLI in main/cli.c to see examples of
creating CLI commands using the new method.

Back to your question.  "default other people foo" is a misleading set, because
what this function does is print out what voicemail *contexts* are available,
not individual mailboxes, so having "default" show up here does make sense.

If you're writing a new CLI command where you'd like the list of users show up,
then you would write a new function that does that instead.

-- 
Russell Bryant
Software Engineer
Digium, Inc.



More information about the asterisk-dev mailing list