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?
Hope anyone can help me. Thank You
Regards, Nhadie
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
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
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@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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers