Hi,
thank you very much for both answers. I did not know the pseudo variable magic, that it is
possible to do a
$tU = "newvalue"
Amazing!
Best regards,
Bernhard Suttner
----- Original Message -----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
To: Bernhard Suttner [mailto:bernhard.suttner@winet.ch]
Cc: sr-users(a)lists.sip-router.org
Sent: Mon, 03 Jan 2011 18:42:47 +0100
Subject: Re: [SR-Users] Change the SIP-To-User
Am 03.01.2011 16:51, schrieb Bernhard Suttner:
Hi,
what is the best way to replace the userpart of the SIP-To URI with the
content of
a pseudo variable?
textops module:
e.g. use
http://www.kamailio.org/docs/modules/3.1.x/modules_k/textops.html#id2910302
you could also remove_hf("to") and add a new header
append_hf("To: ...");
some devices do not like if the To gets changed. In this case you have
to reverse the change in the responses and keep track of cahnges for
in-dialog messages.
Anyway - at the least the totag must not be changed (if present)
regards
klaus