Yes!
Changing version versione from 5.1.1 to 5.2.7 the problem is solved.
Have a nice day.
Thank you!
Da: Henning Westerholt [mailto:hw@skalatan.de]
Inviato: venerdì 5 giugno 2020 13:57
A: Stefano Larosa; 'Kamailio (SER) - Users Mailing List'
Oggetto: RE: [SR-Users] How to overwrite DisplayName
Hello,
understand. I remember that I fixed some bugs for version based on 5.2 and 5.3 branch related to uac_replace_from/to. I would suggest upgrading to the latest 5.2 or 5.3 version, before trying to analyse it for 5.1.1, which is end of life.
You can find Debian packages at deb.kamailio.org and RPM packages at rpm.kamailio.org.
Cheers,
Henning
From: Stefano Larosa <stefano.larosa@10993.it>
Sent: Friday, June 5, 2020 1:19 PM
To: Henning Westerholt <hw@skalatan.de>; 'Kamailio (SER) - Users Mailing List' <sr-users@lists.kamailio.org>
Subject: R: [SR-Users] How to overwrite DisplayName
Ciao,
i read INVITE from the sniffer and the Displayname is unchanged.
I don’t have errors message back.
I don’t know what i’m missing. Is there some working code sample i can copy to test it?
Thank you,
Stefano.
Da: Henning Westerholt [mailto:hw@skalatan.de]
Inviato: venerdì 5 giugno 2020 12:33
A: Kamailio (SER) - Users Mailing List
Cc: Stefano Larosa
Oggetto: RE: [SR-Users] How to overwrite DisplayName
Hello,
uac_replace_from should generally work. Have you checked the INVITE that is send out from Kamailio? It will be not visible (normally) inside the script. Do you get an error message in Kamailio log after calling this cmd?
Cheers,
Henning
From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Stefano Larosa
Sent: Friday, June 5, 2020 12:06 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] How to overwrite DisplayName
Hi and first of all thanks for your amazing work.
I have a kamailio 5.1.1 and i need to change the DisplayName before sending INVITE to another Asterisk server.
I need that
“Sergio”<+33558700000@80.169.227.18>
Becomes
“Simona”<+33558700000@80.169.227.18>
I’ve tried just changing $fn value:
$fn=”Simona”
Or using
uac_replace_from("Simona ","");
But INVITE msg is always
From: "Sergio"<sip:+33558700000@80.169.227.18;transport=UDP>;tag=1ac9e066
I’ve tried this options in different position in kamailio.cfg but i can figure out the problem.
Do you have any suggest?
Thank you,
Stefano.