[OpenSIPS-Users] How to limit channel on bunch of called DIDs?
Andrew Pogrebennyk
andrew.pogrebennyk at portaone.com
Mon Jan 25 16:58:38 CET 2010
Bogdan-Andrei Iancu wrote:
> Hi Andrew,
>
> It will be a bit tricky (depending on your approach) as
> set_dlg_profile() does not accept variables for the name of the profile
> -> so , you need to use a profile with values where the value is the
> name of the group.
Bogdan,
It already seems to work this way: first do avp_db_query("select grp
from grp where username='$fU'", "$avp(s:group)");
then use group name as uuid key in usr_preferences table to get the max
number of allowed simultaneous calls per group;
if it's still above the profile size, insert dialog into caller profile,
where the value is the $avp(s:group).
Thank you.
--
Sincerely,
Andrew Pogrebennyk
More information about the Users
mailing list