Opened 7 years ago

Closed 7 years ago

#1527 closed defect (worksforme)

Debugging aid for timers and fix timer issues

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-2.0.1
Component: common Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description (last modified by bennylp)

Add facility to debug timer heap state. Application can declare PJ_TIMER_DEBUG=1 and recompile, and use pj_timer_heap_dump() to dump the contents of the timer heap. The contents of the timer heap will also be printed to log by pjsip_endpt_dump(), and when the pjsip_endpt is being destroyed.

Change History (3)

comment:1 Changed 7 years ago by bennylp

In 4154:

Re #1527: added debugging facility to the timer heap. By enabling PJ_TIMER_DEBUG, application can use pj_timer_heap_dump() or pjsip_endpt_dump() to dump the timer entries along with the source location where it is scheduled from. The macro will also enable dumping the timer heap entries when the SIP endpoint is being destroyed

comment:2 Changed 7 years ago by bennylp

In 4155:

Re #1527: fixed bug in pjsua-lib, where registration operation may cause wrong timer entry (with _timer_id=0) to be cancelled accidentally. This could happen when turning registration ON after it was off. Thanks Itay Bianco for the report

comment:3 Changed 7 years ago by bennylp

  • Description modified (diff)
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.