Re: [OpenSIPStack] Configurable Timer B
Brought to you by:
joegenbaclor
From: Gustavo C. <cur...@ho...> - 2007-08-17 20:17:58
|
Hi joegen, =20 Thanks for your help. I get the value in OpenSBC::OnConfigChanged() instead= of OpenSBCDaemon::OnConfigChanged(). =20 This was the code added in OpenSBC::OnConfigChanged(): =20 GetStack().SetTimerBDuration( config.GetInteger( configKeySection, "SIP T= imer B Duration", 10000 ) ); =20 In the class SIPTimerManager: ..... public: void SetTimerBDuration( DWORD duration ){ m_TimerBDuration =3D duration; = } DWORD GetTimerBDuration(){ return m_TimerBDuration; } private: DWORD m_TimerBDuration; ..... =20 and finnaly in void InviteClientTransaction::HandleStateIdle(): =20 StartTimer_B(m_TimerManager.GetTimerBDuration()); =20 It's seem to work fine. But i'm not sure if there is a possible collision b= etween SetTimerBDuration() when is configured from the http admin and GetT= imerBDuration() in the transaction layer. =20 Regards =20 Gustavo > Date: Fri, 17 Aug 2007 17:16:29 +0800> To: cur...@gm...; ope= nsi...@li...> From: joe...@gm...> CC: j= oeg...@gm...> Subject: Re: [OpenSIPStack] Configurable Timer B> >= > Hi gustavo,> > You need to edit oss-application.conf.xml and ad a new it= em in the > general parameter section. Example:> > <Item Comment=3D"" Type= =3D"integer" Default=3D"32000" Minimum=3D"5000" > Maximum=3D"32000" Length= =3D"50">SIP Timer B Duration</Item>> > > This should add a new item in http= admin general parameter when you > restart opensbc. You may get the value = of timer B in method > OpenSBCDaemon::OnConfigChanged() by calling> > int t= imerbDuration =3D config.GetInterger( configKeySection, "SIP Timer B > Dura= tion", 32000 );> > > Gustavo Curetti wrote:> > Hi Joegen:> > > > I want to = make configurable the timer B via http admin. How could i do this? Where i = have to add the variable and the methods?> > > > Thanks for your help> > > = > Gustavo> > ______________________________________________________________= ___> > Expr=E9sate - dise=F1a tu p=E1gina de inicio de Live.com como m=E1s = te guste.> > http://www.live.com/getstarted> > ----------------------------= ---------------------------------------------> > This SF.net email is spons= ored by: Splunk Inc.> > Still grepping through log files to find problems? = Stop.> > Now Search log events and configuration files using AJAX and a bro= wser.> > Download your FREE copy of Splunk now >> http://get.splunk.com/> >= _______________________________________________> > opensipstack-devel mail= ing list> > ope...@li...> > https://lists.sourc= eforge.net/lists/listinfo/opensipstack-devel> >> >> > > > > > -------------= ------------------------------------------------------------> This SF.net e= mail is sponsored by: Splunk Inc.> Still grepping through log files to find= problems? Stop.> Now Search log events and configuration files using AJAX = and a browser.> Download your FREE copy of Splunk now >> http://get.splunk.= com/> _______________________________________________> opensipstack-devel m= ailing list> ope...@li...> https://lists.source= forge.net/lists/listinfo/opensipstack-devel _________________________________________________________________ Expr=E9sate - dise=F1a tu p=E1gina de inicio de Live.com como m=E1s te gust= e. http://www.live.com/getstarted= |