< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] Stale Call Timer


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

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.