From 2f9bb520e7c14fde830e9a9323ae0fee98206850 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Thu, 18 Jul 2013 02:33:33 +0000 Subject: [PATCH] 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 --- manifests/init.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 8ef293e..cfcdf69 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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',