[OpenSIPS-Users] Handle end of a transaction/dialog

Dave Singer dave.singer at wideideas.com
Fri Nov 19 18:27:38 CET 2010


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 <
a.zagorskiy at oyster-telecom.ru> 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
> a.zagorskiy at oyster-telecom.ru
> www.oyster-telecom.ru
>
>
>
> > -----Original Message-----
> > From: users-bounces at lists.opensips.org [mailto:users-
> > bounces at lists.opensips.org] 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
> > a.zagorskiy at oyster-telecom.ru
> > www.oyster-telecom.ru
> >
> >
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20101119/7f0d30b5/attachment.htm>


More information about the Users mailing list