You can use a combination of the following dialog profiles (grouping calls)
functions for this:
get_profile_size(profile,[value],size)<http://www.opensips.org/html/docs/modules/1.6.x/dialog.html#id294302>
Check
if a prifile is at limit.
set_dlg_profile(profile,[value])<http://www.opensips.org/html/docs/modules/1.6.x/dialog.html#id294092>
If
not at limit, increment the count for the profile (NOTE the value option is
not actually supported yet)
unset_dlg_profile(profile,[value])<http://www.opensips.org/html/docs/modules/1.6.x/dialog.html#id294162>
If
need to remove from a profile like carrier failover
is_in_profile(profile,[value])<http://www.opensips.org/html/docs/modules/1.6.x/dialog.html#id294231>
Not
sure this would be needed but...

When a call ends it will automatically be removed from any profiles it was
part of.

On Fri, Nov 19, 2010 at 1:29 AM, Anton Zagorskiy <
[email protected]> wrote:

> Nobody uses limitation on amount of established sessions?  I don't believe!
> =)
>
>
>
>
>
>
> WBR, Anton Zagorskiy
> VoIP Developer, Oyster Telecom
> Phone.: +7 812 601-0666
> Fax: +7 812 601-0593
> [email protected]
> www.oyster-telecom.ru
>
>
>
> > -----Original Message-----
> > From: [email protected] [mailto:users-
> > [email protected]] On Behalf Of Anton Zagorskiy
> > Sent: Thursday, November 18, 2010 4:58 PM
> > To: 'OpenSIPS users mailling list'
> > Subject: [OpenSIPS-Users] Handle end of a transaction/dialog
> >
> > Hello.
> >
> > I need to control how much SIP dialogs (established or pending) has
> > each
> > domain. If that value is equal to certain constant then I should drop
> > any
> > new INVITE from that domain.
> > There is no problem with catching initial requests, but with
> > terminating.
> > How can I control that an openSIPS transaction is in the terminating
> > stage?
> >
> >
> >
> >
> >
> >
> > WBR, Anton Zagorskiy
> > VoIP Developer, Oyster Telecom
> > Phone.: +7 812 601-0666
> > Fax: +7 812 601-0593
> > [email protected]
> > www.oyster-telecom.ru
> >
> >
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > [email protected]
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to