[OpenSIPS-Devel] [OpenSIPS/opensips] 78dd04: Function fixups: Include a backtrace on runtime er...

Liviu Chircu noreply at github.com
Thu Apr 29 10:09:32 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 78dd040af361c37c50fb5b6380b41718bd5ee555
      https://github.com/OpenSIPS/opensips/commit/78dd040af361c37c50fb5b6380b41718bd5ee555
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-04-29 (Thu, 29 Apr 2021)

  Changed paths:
    M action.c
    M cfg.y
    M cfg_pp.c
    M cfg_pp.h

  Log Message:
  -----------
  Function fixups: Include a backtrace on runtime errors

Old behavior:

ERROR:core:get_cmd_fixups: Variable in param [1] is not an integer
ERROR:core:do_action: Failed to get fixups for command
  <mf_process_maxfwd_header>

New behavior:

ERROR:core:get_cmd_fixups: Variable in param [1] is not an integer
ERROR:core:do_action: Failed to get fixups for command
  <mf_process_maxfwd_header> in cfg-tests/aaa-diameter.cfg, line 66:
       $var(mf) = "10";

       if (!mf_process_maxfwd_header($var(mf))) {
       ^
               sl_send_reply(483, "Too Many Hops");
               exit;

Credits to Kingsley Tart for the report!
Related to #2492





More information about the Devel mailing list