[OpenSIPS-Devel] [OpenSIPS/opensips] 771b4c: event_route: Auto-register unknown events before s...

Liviu Chircu noreply at github.com
Mon Nov 28 12:25:57 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 771b4c8e6889392a5cdff11e18ed6e214e8b1342
      https://github.com/OpenSIPS/opensips/commit/771b4c8e6889392a5cdff11e18ed6e214e8b1342
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-11-28 (Mon, 28 Nov 2022)

  Changed paths:
    M route.c

  Log Message:
  -----------
  event_route: Auto-register unknown events before startup

This patch makes it so script writers don't have to write raise_event
boilerplate code when using the "raise_event" MI function with a custom
event, for example:

route {
  ...

  exit;
  raise_event("E_MY_MI_EVENT"); # hack for registering the custom event
  ^^^^^^^
       this is no longer necessary!
}

event_route [E_MY_MI_EVENT] {
  ...
}





More information about the Devel mailing list