On 3/19/08, Anshuman S. Rawat <arawat at 3clogic.com> wrote: > Hi, > > I have some more info from the logs (I added a few statements there) with my > comments. > > My retry timer value is 120 sec. > > 15:10:15.062 sip_auth_clien Authorization failed for 857955 at fwd.pulver.com: > server rejected with stale=false > 15:10:15.062 pjsua_acc.c SIP registration error: Credential failed to > authenticate (PJSIP_EFAILEDCREDENTIAL) [status=171100] > 15:10:15.062 timer.c current time: 1205939415.62 > 15:10:15.062 timer.c expiry time: 1205939535.62 ////////timer expires > after 120 sec > 15:10:15.062 timer.c Added timer id: 24 ////// timer id for my timer > 15:10:15.062 sipPhone.cpp Added RETRY timer ///////// log from sip phone > app > 15:10:15.062 timer.c current time: 1205939415.62 > 15:10:15.062 timer.c expiry time: 1205939420.62 > 15:10:15.062 timer.c Added timer id: 25 > 15:10:15.328 timer.c Removing timer id 5; cur size: 34 > 15:10:15.328 timer.c Moving timer id: 25; cur size: 33 > 15:10:15.328 timer.c current time: 1205939415.328 > 15:10:15.328 timer.c expiry time: 1205939416.928 > 15:10:15.328 timer.c Added timer id: 5 > 15:10:16.046 timer.c Removing timer id 6; cur size: 34 > 15:10:16.046 timer.c Moving timer id: 5; cur size: 33 > 15:10:16.062 timer.c Removing timer id 3; cur size: 33 > 15:10:16.062 timer.c Moving timer id: 2014530617; cur size: 32 > ////////////memory corruption > > > For reference, this is how I start the timer in the sip phone application- > ---------------------------------------------------------- > pj_time_val delay = { DEFAULT_RETRY_TIME, 0 }; > pjsip_endpoint *endpt = pjsua_get_pjsip_endpt(); > acc_info.timer.cb = ®_retry_cb; > acc_info.timer.id = acc_id; > acc_info.timer.user_data = NULL; > if (pjsip_endpt_schedule_timer( endpt, &acc_info.timer, &delay) != > PJ_SUCCESS) > { > PJ_LOG(5,("sipPhone.cpp", "pjsip_endpt_schedule_timer FAILED!!")); > } > else > { > PJ_LOG(4,("sipPhone.cpp", "Added RETRY timer")); > } > ------------------------------------------------------------- > > What am I doing wrong? With your little snippet, I can only guess that you used local variable for your timer entry. Please see my other email. -benny > Thanks, > Anshuman >