[Serusers] ceratins users to one gateway others to another

Iqbal iqbal at gigo.co.uk
Fri Sep 16 12:05:18 CEST 2005


yes, and even take it further by allowing only some dialing destinations
eg grp=usa, can call 01, those in grp=aus can only call australia etc etc

Iqbal

On 9/17/2005, "Nhadie" <nhadie at cbcpworld.com> wrote:

>Thank You Sir. So I can also do the same on extension that would have
>voicemail and other services?
>
>Nhadie
>
>Andreas Granig wrote:
>
>> Nhadie wrote:
>>
>>> Hi All,
>>>
>>> Can I have some extensions use gateway 1 and some can use gateway 2?
>>> I want to do this for clients that pay premium they have unlimited
>>> calls for free on a certain onuntry and others will still go to the
>>> per minute basis.
>>> Can I set this up on groups?
>>
>>
>> Yes, you could create a group "premium" and use something like
>>
>>   if(is_user_in("credentials", "premium")) {
>>     rewritehostport("gw1", "5060");
>>   }
>>   else {
>>     rewritehostport("gw2", "5060");
>>   }
>>   t_relay();
>>
>> and add users to the "premium" group using
>>
>>   serctl acl grant <user> premium
>>
>> Andy
>>
>>
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>




More information about the sr-users mailing list