Enable inbound SIP calls

Enable inbound SIP calls.  There are a few steps to this.

1) iptables config.  Open UDP and TCP port 5060 for SIP, as well as
UDP ports 10000-20000 for RTP.

2) Add a custom sip.conf which makes chan_sip listen on all address, including
IPv4 and IPv6.  Also enable unauthenticated inbound calls and send them to the
'public' dialplan context.

3) Create the dialplan.  Right now it just plays a sound prompt called 'spam'.
You'll have to call in to find out what it says.  Note that this required
installing the extra sounds.  There's a bunch of good stuff in there that
may be handy, other than just 'spam'.

Change-Id: I6b62511317603eedf9280b55a00ba5cee0611b62
This commit is contained in:
Russell Bryant 2013-07-18 02:33:33 +00:00
parent b00f67a5dc
commit 2f9bb520e7
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@ class asterisk (
require => Yumrepo['asteriskcurrent'],
}
package { 'asterisk-sounds-extra-en-ulaw' :
ensure => present,
require => Yumrepo['asteriskcurrent'],
}
file {'/etc/asterisk/asterisk.conf':
ensure => present,
owner => 'asterisk',