[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-25 Thread Daniel-Constantin Mierla via sr-dev
Closing this one, further discussions should be done to: - https://github.com/kamailio/kamailio/pull/3571 -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/3569#issuecomment-1733614719 You are receiving this because you are subscribed to this

[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-25 Thread Daniel-Constantin Mierla via sr-dev
Closed #3569. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/3569#event-10461987048 You are receiving this because you are subscribed to this thread. Message ID: ___ Kamailio (SER) - Development Mailing

[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-25 Thread schiramchetty via sr-dev
> I already created the code at #3571 Please test it Thanks for the update, We will test this code and will get back to you. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/3569#issuecomment-1733265837 You are receiving this because you are

[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-19 Thread Victor Seva
I already created the code at https://github.com/kamailio/kamailio/pull/3571 Please test it -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/3569#issuecomment-1725135478 You are receiving this because you are subscribed to this thread. Message ID:

[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-19 Thread schiramchetty
> @schiramchetty > > When you say you're only copying ... are you assuming that the length is > always the same? > > ``` > #define SCA_STR_COPY(str1, str2) \ > memcpy((str1)->s, (str2)->s, (str2)->len); \ > (str1)->len = (str2)->len; > ``` > > SCA_STR_COPY doesn't do

[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-18 Thread Victor Seva
@schiramchetty when you say you're only copying ... are you assuming that the length is always the same? ``` #define SCA_STR_COPY(str1, str2) \ memcpy((str1)->s, (str2)->s, (str2)->len); \ (str1)->len = (str2)->len; ``` SCA_STR_COPY doesn't do any magic. You

[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-18 Thread schiramchetty
> Hi, what is going to happen if the length of updated RR is bigger than the > reserved memory at saved RR? And in the case of RR being the same value? Hi @linuxmaniac, The updated RR and saved RR variables are updated by kamailio itself when receiving any sca subscription message. This is

[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-15 Thread Victor Seva
Hi, what is going to happen if the length of updated RR is bigger than the reserved memory at saved RR? And in the case of RR being the same value? -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/3569#issuecomment-1720859885 You are receiving this

[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-15 Thread schiramchetty
> @miconda I think the fix is not really good since is not taking care of > memory and if the previous value is equal. Created a new PR with a possible > solution. @schiramchetty please take a look and test it Hi @linuxmaniac, Thanks for your feedback. We are not allocating any new memory for

[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-14 Thread Victor Seva
@miconda I think the fix is not really good since is not taking care of memory and if the previous value is equal. Created a new PR with a possible solution. @schiramchetty please take a look and test it -- Reply to this email directly or view it on GitHub:

[sr-dev] Re: [kamailio/kamailio] New record-route is not updating when the device network is broken/power-off & on (sca_subscribe.c). (PR #3569)

2023-09-14 Thread Daniel-Constantin Mierla
Thanks for the PR! A few remarks though: - the commit has to be for development version (git master branch), not 5.5 branch. It will be then backported if it is a bug. - 5.5 series is actually end of maintenance (its last release was out a while ago: