[Freeswitch-users] Restrict outbound calls based on extension

Ryan V ryan at kaevee.com
Fri Dec 23 11:43:54 MSK 2011


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 at 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 at 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 at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111223/4fc187f2/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list