[OpenSIPS-Devel] [OpenSIPS/opensips] e0fe57: usrloc/nathelper: Compute and report ping latencie...

Liviu Chircu liviu at opensips.org
Wed Mar 14 12:26:17 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e0fe570fe75c78d0573aa5185ae8986dba0c91da
      https://github.com/OpenSIPS/opensips/commit/e0fe570fe75c78d0573aa5185ae8986dba0c91da
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-03-14 (Wed, 14 Mar 2018)

  Changed paths:
    M modules/nathelper/nathelper.c
    M modules/nathelper/nh_table.h
    M modules/nathelper/sip_pinger.h
    M modules/usrloc/dlist.c
    M modules/usrloc/dlist.h
    M modules/usrloc/ucontact.c
    M modules/usrloc/ucontact.h
    M modules/usrloc/udomain.c
    M modules/usrloc/udomain.h
    M modules/usrloc/ul_mi.c
    M modules/usrloc/usrloc.c
    M modules/usrloc/usrloc.h

  Log Message:
  -----------
  usrloc/nathelper: Compute and report ping latencies

This patch adds a new nathelper branch flag, "sipping_latency_flag", to
enable ping latency computation. Also, a new usrloc event is now available,
E_UL_LATENCY_UPDATE. All contact-related usrloc events now include a new
parameter, "latency", which holds the latency of the last successful
ping if any, or 0 otherwise. If available, the ping latency can also be
accessed via MI, using the "Ping-Latency" key of the contact data.

Credits for the idea and an initial version of this patch go to
Shlomi Gutman <shlomi at voicenter.com>.




More information about the Devel mailing list