OpenSIPS Extras!

Two things in this post. Assuming you run the following code:

loadmodule ""
loadmodule ""
loadmodule ""

timer_route[log_uptime, 7] {
  xlog("uptime = $stat(timestamp) , startup = $TS , current = $Ts\n");

through /usr/sbin/opensips -D -E -f opensips.cfg (doesn’t need to be as root, you can run this under your user id), you will get:

  • An update every 7 seconds.
  • That update shows how to retrieve statistics from within your script.
  • If you go to you will get similar information.
  • And so will you if you go to
Written on November 29, 2013