[reSIProcate] Stale Call Timer
Thomas Troy
thomas.troy at accuris-networks.com
Tue Sep 24 05:06:27 CDT 2013
Hi,
I was recently looking at controlling how to take down a call that hasn't been answered within a reasonable time frame. One of the ways to do this is the StaleCallTimer which calls onStaleCallTimeout in the InviteSessionHandler.
However, this cannot be relied upon to give a consistent user experience because resiprocate takes the user profile setting and adds a random number of seconds (up to 120) when starting the timer. I'm just wondering what is the reasoning for this?
void
ClientInviteSession::startStaleCallTimer()
{
InfoLog (<< toData(mState) << ": startStaleCallTimer");
unsigned long when = mDialog.mDialogSet.getUserProfile()->getDefaultStaleCallTime();
when += Random::getRandom() % 120;
mDum.addTimer(DumTimeout::StaleCall,
when,
getBaseHandle(),
++mStaleCallTimerSeq);
}
Regards,
Thom
[http://www.accuris-networks.com/assets/images/accsig.jpg]<http://www.accuris-networks.com>
Accuris Networks is a Private Limited Company registered in the Republic of Ireland.
Registered Number is 265266, with a registered office at O'Connell Bridge House, D'Olier St, Dublin 2.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20130924/4b1463fa/attachment.htm>
More information about the resiprocate-devel
mailing list