Changing host part of the "TO&quo...

  • Pavel Despot

    Pavel Despot - 2010-06-14

    Hello, everyone.

    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:

            if (is_method("REGISTER"))

    As always, help is very much appreciated.

    Best regards,

  • Bogdan-Andrei Iancu

    Hi Pavel,

    $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.



Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks