<br><br><div class="gmail_quote">On Tue, Feb 9, 2010 at 1:53 AM, Matthew Law <span dir="ltr">&lt;<a href="mailto:matt@webcontracts.co.uk">matt@webcontracts.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, February 7, 2010 2:59 pm, Frank Carmickle wrote:<br>
&gt; On Sun, Feb 07, Matthew Law wrote:<br>
&gt;&gt; After some more experiments I have a working replacement for the<br>
&gt;&gt; asterisk<br>
&gt;&gt; box we were using before, which is great.<br>
&gt;&gt;<br>
&gt;&gt; I had problems getting incoming calls to work. Changing the entry in<br>
&gt;&gt; acl.conf.xml from:<br>
&gt;&gt;<br>
&gt;&gt; &lt;list name=&quot;domains&quot; default=&quot;deny&quot;&gt;<br>
&gt;&gt;    &lt;node type=&quot;allow&quot; domain=&quot;$${domain}&quot;/&gt;<br>
&gt;&gt; &lt;/list&gt;<br>
&gt;&gt;<br>
&gt;&gt; to:<br>
&gt;&gt;<br>
&gt;&gt; &lt;list name=&quot;domains&quot; default=&quot;allow&quot;&gt;<br>
&gt;&gt;    &lt;node type=&quot;allow&quot; domain=&quot;$${domain}&quot;/&gt;<br>
&gt;&gt; &lt;/list&gt;<br>
&gt;&gt;<br>
&gt;&gt; and reloading xml works but this gets reverted every time FS starts up.<br>
&gt;&gt; I&#39;ve scanned the wiki docs and can&#39;t see anything pertaining to that.<br>
&gt;&gt; Why/where is this happening and how do I make it the default?  Actually,<br>
&gt;&gt; the question should probably be is it sensible to do that? - the box is<br>
&gt;&gt; out on the internet and I really only want to take incoming calls from<br>
&gt;&gt; <a href="http://voiptalk.org" target="_blank">voiptalk.org</a>, but I can&#39;t find a list of IPs on their site which I could<br>
&gt;&gt; create an acl from...<br>
&gt;<br>
&gt; This is what gateway definitions are for in sofia.<br>
<br>
I&#39;m still struggling with this.  How where do I tell sofia to allow<br>
incoming connections from this gateway?<br>
<br>
Here&#39;s my sip_profiles/external/voiptalk.org.xml with the sensitive stuff<br>
removed:<br>
<br>
&lt;include&gt;<br>
        &lt;gateway name=&quot;voiptalk&quot;&gt;<br>
                &lt;param name=&quot;username&quot; value=&quot;XXXXXXX&quot; /&gt;<br>
                &lt;param name=&quot;realm&quot; value=&quot;<a href="http://voiptalk.org" target="_blank">voiptalk.org</a>&quot; /&gt;<br>
                &lt;param name=&quot;from-user&quot; value=&quot;XXXXXXX&quot;/&gt;<br>
                &lt;param name=&quot;from-domain&quot; value=&quot;<a href="http://voiptalk.org" target="_blank">voiptalk.org</a>&quot;/&gt;<br>
                &lt;param name=&quot;password&quot; value=&quot;XXXXXXX&quot; /&gt;<br>
                &lt;param name=&quot;extension&quot; value=&quot;voiptalk-incoming&quot;/&gt;<br>
                &lt;param name=&quot;proxy&quot; value=&quot;<a href="http://voiptalk.org" target="_blank">voiptalk.org</a>&quot;/&gt;<br>
                &lt;param name=&quot;register-proxy&quot; value=&quot;<a href="http://voiptalk.org" target="_blank">voiptalk.org</a>&quot;/&gt;<br>
                &lt;param name=&quot;expire-seconds&quot; value=&quot;600&quot;/&gt;<br>
                &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>
                &lt;param name=&quot;ping&quot; value=&quot;25&quot;/&gt;<br>
        &lt;/gateway&gt;<br>
&lt;/include&gt;<br>
<br>
Do I need to add something to this file or maybe sofia.conf.xml to allow<br>
connections from this domain?  Most everything else is working now, just<br>
banging my head on this.<br>
<br></blockquote><div>Matt,<br><br>Are you trying to let calls in from <a href="http://voiptalk.org">voiptalk.org</a>? Do you want to auth all inbound calls or do you just want to blanket allow them and handle them in the dialplan? If you just want to allow calls in from the <a href="http://voiptalk.org">voiptalk.org</a> IP address then you need to use the cidr tag in acl.conf.xml:<br>
&lt;list name=&quot;domains&quot; default=&quot;deny&quot;&gt;<br>
    &lt;node type=&quot;allow&quot; domain=&quot;$${domain}&quot;/&gt;<br>    &lt;node type=&quot;allow&quot; cidr=&quot;<a href="http://1.2.3.4/32">1.2.3.4/32</a>&quot;/&gt;<br> &lt;/list&gt;<br><br>-MC<br><br></div></div>