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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Dec 2 12:16:13 CET 2010


Hi Anton,

a.zagorskiy at oyster-telecom.ru wrote:
> So, you explained how to store and grouping counters. Thanks.
> But how to catch the moment when the opensips transaction is going 
> down? I need to react immediately.
when a dialog ends, opensips automatically removes it from the profile, 
so the profile size goes one unit down...You do not have anything to do 
about this..


Regards,
Bogdan
>
> I can catch a BYE request when a established sip session is ending. 
> What about other cases?
>
>
> On Fri, 19 Nov 2010 09:27:38 -0800
>  Dave Singer <dave.singer at wideideas.com> wrote:
>> 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
>>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro




More information about the Users mailing list