IP-Based Authentication
You could use cidr in your user definition. Something like: <user id="my_user_id" cidr="10.20.30.40/32"> After that, reloadacl. 2015-07-28 10:42 GMT-05:00 Murugan Pandian <manpower13.cse@gmail.com>:
Hi,
How i auth agent based on IP Address
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Hi, you might want to be more specific with your question. For incoming calls (FreeSWITCH receiving calls from an IP): Use Sofia profile param apply-inbound-acl=my_list. Then define agent IP(s) directly in the acl list "my_list" that you define in acl.conf.xml or use Sofia profile param apply-inbound-acl=domains. Then define "domains" ACL in acl.conf.xml pointed to your user directory. Put agent IPs as a cidr param in user directory For outgoing calls (FreeSWITCH sending calls to an IP): Construct dial-string that includes agent's IP and use it in the dialplan. or create a gateway that points to the IP. This way you can also do OPTIONS ping in case far-end is down. On 15-07-28 11:42 AM, Murugan Pandian wrote:
Hi,
How i auth agent based on IP Address
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
Another option to this is on your user, you can use a CIDR attribute to bind them to that CIDR, this is useful when dealing with fixed address customers (like sip trunks) On Tue, Jul 28, 2015 at 9:52 AM, Victor Chukalovskiy < victor.chukalovskiy@gmail.com> wrote:
Hi, you might want to be more specific with your question.
For incoming calls (FreeSWITCH receiving calls from an IP):
Use Sofia profile param apply-inbound-acl=my_list. Then define agent IP(s) directly in the acl list "my_list" that you define in acl.conf.xml or use Sofia profile param apply-inbound-acl=domains. Then define "domains" ACL in acl.conf.xml pointed to your user directory. Put agent IPs as a cidr param in user directory
For outgoing calls (FreeSWITCH sending calls to an IP):
Construct dial-string that includes agent's IP and use it in the dialplan. or create a gateway that points to the IP. This way you can also do OPTIONS ping in case far-end is down.
On 15-07-28 11:42 AM, Murugan Pandian wrote:
Hi,
How i auth agent based on IP Address
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
participants (4)
-
Chris Tunbridge
-
Eduar Cardona
-
Murugan Pandian
-
Victor Chukalovskiy