The code looks ok for setting the variable. Can you provide all logs printed by kamailio
with debug=3 in config, from the moment of receiving the sip message till its end of
processing, when this case is reproduce?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2382#issuecomment-651869375