From b80bd744ad873f6fc43018bc4bfb90677de167bd Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 17 Dec 2012 12:01:45 +0100 Subject: Start of GS5. --- misc/freeswitch/scripts/ini/conferences.ini | 27 +++++++++ misc/freeswitch/scripts/ini/database.ini | 11 ++++ misc/freeswitch/scripts/ini/dialplan.ini | 11 ++++ misc/freeswitch/scripts/ini/events.ini | 8 +++ misc/freeswitch/scripts/ini/gateways.ini.example | 23 +++++++ misc/freeswitch/scripts/ini/perimeter.ini | 9 +++ misc/freeswitch/scripts/ini/routes.ini | 77 ++++++++++++++++++++++++ misc/freeswitch/scripts/ini/sip_accounts.ini | 10 +++ misc/freeswitch/scripts/ini/sofia.ini | 55 +++++++++++++++++ 9 files changed, 231 insertions(+) create mode 100644 misc/freeswitch/scripts/ini/conferences.ini create mode 100644 misc/freeswitch/scripts/ini/database.ini create mode 100644 misc/freeswitch/scripts/ini/dialplan.ini create mode 100644 misc/freeswitch/scripts/ini/events.ini create mode 100644 misc/freeswitch/scripts/ini/gateways.ini.example create mode 100644 misc/freeswitch/scripts/ini/perimeter.ini create mode 100644 misc/freeswitch/scripts/ini/routes.ini create mode 100644 misc/freeswitch/scripts/ini/sip_accounts.ini create mode 100644 misc/freeswitch/scripts/ini/sofia.ini (limited to 'misc/freeswitch/scripts/ini') diff --git a/misc/freeswitch/scripts/ini/conferences.ini b/misc/freeswitch/scripts/ini/conferences.ini new file mode 100644 index 0000000..d8d0817 --- /dev/null +++ b/misc/freeswitch/scripts/ini/conferences.ini @@ -0,0 +1,27 @@ +; Gemeinschaft 5 conferences configuration file +; (c) AMOOMA GmbH 2012 +; + +[parameters] +caller-controls = speaker +moderator-controls = moderator +max-members = 100 +rate = 16000 +interval = 20 +energy-level = 300 +sound-prefix = /opt/freeswitch/sounds/en/us/callie +muted-sound = conference/conf-muted.wav +unmuted-sound = conference/conf-unmuted.wav +alone-sound = conference/conf-alone.wav +moh-sound = local_stream://moh +enter-sound = tone_stream://%(200,0,500,600,700) +exit-sound = tone_stream://%(500,0,300,200,100,50,25) +kicked-sound = conference/conf-kicked.wav +locked-sound = conference/conf-locked.wav +is-locked-sound = conference/conf-is-locked.wav +is-unlocked-sound = conference/conf-is-unlocked.wav +pin-sound = conference/conf-pin.wav +bad-pin-sound = conference/conf-bad-pin.wav +caller-id-name = Conference +caller-id-number = +comfort-noise = true diff --git a/misc/freeswitch/scripts/ini/database.ini b/misc/freeswitch/scripts/ini/database.ini new file mode 100644 index 0000000..1652118 --- /dev/null +++ b/misc/freeswitch/scripts/ini/database.ini @@ -0,0 +1,11 @@ +; Gemeinschaft 5 database configuration +; (c) AMOOMA GmbH 2012 +; + +driver = mysql + +[mysql] +host = localhost +database = gemeinschaft +user = gemeinschaft +password = gemeinschaft diff --git a/misc/freeswitch/scripts/ini/dialplan.ini b/misc/freeswitch/scripts/ini/dialplan.ini new file mode 100644 index 0000000..f4a6b66 --- /dev/null +++ b/misc/freeswitch/scripts/ini/dialplan.ini @@ -0,0 +1,11 @@ +; Gemeinschaft 5 dialplan configuration file +; (c) AMOOMA GmbH 2012 +; + +[parameters] +node_id = 1 +phone_book_entry_image_url = http://192.168.0.150/uploads/phone_book_entry/image +user_image_url = http://192.168.0.150/uploads/user/image +ringtone_url = http://192.168.0.150 +ringback = %(2000,4000,440.0,480.0) +tone_busy = %(500,500,480,620);loops=4 diff --git a/misc/freeswitch/scripts/ini/events.ini b/misc/freeswitch/scripts/ini/events.ini new file mode 100644 index 0000000..e63eb73 --- /dev/null +++ b/misc/freeswitch/scripts/ini/events.ini @@ -0,0 +1,8 @@ +; Gemeinschaft 5 routing configuration file +; (c) AMOOMA GmbH 2012 +; + +[modules] +cdr_save +call_history_save +presence_update diff --git a/misc/freeswitch/scripts/ini/gateways.ini.example b/misc/freeswitch/scripts/ini/gateways.ini.example new file mode 100644 index 0000000..b6ae018 --- /dev/null +++ b/misc/freeswitch/scripts/ini/gateways.ini.example @@ -0,0 +1,23 @@ +; Gemeinschaft 5 gateways configuration file +; (c) AMOOMA GmbH 2012 +; + +[gateway1] +profile = gemeinschaft +name = gateway1 +username = gateway1 +realm = gemeinschaft +password = freeswitch +extension = default +proxy = 192.168.0.1 +expire-seconds = 600 +register = true + +[gateway2] +profile = gemeinschaft +name = sipgate +username = 1234567e0 +password = ABCdeF +proxy = sipgate.com +register = true +extension = {sip_to_user} diff --git a/misc/freeswitch/scripts/ini/perimeter.ini b/misc/freeswitch/scripts/ini/perimeter.ini new file mode 100644 index 0000000..ecbb032 --- /dev/null +++ b/misc/freeswitch/scripts/ini/perimeter.ini @@ -0,0 +1,9 @@ +; Gemeinschaft 5 perimeter defense configuration file +; (c) AMOOMA GmbH 2012 +; + +[general] +malicious_contact_count = 20 +malicious_contact_time_span = 2 +ban_futile = 5 +execute = sudo /usr/local/bin/ban_ip.sh {ip_address} diff --git a/misc/freeswitch/scripts/ini/routes.ini b/misc/freeswitch/scripts/ini/routes.ini new file mode 100644 index 0000000..1334e7b --- /dev/null +++ b/misc/freeswitch/scripts/ini/routes.ini @@ -0,0 +1,77 @@ +; Gemeinschaft 5 routing configuration file +; (c) AMOOMA GmbH 2012 +; + +[general] + + +[prerouting] +^%*0%*$ , f-li +^%*0%*(%d+)#*$ , f-li-%1 +^%*0%*(%d+)%*(%d+)#*$ , f-li-%1-%2 +^#0#$ , f-lo +^%*30#$ , f-clipon +^#30#$ , f-clipoff +^%*31#(%d+)$ , f-dclirof, f-%1 +^#31#(%d+)$ , f-dcliron-%1 +^%*43#$ , f-cwaon +^#43#$ , f-cwaoff +^#002#$ , f-cfoff +^##002#$ , f-cfdel +^%*21#$ , f-cfu +^%*21%*(%d+)#$ , f-cfu-%1 +^%*%*21%*(%d+)#$ , f-cfu-%1 +^#21#$ , f-cfuoff +^##21#$ , f-cfudel +^%*61#$ , f-cfn +^%*61%*(%d+)#$ , f-cfn-%1 +^%*%*61%*(%d+)#$ , f-cfn-%1 +^%*61%*(%d+)%*(%d+)#$ , f-cfn-%1-%2 +^%*%*61%*(%d+)%*(%d+)#$ , f-cfn-%1-%2 +^#61#$ , f-cfnoff +^##61#$ , f-cfndel +^%*62#$ , f-cfo +^%*62%*(%d+)#$ , f-cfo-%1 +^%*%*62%*(%d+)#$ , f-cfo-%1 +^#62#$ , f-cfooff +^##62#$ , f-cfodel +^%*67#$ , f-cfb +^%*67%*(%d+)#$ , f-cfb-%1 +^%*%*67%*(%d+)#$ , f-cfb-%1 +^#67#$ , f-cfboff +^##67#$ , f-cfbdel +^%*98$ , f-vmcheck +^%*98#$ , f-vmcheck +^%*98%*(%d+)#$ , f-vmcheck-%1 +^%*1337%*1%*1#$ , f-loaon +^%*1337%*1%*0#$ , f-loaoff + +^00(%d+)$ , +%1 +^0(%d+)$ , +49%1 + + +[outbound] +^%+(%d+)$ , class=gateway, endpoint=gateway1, group=users, %1 +^([1-9]%d+)$ , class=gateway, endpoint=gateway1, group=users, %1 + + +[failover] +UNALLOCATED_NUMBER = true +NORMAL_TEMPORARY_FAILURE = true + + +[outbound_cid_number] + + +[outbound_cid_name] + + +[inbound] +^00(%d+)$ , +%1 +^0(%d+)$ , +49%1 + +[inbound_cid_number] +^00(%d+)$ , +%1 +^0(%d+)$ , +49%1 + +[inbound_cid_name] diff --git a/misc/freeswitch/scripts/ini/sip_accounts.ini b/misc/freeswitch/scripts/ini/sip_accounts.ini new file mode 100644 index 0000000..73a5fae --- /dev/null +++ b/misc/freeswitch/scripts/ini/sip_accounts.ini @@ -0,0 +1,10 @@ +; Gemeinschaft 5 sip accounts default parameters +; (c) AMOOMA GmbH 2012 +; + +[parameters] +vm-enabled = true +vm-email-all-messages = false +vm-attach-file = false +vm-mailto = + diff --git a/misc/freeswitch/scripts/ini/sofia.ini b/misc/freeswitch/scripts/ini/sofia.ini new file mode 100644 index 0000000..9c73990 --- /dev/null +++ b/misc/freeswitch/scripts/ini/sofia.ini @@ -0,0 +1,55 @@ +; Gemeinschaft 5 sofia configuration file +; (c) AMOOMA GmbH 2012 +; + +[profiles] +gemeinschaft + +[parameters] +log-level = 3 +debug-presence = 0 + +[profile:gemeinschaft] +user-agent-string = Gemeinschaft5 +debug = 0 +sip-trace = no +log-auth-failures = false +context = default +rfc2833-pt = 101 +pass-rfc2833 = true +sip-port = 5060 +dialplan = XML +dtmf-duration = 2000 +rtp-timer-name = soft +inbound-codec-prefs = PCMA,G7221@32000h,G7221@16000h,G722,PCMU,GSM +outbound-codec-prefs = PCMA,G7221@32000h,G7221@16000h,G722,PCMU,GSM +inbound-codec-negotiation = greedy +ext-rtp-ip = auto-nat +ext-sip-ip = auto-nat +hold-music = local_stream://moh +manage-presence = true +tls = false +tls-sip-port = 5061 +tls-cert-dir = /opt/freeswitch/conf/ssl +accept-blind-reg = false +accept-blind-auth = false +nonce-ttl = 60 +disable-transcoding = false +manual-redirect = true +disable-transfer = false +disable-register = false +auth-calls = false +inbound-reg-force-matching-username = true +auth-all-packets = false +rtp-timeout-sec = 300 +rtp-hold-timeout-sec = 1800 +force-subscription-expires = 3600 +sip-force-expires = 3000 +sip-expires-max-deviation = 600; +challenge-realm = auto_from +rtp-rewrite-timestamps = true +inbound-use-callid-as-uuid = false +outbound-use-callid-as-uuid = false +context = default +record-template = /${record_file} +odbc-dsn = gemeinschaft:gemeinschaft:gemeinschaft -- cgit v1.2.3