<br><br><div class="gmail_quote">On Tue, Feb 9, 2010 at 1:53 AM, Matthew Law <span dir="ltr"><<a href="mailto:matt@webcontracts.co.uk">matt@webcontracts.co.uk</a>></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>
> On Sun, Feb 07, Matthew Law wrote:<br>
>> After some more experiments I have a working replacement for the<br>
>> asterisk<br>
>> box we were using before, which is great.<br>
>><br>
>> I had problems getting incoming calls to work. Changing the entry in<br>
>> acl.conf.xml from:<br>
>><br>
>> <list name="domains" default="deny"><br>
>> <node type="allow" domain="$${domain}"/><br>
>> </list><br>
>><br>
>> to:<br>
>><br>
>> <list name="domains" default="allow"><br>
>> <node type="allow" domain="$${domain}"/><br>
>> </list><br>
>><br>
>> and reloading xml works but this gets reverted every time FS starts up.<br>
>> I've scanned the wiki docs and can't see anything pertaining to that.<br>
>> Why/where is this happening and how do I make it the default? Actually,<br>
>> the question should probably be is it sensible to do that? - the box is<br>
>> out on the internet and I really only want to take incoming calls from<br>
>> <a href="http://voiptalk.org" target="_blank">voiptalk.org</a>, but I can't find a list of IPs on their site which I could<br>
>> create an acl from...<br>
><br>
> This is what gateway definitions are for in sofia.<br>
<br>
I'm still struggling with this. How where do I tell sofia to allow<br>
incoming connections from this gateway?<br>
<br>
Here's my sip_profiles/external/voiptalk.org.xml with the sensitive stuff<br>
removed:<br>
<br>
<include><br>
<gateway name="voiptalk"><br>
<param name="username" value="XXXXXXX" /><br>
<param name="realm" value="<a href="http://voiptalk.org" target="_blank">voiptalk.org</a>" /><br>
<param name="from-user" value="XXXXXXX"/><br>
<param name="from-domain" value="<a href="http://voiptalk.org" target="_blank">voiptalk.org</a>"/><br>
<param name="password" value="XXXXXXX" /><br>
<param name="extension" value="voiptalk-incoming"/><br>
<param name="proxy" value="<a href="http://voiptalk.org" target="_blank">voiptalk.org</a>"/><br>
<param name="register-proxy" value="<a href="http://voiptalk.org" target="_blank">voiptalk.org</a>"/><br>
<param name="expire-seconds" value="600"/><br>
<param name="register" value="true"/><br>
<param name="ping" value="25"/><br>
</gateway><br>
</include><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>
<list name="domains" default="deny"><br>
<node type="allow" domain="$${domain}"/><br> <node type="allow" cidr="<a href="http://1.2.3.4/32">1.2.3.4/32</a>"/><br> </list><br><br>-MC<br><br></div></div>