<div dir="ltr">Execute "reload mod_event_socket" from console.<div>Console will be disconnected, but FS is still ruined.</div><div>Then simple reconnect to FS</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 19, 2015 at 11:49 PM, Steven Szeto <span dir="ltr"><<a href="mailto:steven.szeto@mitel.com" target="_blank">steven.szeto@mitel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Suppose a freeswitch configuration has the following defined in event_socket.conf.xml:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><configuration name="event_socket.conf" description="Socket Client"><u></u><u></u></p>
<p class="MsoNormal"> <settings><u></u><u></u></p>
<p class="MsoNormal"> <param name="nat-map" value="false"/><u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:black"> <span style="background:yellow">
<param name="listen-ip" value="0.0.0.0"/></span><u></u><u></u></span></b></p>
<p class="MsoNormal"> <param name="listen-port" value="8021"/><u></u><u></u></p>
<p class="MsoNormal"> <param name="password" value="ClueCon"/><u></u><u></u></p>
<p class="MsoNormal"> <!--<param name="stop-on-bind-error" value="true"/>--><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b> <span style="background:yellow">
<param name="apply-inbound-acl" value="localnet.auto"/><u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="background:yellow"> <list name="localnet.auto" default="allow"><u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="background:yellow"> <node type="allow" cidr="<a href="http://10.47.26.28/32" target="_blank">10.47.26.28/32</a>"/><u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="background:yellow"> </list></span><u></u><u></u></b></p>
<p class="MsoNormal"> </settings><u></u><u></u></p>
<p class="MsoNormal"></configuration><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The above configuration will allow a remote PC with an IP address of 10.47.26.28 to issue commands to freeswitch (e.g. bgapi).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Now, suppose we wanted to update the apply-inbound-acl list like this:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> <param name="apply-inbound-acl" value="localnet.auto"/><u></u><u></u></p>
<p class="MsoNormal"> <list name="localnet.auto" default="allow"><u></u><u></u></p>
<p class="MsoNormal"> <node type="allow" cidr="<a href="http://10.47.26.28/32" target="_blank">10.47.26.28/32</a>"/><u></u><u></u></p>
<p class="MsoNormal"><b> <node type="allow" cidr="<a href="http://10.47.26.44/32" target="_blank">10.47.26.44/32</a>"/><u></u><u></u></b></p>
<p class="MsoNormal"> </list><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The list has been updated to allow a remote PC with an IP address of
<span style="background:yellow">10.47.26.44</span> to connect to freeswitch.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The only way to get this to work is to restart freeswitch. We were wondering if there is another way that would not require a stop & start of freeswitch.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The following has already been tried:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span>-<span style="font:7.0pt "Times New Roman"">
</span></span><u></u>Moved the <span style="background:yellow">
apply-inbound-acl</span> to acl.conf.xml. Invoke the “reloadxml” and “reloadacl” commands<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Steve<u></u><u></u></p>
</div>
<p><font face="Helv,Arial" size="1"></font></p>
<hr>
NOTE: This e-mail (including any attachments) is for the sole use of the intended recipient(s) and may contain information that is confidential and/or protected by legal privilege. Any unauthorized review, use, copy, disclosure or distribution of this e-mail
is strictly prohibited. If you are not the intended recipient, please notify Mitel immediately and destroy all copies of this e-mail. Mitel does not accept any liability for breach of security, error or virus that may result from the transmission of this message.
<p></p>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>