Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Daniel-Constantin Mierla
On 1/7/11 10:08 PM, Ovidiu Sas wrote: On Fri, Jan 7, 2011 at 3:59 PM, Klaus Darilion wrote: Bernhard Suttner wrote: Hi, thanks to all responses. I wonder if there is a function to modify the To/From Header stateful. I mean, change the TO header in the INVITE to A and then the 200 OK (for e

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Ovidiu Sas
On Fri, Jan 7, 2011 at 3:59 PM, Klaus Darilion wrote: > Bernhard Suttner wrote: >> >> Hi, >> >> thanks to all responses. I wonder if there is a function to modify the >> To/From Header stateful. I mean, change the TO header in the INVITE to A and >> then the 200 OK (for example) reverse the change

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Bernhard Suttner
net.ch] Cc: sr-users@lists.sip-router.org Sent: Fri, 07 Jan 2011 21:59:55 +0100 Subject: Re: [SR-Users] Change the SIP-To-User > Bernhard Suttner wrote: > > Hi, > > > > thanks to all responses. I wonder if there is a function to modify the > To/From Header stateful. I mean,

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Klaus Darilion
Bernhard Suttner wrote: Hi, thanks to all responses. I wonder if there is a function to modify the To/From Header stateful. I mean, change the TO header in the INVITE to A and then the 200 OK (for example) reverse the change back to the previous value to B? but the "magic" $tU is amazing...

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Bernhard Suttner
, Bernhard - Original Message - From: Olle E. Johansson [mailto:o...@edvina.net] To: Alex Balashov [mailto:abalas...@evaristesys.com] Cc: sr-users@lists.sip-router.org Sent: Fri, 07 Jan 2011 11:09:41 +0100 Subject: Re: [SR-Users] Change the SIP-To-User > > 7 jan 2011 kl. 10.55 skr

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Olle E. Johansson
7 jan 2011 kl. 10.55 skrev Alex Balashov: > On 01/07/2011 04:52 AM, Carsten Bock wrote: > >> the trick, when using "uac_replace_from" is, that it will >> "automagically" change subsequest requests. This is required in order >> to work with most SIP-Endpoints. >> If you just want to change the "F

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Alex Balashov
On 01/07/2011 04:52 AM, Carsten Bock wrote: the trick, when using "uac_replace_from" is, that it will "automagically" change subsequest requests. This is required in order to work with most SIP-Endpoints. If you just want to change the "From" for the current request, that is fine. I understand

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Carsten Bock
Hi, the trick, when using "uac_replace_from" is, that it will "automagically" change subsequest requests. This is required in order to work with most SIP-Endpoints. If you just want to change the "From" for the current request, that is fine. Carsten 2011/1/7 Alex Balashov : > Daniel, > > On 01/

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Alex Balashov
On 01/07/2011 04:51 AM, Daniel-Constantin Mierla wrote: On 1/7/11 10:37 AM, Alex Balashov wrote: Daniel, On 01/07/2011 04:36 AM, Daniel-Constantin Mierla wrote: Since 3.1.0, From and To header attributes: display name, username and domain are writable via PVs, with the constraint stated abo

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Daniel-Constantin Mierla
On 1/7/11 10:37 AM, Alex Balashov wrote: Daniel, On 01/07/2011 04:36 AM, Daniel-Constantin Mierla wrote: Since 3.1.0, From and To header attributes: display name, username and domain are writable via PVs, with the constraint stated above. I can write to $fU/$fu/$fd without having to use ua

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Alex Balashov
Daniel, On 01/07/2011 04:36 AM, Daniel-Constantin Mierla wrote: Since 3.1.0, From and To header attributes: display name, username and domain are writable via PVs, with the constraint stated above. I can write to $fU/$fu/$fd without having to use uac_replace_from()? Thanks, -- Alex Balashov

Re: [SR-Users] Change the SIP-To-User

2011-01-07 Thread Daniel-Constantin Mierla
Hello, On 1/3/11 6:42 PM, Klaus Darilion wrote: 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.

Re: [SR-Users] Change the SIP-To-User

2011-01-03 Thread Bernhard Suttner
rd Suttner [mailto:bernhard.sutt...@winet.ch] Cc: sr-users@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 t

Re: [SR-Users] Change the SIP-To-User

2011-01-03 Thread Klaus Darilion
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") an