Ticket #7 (closed enhancement: fixed)

Opened 10 years ago

Last modified 9 years ago

Move PJSIP compile time configurations/settings (such as T1, T2 timers) to run-time (thanks Philippe Leuba)

Reported by: bennylp Owned by: bennylp
Priority: major Milestone: release-0.9.0
Component: pjsip Version: trunk
Keywords: Cc: Philippe, Leuba
Backport to 1.x milestone: Backported:

Description (last modified by bennylp) (diff)

Some PJSIP config (e.g. PJSIP_MAX_TSX_COUNT) may better be implemented as a run-time configs instead of compile time, to enable multiple applications to be built on a single PJSIP tree.

Attachments

patch_pjsip_timers.txt (12.0 KB) - added by bennylp 9 years ago.

Change History

comment:1 Changed 9 years ago by bennylp

  • Status changed from new to assigned
  • Description modified (diff)
  • Cc Philippe, Leuba added
  • Summary changed from Move PJSIP compile time config to run-time to Move PJSIP compile time configurations/settings (such as T1, T2 timers) to run-time
  • Priority changed from minor to major
  • Version set to trunk
  • Milestone changed from unassigned to release-0.9.0

Changed 9 years ago by bennylp

comment:2 Changed 9 years ago by bennylp

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Summary changed from Move PJSIP compile time configurations/settings (such as T1, T2 timers) to run-time to Move PJSIP compile time configurations/settings (such as T1, T2 timers) to run-time (thanks Philippe Leuba)

Thanks Philippe Leuba for the patch

Patch applied in r1818 with minor modifications:

  • moved pjsip_cfg_t declaration to the top of sip_config.h.
  • added doxygen documentation for the new config API
  • Optimize pjsip_cfg() function call to inline for static library targets.
  • fixed warnings about unsigned/signed comparison mismatch
  • added new file in VS6, EVC4, and Symbian projects

comment:3 Changed 9 years ago by bennylp

In r1857:

  • Fixed undefined symbol on Symbian
Note: See TracTickets for help on using tickets.