Skip to content

Commit

Permalink
Merge pull request #2915 from RestComm/feature/mgcp_local_address_as_…
Browse files Browse the repository at this point in the history
…variable

Feature/mgcp local address as variable
  • Loading branch information
leftyb committed Apr 13, 2018
2 parents 47fd8dc + 517eca7 commit 12d8a68
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Expand Up @@ -137,4 +137,4 @@ services:
# Uncomment below to enable logs rotation. (Rotate using 3 files 20m each file)
# options:
# max-size: "20m"
# max-file: "3"
# max-file: "3"
Expand Up @@ -883,7 +883,13 @@ else
fi

if [ -z "$MS_ADDRESS" ]; then
MS_ADDRESS=$BIND_ADDRESS
MS_ADDRESS=$BIND_ADDRESS
fi

if [ "a" -ne "a$MGCP_LOCAL_ADDRESS"]; then
MGCP_ADDRESS=$MGCP_LOCAL_ADDRESS
else
MGCP_ADDRESS=$BIND_ADDRESS
fi

configDidProvisionManager "$DID_LOGIN" "$DID_PASSWORD" "$DID_ENDPOINT" "$DID_SITEID" "$HOSTFORDID" "$DID_ACCOUNTID" "$SMPP_SYSTEM_TYPE" "$DID_URIPORT"
Expand All @@ -892,7 +898,7 @@ configSmsAggregator "$SMS_OUTBOUND_PROXY" "$SMS_PREFIX"
configSpeechRecognizer "$ISPEECH_KEY"
configSpeechSynthesizers
configTelestaxProxy "$ACTIVE_PROXY" "$TP_LOGIN" "$TP_PASSWORD" "$INSTANCE_ID" "$PROXY_IP" "$SITE_ID"
configMediaServerManager "$BIND_ADDRESS" "$MS_ADDRESS" "$MEDIASERVER_EXTERNAL_ADDRESS"
configMediaServerManager "$MGCP_ADDRESS" "$MS_ADDRESS" "$MEDIASERVER_EXTERNAL_ADDRESS"
configSMPPAccount "$SMPP_ACTIVATE" "$SMPP_SYSTEM_ID" "$SMPP_PASSWORD" "$SMPP_SYSTEM_TYPE" "$SMPP_PEER_IP" "$SMPP_PEER_PORT" "$SMPP_SOURCE_MAP" "$SMPP_DEST_MAP" "$SMPP_INBOUND_ENCODING" "$SMPP_OUTBOUND_ENCODING"
configRestCommURIs
updateRecordingsPath
Expand Down
Expand Up @@ -24,6 +24,8 @@ MS_EXTERNAL=false
MS_ADDRESS=''
#Values rms: RestComm Media Server, xms: Dialogic Media Server
MS_COMPATIBILITY_MODE=rms
# The IP address that the MGCP `media-server-manager` is using to contact the Media Server.
MGCP_LOCAL_ADDRESS=''
LOCALMGCP=2727
REMOTEMGCP=2427
MGCP_RESPONSE_TIMEOUT=500
Expand Down Expand Up @@ -148,4 +150,4 @@ CONFERENCE_TIMEOUT="14400"
#SDR Service configuration
SDR_SERVICE_CLASS=''
SDR_SERVICE_HTTP_URI=''
SDR_SERVICE_AMQP_URI=''
SDR_SERVICE_AMQP_URI=''

0 comments on commit 12d8a68

Please sign in to comment.