Re: [SR-Users] subst + insert_hf issue

2015-07-03 Thread Daniel-Constantin Mierla
ts.sip-router.org] *De la > part de* Daniel-Constantin Mierla > *Envoyé :* jeudi 2 juillet 2015 08:39 > *À :* Kamailio (SER) - Users Mailing List > *Objet :* Re: [SR-Users] subst + insert_hf issue > > > > Hello, > > if you just want to update the dispay name in From header, y

Re: [SR-Users] subst + insert_hf issue

2015-07-03 Thread Igor Potjevlesch
lid> " would be more safety? Regards, Igor. De : sr-users [mailto:sr-users-boun...@lists.sip-router.org] De la part de Daniel-Constantin Mierla Envoyé : jeudi 2 juillet 2015 08:39 À : Kamailio (SER) - Users Mailing List Objet : Re: [SR-Users] subst + insert_hf issue Hello, if you j

Re: [SR-Users] subst + insert_hf issue

2015-07-01 Thread Daniel-Constantin Mierla
Hello, if you just want to update the dispay name in From header, you can use: $fn = "Anonymous"; To avoid conflicts in replacements, use mag_apply_changes() after first changes -- in your case, after subst(...) -- read carefully the docs for msg_apply_changes() to understand its impact and limi

[SR-Users] subst + insert_hf issue

2015-07-01 Thread Igor Potjevlesch
Hello, I'm doing a subst on the From header for some particular cases, like this one: subst('/^(From|f):(.*):5060>;tag=3fdce0-a658bfa-13c4-50029-55941ccd-5eab9369-55941ccd\r\n I can't reproduce. The only potential explanation is that this impact the User-Agent that have the From at the