Ok, I'm ready for the comments… :) For the life of me, I can't figure out how to change anything in the TO header.
I'm able to tweak the "FROM" using the uac_replace_from function, I can change the Request URI using the rewritehost function, but I can't figure out how to change the TO header!
I can't find a function that does it and, according to the Scripting Variables page, the $tu variable is read only (I even tried it and no luck).
I'm sure this is simple, but I just can't figure it out.
Here's my latest attempt:
As always, help is very much appreciated.
$tu is a read-only variable :)
But try the uac_replace_to() function, similar to uac_replace_from() - it is available starting with 1.6.