[OpenSIPS-Devel] [opensips] Segfault if you try access a core variable within an event route 2.1 (#817)

Bogdan Andrei IANCU notifications at github.com
Tue Mar 15 22:05:24 CET 2016


@telephone-man , you are right, whatever you do from script, it should not crash.
The problem is related to $si - you should not use message related variables from an event route (as you do not actually have a sip message here). but, once again, it should not crash.
The solutions are - fix the bogus crash ($si does not expect for internal ip_addr2a() to fail) or, even more, to pre-populate the "fake" msg with some dummy IPs (but I do not like this as it covers a bogus usage -> like trying to use some variable outside their context)

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/817#issuecomment-197018717
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160315/e35218bf/attachment.htm>


More information about the Devel mailing list