[Freeswitch-users] Add IP to ACL from the CLI

Michael Collins msc at freeswitch.org
Wed Jun 19 23:15:14 MSD 2013


Unfortunately there aren't any command line commands to do this. However,
there are options, such as mod_xml_curl, that let you do ACL's dynamically.
In a pinch you could even update the acl.conf.xml file and then run: fs_cli
-x 'reloadacl'

-MC


On Wed, Jun 19, 2013 at 9:02 AM, Tom Carlson <tom at tomcarlson.com> wrote:

> I have two freeswitch servers that I am linking together, so that I need
> to add the IP of each box to the ACL of the other box.
>
> However, one of these servers has a dynamic IP from the internet service
> provider.
>
> I have a cron job running that determines the IP address of the dynamic
> box, every 5 minutes, and if it changes, writes that IP address to the
> domain name server, so that registration, etc. to the domain name always
> works, since the domain name always points to the current IP address..
>
> However, Freeswitch does not accept domain names in the ACL.  It only
> accepts IP addresses.  That means I need to change  acl.conf.xml, every
> time the ip address changes.
>
> I would rather just execute a command using fscli to add the IP address do
> the ACL.  Is this possible?
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130619/b826755a/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list