<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.StileMessaggioDiPostaElettronica18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=IT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Ciao,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>i read INVITE from the sniffer and the Displayname is unchanged.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I don’t have errors message back.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I don’t know what i’m missing. Is there some working code sample i can copy to test it?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thank you,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Stefano.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Segoe UI","sans-serif";mso-fareast-language:IT'>Da:</span></b><span style='font-size:10.0pt;font-family:"Segoe UI","sans-serif";mso-fareast-language:IT'> Henning Westerholt [mailto:hw@skalatan.de] <br><b>Inviato:</b> venerd́ 5 giugno 2020 12:33<br><b>A:</b> Kamailio (SER) - Users Mailing List<br><b>Cc:</b> Stefano Larosa<br><b>Oggetto:</b> RE: [SR-Users] How to overwrite DisplayName<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=DE>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=DE><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>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?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Henning<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-GB>-- <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Henning Westerholt – </span><span lang=DE><a href="https://skalatan.de/blog/"><span lang=EN-GB style='color:#0563C1'>https://skalatan.de/blog/</span></a></span><span lang=EN-GB><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Kamailio services – </span><span lang=DE><a href="https://gilawa.com/"><span lang=EN-GB style='color:#0563C1'>https://gilawa.com</span></a> </span><span lang=EN-GB><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='margin-left:35.4pt'><b><span lang=DE style='mso-fareast-language:DE'>From:</span></b><span lang=DE style='mso-fareast-language:DE'> sr-users <sr-users-bounces@lists.kamailio.org> <b>On Behalf Of </b>Stefano Larosa<br><b>Sent:</b> Friday, June 5, 2020 12:06 PM<br><b>To:</b> sr-users@lists.kamailio.org<br><b>Subject:</b> [SR-Users] How to overwrite DisplayName<o:p></o:p></span></p></div></div><p class=MsoNormal style='margin-left:35.4pt'><span lang=DE><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'>Hi and first of all thanks for your amazing work.<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'>I have a kamailio 5.1.1 and i need to change the DisplayName before sending INVITE to  another Asterisk server.<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'>I need that <o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'>“Sergio”<<a href="mailto:+33558700000@80.169.227.18">+33558700000@80.169.227.18</a>> <o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'>Becomes<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'>“Simona”<<a href="mailto:+33558700000@80.169.227.18">+33558700000@80.169.227.18</a>> <o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'>I’ve tried just changing $fn value: <o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'>$fn=”Simona”<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'>Or using <o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'>uac_replace_from("Simona ","");<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'>But INVITE msg is always<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'>From: "Sergio"<<a href="sip:+33558700000@80.169.227.18;transport=UDP">sip:+33558700000@80.169.227.18;transport=UDP</a>>;tag=1ac9e066<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'>I’ve tried this options in different position in kamailio.cfg but i can figure out the problem.<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'>Do you have any suggest?<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'>Thank you,<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'>Stefano.<o:p></o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p></div></body></html>