Don't install app-dtmftotext

This package is not available in Debian Squeeze

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Split the french prompts into another class

This should make it possible (and the default behaviour) to install
asterisk without installing the French prompts.

If those prompts are still needed, the specific class can be used
instead.

For Debian Squeeze, change the name to asterisk-prompt-fr-armelle

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Add some options to account::sip and make everything optional

It's now possible to define a template with the asterisk::account::sip
define. Everything has to be optional. But default values are still
provided, so if one must not have a value appear, the value must be
forced to false.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Fix asterisk::account::sip template protocol {,dis}allow

'disallow' and 'allow' need to have the same format as any other value.
e.g. it needs to be followed by a '='. else it breaks the config and
asterisk ignores the account entirely
Manage voicemail boxes as files under /etc/asterisk/voicemail.conf.d

Since boxes need to be grouped under a relevant section, we want to
group the boxes under a file named by the context (or section name).

Current bug: when the line changes, the box definition is duplicated. I
need to find a way to delete the old line first.
Reorganize files and class hierarchy

Use puppet's automatic loading mechanism. When using 'import
something/*' you need to restart the puppetmaster when a file is added
else it will not be seen. Plus, it's way easier to find things this way:
just follow the class/define name.

I crammed in there some changes in hierarchy to add 'voicemail' under
account/ since it makes more sense there and change 'context' to be under
extensions/ so that the define has a more explicit name.
I also got rid of the with- prefixes since the hierarchy already
describes the addition clearly enough.
Complete the README and change it to markdown
Make the bug in b18ea8fa4 explicit in the manifests

Else, I'll just forget about it.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Update general configuration files.

We'll want to transform those into templates and to force the contents
in /etc/asterisk

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Move asterisk::config_dotd in its own file.

Should be the last remnant.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Follow style guide.

Use single quotes where no variables are used.
Use four digits for file modes.
Fully qualify top-level variables (facts)

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Make group more portable

Using "root" as a group could be problematic on systems, like FreeBSD,
where the admin group is named differently.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Fix formatting in the README
manage files that include files in .d dirs.

Instead of simply managing the "Include" line, we'll manage the whole
file.

Since we're gonna replace content with those files, we'll rename them to
the same thing as what they'll be replacing.

Add missing voicemail.conf file.

Note that for now they're static files, but they should very soon be
transformed into templates so that different values in the "general"
context can be customized.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Manage IAX registry

For this, we'll extend config_dotd to automatically create
additional directories and null.conf files in them.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Reorganize again.

Rename asterisk::account::* to asterisk::context::* since it makes more
sense to talk about a configuration context. Not all elements in there
will be accounts.

Rename asterisk::extensions::context to asterisk::context::extensions

Extend dotd_file to accept either $source or $content.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Trigger a reload for all dotd files.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Manage SIP registry.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Remove hardcoded password in misdn.pp

There was a hardcoded password string in there ... probably forgotten
when sanitizing the module for publishing on github.

Let's get rid of that and make that variable (used by templates) into a
class parameter.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Manage IAX contexts

Most probably used to declare clients.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>