ESL Configuration for Pause and Resume Recording
ESL connection on Recorder
Go to /etc/freeswitch/autoload_configs/ or /usr/local/freeswitch/conf/autoload_configs/
Open event_socket.conf.xml in you editor to edit few things
Set value “esl” for apply-inbound-acl as shown in the code below
Set a Strong Password for the password field as shown in the code below. Note: Password should not be set to default value i.e ClueCon
Set value for the Listen-ip which are allowed to communicate with ESL. Set “0.0.0.0” if you want to allow all IPs.
- CODE
# Note: All valuse must be in inverted quotes "". <settings> <param name="listen-ip" value="192.168.1.106"/> <!-- Use the server's IP --> <param name="listen-port" value="8021"/> <!-- Default ESL port --> <param name="password" value="1234"/> <!-- Default ESL password --> <param name="apply-inbound-acl" value="esl"/> </settings>
Save your changes and exit
Open acl.conf.xml which is in the same directory (autoload_configs)
Add the following lines inside the <network-list> tag as shown below
<configuration name="acl.conf" description="Network Lists">
<network-lists>
.......
.......
<list name="esl" default="allow">
<node type="allow" cidr="0.0.0.0/0"/>
</list>
</network-lists>
</configuration>
Type fs_cli on your terminal it will open recorder and then run the commands ‘reloadxml’ and ‘reloadacl’ one by one.
Restart the recorder using
sudo systemctl restart freeswitch
Once restarted, try to access you recorder using fs_cli
It will not open as we have set the password. Now type fs_cli -p <Your Password>
Your recorder will be opened indicating that your esl is configured.