[sr-dev] [kamailio] evapi event_route segfault crash when using $sel() to access custom options in cfg (#287)

zxcpoiu notifications at github.com
Mon Aug 24 06:51:32 CEST 2015


**Nice, it works and won't crash anymore. Thanks!**

For the further readers who has same problem and couldn't apply this patch temporarily,
**below is my workaround before this patch:**

1. load htable module
2. wrap a event route using htable:mod-init exported from htable
3. use $shv to substitute $sel cfg variables as cross-process global setting
4. then you can use $shv in un-patched evapi event_route
( or other modules which has similar situation, especially when async jobs to a non-main-sip process.  )

```
loadmodule "htable.so"

event_route[htable:mod-init] {
    $shv(MYIP) = $sel(cfg_get.self.MYIP);
}

```



---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/287#issuecomment-134035171
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150823/02d42e4c/attachment.html>


More information about the sr-dev mailing list