I see the "brian.xml" example has it, didn't check that one, whoops.<br><br>Now I have added a user in the directory with the correct CIDR attribute, yet when I send the call it seems to not use the directory, the calls is coming from a Asterisk box, I have the Asterisk box pointed to the "internal" profile's IP address, which I assume the directory would use, and it gets rejected as the ACL on the incoming profile blocks that IP.<br>
<br>The users in the direct should not register just to IP based auth, which the CIDR attribute takes care of?<br><br>Just looks like it's not seeing the users in the directory at all, anything I might be missing that just jumps right out?<br>
<br>Thanks<br>Ron<br><br><div class="gmail_quote">On Sun, Dec 28, 2008 at 4:20 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</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;">
<div class="Ih2E3d"><br>
On Dec 28, 2008, at 12:52 PM, Ron McCarthy wrote:<br>
<br>
> Hi all,<br>
><br>
> I would like to setup FS to have many context, basically we just<br>
> want to switch calls, and since we have been using Asterisk we want<br>
> to keep the context names the same, and well it's easier it seems to<br>
> me.<br>
><br>
> This is for termination only, so just sending calls out, I would<br>
> think FS can do it the same way Asterisk does, where if the IP<br>
> matches then it will use those settings with that gateway and<br>
> diaplan since the context ties them all together. No matter what I<br>
> try the context always goes to default, I even took off all the<br>
> ACL's for internal and external profiles and tried gateways in each,<br>
> still no luck, i can't get around the default context. We are going<br>
> to be using IP based auth only, so no user/pass's ever.<br>
<br>
<br>
</div>This type of authentication is still tied to the directory. If you<br>
notice in the default config you'll notice the domains acl... that ACL<br>
is built off the cidr= attribute on the user tag in the directory.<br>
<br>
<user id="1000" cidr="<a href="http://1.2.3.4/24" target="_blank">1.2.3.4/24</a>"><br>
<variables><br>
<variable name="user_context" value="my_context"/><br>
</variables><br>
</user><br>
<br>
So now when you "reloadacl reloadxml" yes both together like that.<br>
<br>
I also just fixed a bug related to this due to recent directory layout<br>
changes.<br>
<br>
/b<br>
<br>
PS you can also set the context to "_domain_" and it'll auto on the<br>
from host.<br>
<div class="Ih2E3d"><br>
<br>
><br>
><br>
> Any help on this would be great, I have searched and searched and<br>
> everyone just uses the default context, but I am trying to avoid<br>
> that as the diaplan will get quite long as I will have to all kinds<br>
> of crazy matching, when a context is much simpler, and I would think<br>
> faster then using lots of dialplan logic.<br>
><br>
> Thanks for any help on this!<br>
><br>
> Ron<br>
</div>> _____<br>
<br>
<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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>