Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 771b4c8e6889392a5cdff11e18ed6e214e8b1342
      
https://github.com/OpenSIPS/opensips/commit/771b4c8e6889392a5cdff11e18ed6e214e8b1342
  Author: Liviu Chircu <li...@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] {
  ...
}



_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to