Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Multiple context without using directory


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
ronmccar at gmail.com
Guest





PostPosted: Sun Dec 28, 2008 6:02 pm    Post subject: [Freeswitch-users] Multiple context without using directory Reply with quote

Hi all,

I would like to setup FS to have many context, basically we just want to switch calls, and since we have been using Asterisk we want to keep the context names the same, and well it's easier it seems to me.

This is for termination only, so just sending calls out, I would think FS can do it the same way Asterisk does, where if the IP matches then it will use those settings with that gateway and diaplan since the context ties them all together. No matter what I try the context always goes to default, I even took off all the ACL's for internal and external profiles and tried gateways in each, still no luck, i can't get around the default context. We are going to be using IP based auth only, so no user/pass's ever.

Any help on this would be great, I have searched and searched and everyone just uses the default context, but I am trying to avoid that as the diaplan will get quite long as I will have to all kinds of crazy matching, when a context is much simpler, and I would think faster then using lots of dialplan logic.

Thanks for any help on this!

Ron
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Dec 28, 2008 6:21 pm    Post subject: [Freeswitch-users] Multiple context without using directory Reply with quote

On Dec 28, 2008, at 12:52 PM, Ron McCarthy wrote:

Quote:
Hi all,

I would like to setup FS to have many context, basically we just
want to switch calls, and since we have been using Asterisk we want
to keep the context names the same, and well it's easier it seems to
me.

This is for termination only, so just sending calls out, I would
think FS can do it the same way Asterisk does, where if the IP
matches then it will use those settings with that gateway and
diaplan since the context ties them all together. No matter what I
try the context always goes to default, I even took off all the
ACL's for internal and external profiles and tried gateways in each,
still no luck, i can't get around the default context. We are going
to be using IP based auth only, so no user/pass's ever.


This type of authentication is still tied to the directory. If you
notice in the default config you'll notice the domains acl... that ACL
is built off the cidr= attribute on the user tag in the directory.

<user id="1000" cidr="1.2.3.4/24">
<variables>
<variable name="user_context" value="my_context"/>
</variables>
</user>

So now when you "reloadacl reloadxml" yes both together like that.

I also just fixed a bug related to this due to recent directory layout
changes.

/b

PS you can also set the context to "_domain_" and it'll auto on the
from host.


Quote:


Any help on this would be great, I have searched and searched and
everyone just uses the default context, but I am trying to avoid
that as the diaplan will get quite long as I will have to all kinds
of crazy matching, when a context is much simpler, and I would think
faster then using lots of dialplan logic.

Thanks for any help on this!

Ron
_____


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
ronmccar at gmail.com
Guest





PostPosted: Sun Dec 28, 2008 6:56 pm    Post subject: [Freeswitch-users] Multiple context without using directory Reply with quote

I see the "brian.xml" example has it, didn't check that one, whoops.

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.

The users in the direct should not register just to IP based auth, which the CIDR attribute takes care of?

Just looks like it's not seeing the users in the directory at all, anything I might be missing that just jumps right out?

Thanks
Ron

On Sun, Dec 28, 2008 at 4:20 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:

On Dec 28, 2008, at 12:52 PM, Ron McCarthy wrote:

Quote:
Hi all,

I would like to setup FS to have many context, basically we just
want to switch calls, and since we have been using Asterisk we want
to keep the context names the same, and well it's easier it seems to
me.

This is for termination only, so just sending calls out, I would
think FS can do it the same way Asterisk does, where if the IP
matches then it will use those settings with that gateway and
diaplan since the context ties them all together. No matter what I
try the context always goes to default, I even took off all the
ACL's for internal and external profiles and tried gateways in each,
still no luck, i can't get around the default context. We are going
to be using IP based auth only, so no user/pass's ever.



This type of authentication is still tied to the directory. If you
notice in the default config you'll notice the domains acl... that ACL
is built off the cidr= attribute on the user tag in the directory.

<user id="1000" cidr="1.2.3.4/24">
<variables>
<variable name="user_context" value="my_context"/>
</variables>
</user>

So now when you "reloadacl reloadxml" yes both together like that.

I also just fixed a bug related to this due to recent directory layout
changes.

/b

PS you can also set the context to "_domain_" and it'll auto on the
from host.


Quote:


Any help on this would be great, I have searched and searched and
everyone just uses the default context, but I am trying to avoid
that as the diaplan will get quite long as I will have to all kinds
of crazy matching, when a context is much simpler, and I would think
faster then using lots of dialplan logic.

Thanks for any help on this!

Ron

Quote:
_____


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Dec 28, 2008 7:00 pm    Post subject: [Freeswitch-users] Multiple context without using directory Reply with quote

I can bet you're on a rev before 10981 and after 10917... update you
have a bug related to this.

/b

On Dec 28, 2008, at 5:54 PM, Ron McCarthy wrote:

Quote:
I see the "brian.xml" example has it, didn't check that one, whoops.

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.

The users in the direct should not register just to IP based auth,
which the CIDR attribute takes care of?

Just looks like it's not seeing the users in the directory at all,
anything I might be missing that just jumps right out?

Thanks
Ron


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
ronmccar at gmail.com
Guest





PostPosted: Sun Dec 28, 2008 7:18 pm    Post subject: [Freeswitch-users] Multiple context without using directory Reply with quote

Wow, 10171 I guess Im way far behind! I am building right now, ill let ya know if any issues, thanks again!



On Sun, Dec 28, 2008 at 4:58 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
I can bet you're on a rev before 10981 and after 10917... update you
have a bug related to this.

/b

On Dec 28, 2008, at 5:54 PM, Ron McCarthy wrote:

Quote:
I see the "brian.xml" example has it, didn't check that one, whoops.

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.

The users in the direct should not register just to IP based auth,
which the CIDR attribute takes care of?

Just looks like it's not seeing the users in the directory at all,
anything I might be missing that just jumps right out?

Thanks
Ron




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Dec 28, 2008 7:29 pm    Post subject: [Freeswitch-users] Multiple context without using directory Reply with quote

Wow then you didn't have this one bug.... but yah a little bit
behind ... update just to be safe. If you still have the problem
please post.

/b

On Dec 28, 2008, at 6:16 PM, Ron McCarthy wrote:

Quote:
Wow, 10171 I guess Im way far behind! I am building right now, ill
let ya know if any issues, thanks again!


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
ronmccar at gmail.com
Guest





PostPosted: Sun Dec 28, 2008 9:49 pm    Post subject: [Freeswitch-users] Multiple context without using directory Reply with quote

Running 10981 now, same error.

I have:

<user id="proxy-01" cidr="x.x.xx.x/32">
<params>
<param name="password" value="1"/>
</params>
<variables>
<variable name="accountcode" value="1000"/>
<variable name="user_context" value="newContext"/>
<variable name="effective_caller_id_name" value="CID TEST"/>
<variable name="effective_caller_id_number" value="1000"/>
</variables>
</user>

Anymore ideals?

Thansk


On Sun, Dec 28, 2008 at 5:28 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
Wow then you didn't have this one bug.... but yah a little bit
behind ... update just to be safe. If you still have the problem
please post.

/b

On Dec 28, 2008, at 6:16 PM, Ron McCarthy wrote:

Quote:
Wow, 10171 I guess Im way far behind! I am building right now, ill
let ya know if any issues, thanks again!




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Dec 28, 2008 10:03 pm    Post subject: [Freeswitch-users] Multiple context without using directory Reply with quote

show me the output of reloadacl , Chances are the domain in the
acl.conf.xml and the one in your directory don't jive.

/b

On Dec 28, 2008, at 8:46 PM, Ron McCarthy wrote:

Quote:
Running 10981 now, same error.

I have:

<user id="proxy-01" cidr="x.x.xx.x/32">
<params>
<param name="password" value="1"/>
</params>
<variables>
<variable name="accountcode" value="1000"/>
<variable name="user_context" value="newContext"/>
<variable name="effective_caller_id_name" value="CID TEST"/>
<variable name="effective_caller_id_number" value="1000"/>
</variables>
</user>

Anymore ideals?

Thansk


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services