Restcomm mediaserver repo - https://github.com/RestComm/mediaserver
###Supported env variables
-
To modify properties in
server-beans.xml
you can use the following templatePROPERTY_<xmlresource>_<propname>
. Example:PROPERTY_media_lowestPort
,PROPERTY_media_highestPort
-
if you run docker container with
--net=host
you should setupUSE_HOST_NETWORK=true
. in this case mediserver will be bound toeth0
ip address -
LOG_LEVEL
- you can specify log4j log level -
To modify resource pool size you can use the following template
RESOURCE_<recourcename>
. Example:RESOURCE_dtmfDetector
,RESOURCE_recorder
docker run --net host -d \
--name restcomm-mediaserver \
-e PROPERTY_media_lowestPort=64000 \
-e PROPERTY_media_highestPort=65500 \
-e USE_HOST_NETWORK=true \
-it restcomm-mediaserver
To override log4j config you can mount own log4j.xml
file.
-v $PWD/conf/log4j.xml:/opt/restcomm-media-server/conf/log4j.xml