<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">For instance, in the &lt;sip_profile&gt;.xml file, configure:<div>&lt;param name="apply-inbound-acl" value="external"/&gt;</div><div><br></div><div>and in the acl.conf.xml:</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp;&lt;list name="external" default="deny"&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;node type="allow" cidr="8.8.8.8/32"/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/list&gt;</div><div><br></div><div>and complete it as required</div><div><br></div><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone &nbsp;</font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: &nbsp; 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space">&nbsp;</span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); ">&nbsp; -&nbsp; &nbsp;<span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération.&nbsp;</i><b><i>IPeva</i></b><i>&nbsp;décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>Le 27/01/2011 à 14:09, Gary Chen a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><p class="MsoNormal"><span style="font-size: 10pt; font-family: Tahoma; ">I'd like to only allow the calls from certain IP's. I tried to added IP to the acl configuration file and could not make it work. And there is not much information on how to use acl.conf.xml.</span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Tahoma">Let's say that I have&nbsp;</span>&lt;list name="domains" default="deny"&gt; and I only want outside incoming calls from certain &nbsp;IP's., how can I do that? Can anybody give me an example?</p><p class="MsoNormal"><br></p><p class="MsoNormal">Gary Chen</p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:Tahoma">From:</span></b><span style="font-size:10.0pt;font-family:Tahoma">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Michael
Collins<br>
<b>Sent:</b> Wednesday, January 26, 2011 8:08 PM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] question about acl and context</span><o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">Do you want to open your switch to the whole wide world? Or
do you just want to allow any calls from certain IP addresses?&nbsp;<o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal" style="margin-bottom:12.0pt">-MC<o:p></o:p></p><p class="MsoNormal">On Wed, Jan 26, 2011 at 11:18 AM, Gary Chen &lt;<a href="mailto:gchen00@insightbb.com">gchen00@insightbb.com</a>&gt; wrote:<o:p></o:p></p><p class="MsoNormal">Installed freeswitch (FreeSWITCH Version 1.0.7
(hacked-20110126T141401Z)) with default configuration.<o:p></o:p></p><p class="MsoNormal">I registered two sip phones with user id 1007 and 1001. I
then dial 9196 for echo test from sip phone 1001 and it worked. Then I make
change to acl.conf.xml:<o:p></o:p></p><p class="MsoNormal">from&nbsp;&nbsp;&nbsp; &nbsp;&lt;list
name="domains" default="deny"&gt;<o:p></o:p></p><p class="MsoNormal">to&nbsp;&nbsp;&nbsp; &nbsp;&lt;list name="domains"
default="allow"&gt;<o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">After this change, dialing 9196 stopped working. By looking
at console, I can see that before the change<o:p></o:p></p><p class="MsoNormal">the call first hit default context. and then after the
change the call first hit public context.<o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal">Does anybody know why?<o:p></o:p></p><p class="MsoNormal">I'd like to setup freeswitch to allow both inbound and
outbound calls using port 5060. That is why I made above change on
acl.conf.xml.<o:p></o:p></p><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p class="MsoNormal"><span style="color:#888888">Gary&nbsp;<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#888888"><o:p>&nbsp;</o:p></span></p>
_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>