On 12/3/09 11:00 PM, Klaus Darilion wrote:
Robert R wrote:
Hi,
I simply trying to modify URI and FROM headers as follow. tcpdump packet capture shows the values are changed for both URI and FROM headers. However, the syslog only shows the new value for URI and not for FROM header.
Changes to the message (except RURI and DURI) are not visible in the routing script, as the changes are applied to message immediately before the message sent out.
How can I verify new value in FROM header in the log file?
You can't.
With Kamailio 3.0 that is possible after calling msg_apply_changes():
http://kamailio.org/docs/modules/3.0.x/modules_k/textops.html#id2513325
Beware it is new, use it carefully (don't abuse use of it) and report any issue you discover.
Cheers, Daniel
# main request routing logic route { $rU = avp(i:1); $rd = avp(i:2); .... uac_replace_from("$avp(i:3)");
xlog ("fu after perl: $fu"); xlog ("ru after perl: $ru"); ...
}
Thanks, Rob
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users