Restrict outbound calls based on extension
Hello, I want to allow outbound calls to a limited number of users. I have gone through toll definitions in dial plan. But, I am struggling to find a way to achieve that. Please help. Thanks, Ryan
In brief: 1 way would be to store a variable in each directory user with what type of calls are allowed. Domestic, International, etc. e.g. "domestic,international" Then in your extension that actually routes the outbound calls, you would also check for the condition that this variable you set has the permission in it's list. Sorry for not showing you the actual code.. -Avi On Fri, Dec 23, 2011 at 9:22 AM, Ryan V <ryan@kaevee.com> wrote:
Hello,
I want to allow outbound calls to a limited number of users. I have gone through toll definitions in dial plan. But, I am struggling to find a way to achieve that. Please help.
Thanks,
Ryan
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Thanks. I managed to restrict by doing this. I added a variable into the directory entry for user like <variable name="toll_allow" value="outgoing"/> and restricted in outgoing dial plan with <condition field="${toll_allow}" expression="outgoing"/> Probably I should add an entry in wiki for people like me. Thanks again, Venkatesh K On Fri, Dec 23, 2011 at 12:59 PM, Avi Marcus <avi@avimarcus.net> wrote:
In brief: 1 way would be to store a variable in each directory user with what type of calls are allowed. Domestic, International, etc. e.g. "domestic,international" Then in your extension that actually routes the outbound calls, you would also check for the condition that this variable you set has the permission in it's list.
Sorry for not showing you the actual code.. -Avi
On Fri, Dec 23, 2011 at 9:22 AM, Ryan V <ryan@kaevee.com> wrote:
Hello,
I want to allow outbound calls to a limited number of users. I have gone through toll definitions in dial plan. But, I am struggling to find a way to achieve that. Please help.
Thanks,
Ryan
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
There may actually be something in the wiki already. If not, be sure to mention that the toll_allow variable is used in the default.xml dialplan file. -MC On Fri, Dec 23, 2011 at 12:43 AM, Ryan V <ryan@kaevee.com> wrote:
Thanks. I managed to restrict by doing this.
I added a variable into the directory entry for user like
<variable name="toll_allow" value="outgoing"/>
and restricted in outgoing dial plan with
<condition field="${toll_allow}" expression="outgoing"/>
Probably I should add an entry in wiki for people like me.
Thanks again,
Venkatesh K
On Fri, Dec 23, 2011 at 12:59 PM, Avi Marcus <avi@avimarcus.net> wrote:
In brief: 1 way would be to store a variable in each directory user with what type of calls are allowed. Domestic, International, etc. e.g. "domestic,international" Then in your extension that actually routes the outbound calls, you would also check for the condition that this variable you set has the permission in it's list.
Sorry for not showing you the actual code.. -Avi
On Fri, Dec 23, 2011 at 9:22 AM, Ryan V <ryan@kaevee.com> wrote:
Hello,
I want to allow outbound calls to a limited number of users. I have gone through toll definitions in dial plan. But, I am struggling to find a way to achieve that. Please help.
Thanks,
Ryan
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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 (3)
-
Avi Marcus
-
Michael Collins
-
Ryan V