[SR-Users] $var assignment broken on master ?

Chaigneau, Nicolas nicolas.chaigneau at capgemini.com
Tue Nov 9 13:03:35 CET 2021


The issue is fixed after reverting this commit.


De : Daniel-Constantin Mierla <miconda at gmail.com>
Envoyé : mardi 9 novembre 2021 11:41


there was a recent change trying to catch the case when setting the variable to a null string (it was reported to bug tracker as a side effect of operations done by other module, maybe lost?!?):

  * https://github.com/kamailio/kamailio/commit/6eb67eaa4fc27d1eb7da7b2b674ffe8e7f86ecbc

Can you try to revert and see if it fixes? Right now I don't have the time to test.

On 09.11.21 10:10, Chaigneau, Nicolas wrote:

I’ve just built Kamailio from the master.

Assigning a value to a « var » doesn’t seem to work anymore…
This works with Kamailio 5.5.2.

E.g. :

$var(my_var) = "hello";
xlog("L_WARN", "var(my_var): $var(my_var)\n");

# => This shows value 0.


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20211109/5534808e/attachment.htm>

More information about the sr-users mailing list