If I set $ru in config file and then print $ru to log, the new value is printed. If I do the same with $fu, the old value is printed.
I haven't found in Pseudo-Variables Wiki any documentation about this. Does it exist somewhere else?
-- Juha
Operations to change the headers and body are not applied immediately:
* https://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers...
Daniel
On 20.03.22 07:32, Juha Heinanen wrote:
If I set $ru in config file and then print $ru to log, the new value is printed. If I do the same with $fu, the old value is printed.
I haven't found in Pseudo-Variables Wiki any documentation about this. Does it exist somewhere else?
-- Juha
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Daniel-Constantin Mierla writes:
Operations to change the headers and body are not applied immediately:
* https://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers...
OK, got it. What makes $ru special, i.e., why that is applied immediately?
-- Juha
Hello Juha,
The first line of a SIP request is parsed and kept separately from the rest of the SIP message. Because of this, it is easy to apply instant changes to it. This is what I remember checking the code long time ago, it might not be 100% accurate.
Hope this helps, -ovidiu
On Mon, Mar 21, 2022 at 7:15 AM Juha Heinanen jh@tutpro.com wrote:
Daniel-Constantin Mierla writes:
Operations to change the headers and body are not applied immediately:
https://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers...
OK, got it. What makes $ru special, i.e., why that is applied immediately?
-- Juha
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Perhaps it would best to explicitly tell on Pseudo-Variables Wiki page, which R/W pseudo "variables" are not really variables in the sense that setting of the value does not change its value.
Are there others than these three: $fd, $fu, $fU. If not, I can add a note to their entries.
-- Juha
Should be the same for To header.
On Tue, Mar 22, 2022 at 10:02 Juha Heinanen jh@tutpro.com wrote:
Perhaps it would best to explicitly tell on Pseudo-Variables Wiki page, which R/W pseudo "variables" are not really variables in the sense that setting of the value does not change its value.
Are there others than these three: $fd, $fu, $fU. If not, I can add a note to their entries.
-- Juha
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Thank you!
-ovidiu
On Tue, Mar 22, 2022 at 12:22 PM Juha Heinanen jh@tutpro.com wrote:
Juha Heinanen writes:
I looked at pv_core.c, and based on that these are header R/W variables:
$tu, $tU, $td, $tn, $fu, $fU, $fd, $fn
I updated the Wiki page accordingly.
-- Juha
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: