Skip to content

AlexRRR/puppet-asterisk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-asterisk

Build Status

Creates a custom type and provider for managing Asterisk SIP configuration. The provider allows for simple SIP resource management, by managing /etc/asterisk/sip.conf and treating each SIP extension defined as an individual resource, so the following extension:


[100]
type=friend
host=dynamic
secret=MyPass123
context=internal
mailbox=100@default
callgroup=1
pickupgroup=1
dtmfmode=rfc2833
canreinvite=no
permit=10.34.0.1/32
deny=10.34.0.2/32

Can be expressed as:


sip {'100':
    ensure  => present,
    type    => 'friend',
    host    => 'dynamic',
    secret  => 'MyPass123',
    context => 'full',
    mailbox => '100@default',
    permit  => '10.34.0.1/32',
    deny    => '10.34.0.2/32',
}

Testing

Please make sure you have rake, rspec installed


gem install rake
gem install rspec

Run the tests from root directory of project


rake spec

About

creates SIP resources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published