Re: [OpenSIPS-Users] OpenSIPS 3.1 - raise_event() crashes OpenSIPS with segmentation fault

2020-07-28 Thread Mark Allen
Hi Vlad - thanks for that, it's very helpful All the best Mark On Tue, 28 Jul 2020 at 21:40, Vlad Patrascu wrote: > Hi Mark, > > thanks for the report! I have pushed a fix for the crash. > > I've also updated the documentation to be more clear about how > raise_event() should be used and

Re: [OpenSIPS-Users] OpenSIPS 3.1 - raise_event() crashes OpenSIPS with segmentation fault

2020-07-28 Thread Vlad Patrascu
Hi Mark, thanks for the report! I have pushed a fix for the crash. I've also updated the documentation to be more clear about how raise_event() should be used and the changes from 3.0. Basically, you don't have to necessarily pass both AVP parameters in 3.1, but if you want to pass only the

Re: [OpenSIPS-Users] OpenSIPS 3.1 - raise_event() crashes OpenSIPS with segmentation fault

2020-07-28 Thread Mark Allen
:) On Tue, 28 Jul 2020 at 15:50, Stas Kobzar wrote: > I mean, you are welcome, Mark :) sorry > > On Tue, Jul 28, 2020 at 10:45 AM Mark Allen wrote: > >> [SOLVED] >> >> Hi Stas - good call! It's a change in behaviour from 3.0. >> >> In 3.0 documentation says... >> >> The next two parameters

Re: [OpenSIPS-Users] OpenSIPS 3.1 - raise_event() crashes OpenSIPS with segmentation fault

2020-07-28 Thread Stas Kobzar
I mean, you are welcome, Mark :) sorry On Tue, Jul 28, 2020 at 10:45 AM Mark Allen wrote: > [SOLVED] > > Hi Stas - good call! It's a change in behaviour from 3.0. > > In 3.0 documentation says... > > The next two parameters should be AVPs and they are optional. If only > one is present, it

Re: [OpenSIPS-Users] OpenSIPS 3.1 - raise_event() crashes OpenSIPS with segmentation fault

2020-07-28 Thread Stas Kobzar
Glad it helped. You are welcome, Allen On Tue, Jul 28, 2020 at 10:45 AM Mark Allen wrote: > [SOLVED] > > Hi Stas - good call! It's a change in behaviour from 3.0. > > In 3.0 documentation says... > > The next two parameters should be AVPs and they are optional. If only > one is present, it

Re: [OpenSIPS-Users] OpenSIPS 3.1 - raise_event() crashes OpenSIPS with segmentation fault

2020-07-28 Thread Mark Allen
[SOLVED] Hi Stas - good call! It's a change in behaviour from 3.0. In 3.0 documentation says... The next two parameters should be AVPs and they are optional. If only one is present, it should contain the values attached to the event. In 3.1 it removes mention of the behaviour if only one

Re: [OpenSIPS-Users] OpenSIPS 3.1 - raise_event() crashes OpenSIPS with segmentation fault

2020-07-28 Thread Stas Kobzar
Hi Allen, Did you try with two parameters: name, value? *$avp(keys) = "registered";* $avp(values) = "true"; xlog("Raised E_WFC_REGISTERED $avp(values)"); raise_event("E_WFC_REGISTERED", *$avp(keys)*, $avp(values)); I know they are said to be optional in the

[OpenSIPS-Users] OpenSIPS 3.1 - raise_event() crashes OpenSIPS with segmentation fault

2020-07-28 Thread Mark Allen
We're upgrading from 3.0 to 3.1. Everything seems ok except we get a weird error. We subscribe a dynamic event... startup_route { subscribe_event("E_WFC_REGISTERED", "udp:127.0.0.1:"); } which we can see works from /var/log/syslog... event_datagram:mod_init: initializing