[SR-Users] Change the SIP-To-User
Bernhard Suttner
bernhard.suttner at winet.ch
Mon Jan 3 21:00:44 CET 2011
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 at pernau.at]
To: Bernhard Suttner [mailto:bernhard.suttner at winet.ch]
Cc: sr-users at 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
>
More information about the sr-users
mailing list