[OpenSIPS-Devel] [opensips] event_route: opensips fails to start due to hardcoded routes for events (#334)
Ovidiu Sas
notifications at github.com
Mon Sep 15 18:24:07 CEST 2014
Routes for handling events are require to have the same name as the event that is subscribed to it.
The following config works fine:
```
startup_route{
subscribe_event("E_CORE_THRESHOLD", "route:E_CORE_THRESHOLD");
}
event_route[E_CORE_THRESHOLD] {
xlog("L_INFO", "E_CORE_THRESHOLD\n");
}
```
This config doesn't:
````
startup_route{
subscribe_event("E_CORE_THRESHOLD", "route:E_CORE_THRESHOLD_ROUTE");
}
...
event_route[E_CORE_THRESHOLD_ROUTE] {
xlog("L_INFO", "E_CORE_THRESHOLD_ROUTE\n");
}
```
ERROR:event_route:child_init: Event E_CORE_THRESHOLD_ROUTE not registered
ERROR:core:init_mod_child: failed to initializing module event_route, rank 1
---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/334
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20140915/1fc34e5c/attachment.htm>
More information about the Devel
mailing list