From 1eeb8ef6fe7b0b7c798b121f8149f1b408ee8a87 Mon Sep 17 00:00:00 2001 From: agafox Date: Tue, 5 Sep 2017 12:13:00 +0300 Subject: [PATCH] Push Notification Server configuration --- .../restcomm/autoconfig.d/config-restcomm.sh | 11 ++++++++++- .../as7-config-scripts/restcomm/restcomm.conf | 5 +++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d/config-restcomm.sh b/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d/config-restcomm.sh index 5201a64ad8..2fe3b75be5 100755 --- a/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d/config-restcomm.sh +++ b/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d/config-restcomm.sh @@ -76,7 +76,15 @@ configOutboundProxy(){ -e "s|.*<\/outbound-proxy-password>|$OUTBOUND_PROXY_PASSWORD<\/outbound-proxy-password>|" $FILE > $FILE.bak; mv $FILE.bak $FILE } - +## Description: Push notification server configuration. +configPushNotificationServer() { + echo "Configure push-notification-server" + FILE=$RESTCOMM_DEPLOY/WEB-INF/conf/restcomm.xml + sed -e "s|.*<\/push-notification-server-enabled>|$PUSH_NOTIFICATION_SERVER_ENABLED<\/push-notification-server-enabled>|" \ + -e "s|.*<\/push-notification-server-url>|$PUSH_NOTIFICATION_SERVER_URL<\/push-notification-server-url>|" \ + -e "s|.*<\/push-notification-server-delay>|$PUSH_NOTIFICATION_SERVER_DELAY<\/push-notification-server-delay>|" $FILE > $FILE.bak; + mv $FILE.bak $FILE +} ## Description: Configures Voip Innovations Credentials ## Parameters : 1.Login ## 2.Password @@ -661,6 +669,7 @@ configRestCommURIs updateRecordingsPath configHypertextPort configOutboundProxy +configPushNotificationServer otherRestCommConf confRcmlserver confRVD diff --git a/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/restcomm.conf b/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/restcomm.conf index b4d1d64822..baef3d71df 100755 --- a/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/restcomm.conf +++ b/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/restcomm.conf @@ -37,6 +37,11 @@ OUTBOUND_PROXY='' #Provide port if different than 5060 OUTBOUND_PROXY_USERNAME='' OUTBOUND_PROXY_PASSWORD='' +# Push notification server +PUSH_NOTIFICATION_SERVER_ENABLED=false +PUSH_NOTIFICATION_SERVER_URL='' +PUSH_NOTIFICATION_SERVER_DELAY='' + # Outbound proxy for SMS SMS_PREFIX='#' #For VoipInnovation you will need the '#' character for SMS Prefix SMS_OUTBOUND_PROXY='' #Please provide port if different than 5060