<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">My guess is the lack of quoting is due to the SIP stack and not anything you are doing with your commands. The Name portion of a Name-Addr spec is only required to be quoted if certain special characters (most
 notably spaces) are present. Otherwise the quotes are not required. I’m guessing OpenSIPS’ SIP stack is just being efficient and only adding quotes when required. I’m not sure if that is configurable, but I’m not aware of any setting for it.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">My guess is that if you were to try this:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">$avp(ds)="a b c";<br>
uac_replace_from($avp(ds),"");<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">You would find that the resulting output name would have quotes as required.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">However, i</span><span style="font-size:11.0pt">t should not matter as if quotes are not required then the receiving SIP agent should be fine with them not being present. May I ask why it is important to you
 that the quotes be present? Is it causing an issue with some non-compliant device?</span><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:black">Ben Newlin </span>
<span style="font-size:11.0pt"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Users <users-bounces@lists.opensips.org> on behalf of Kevin Wormington <kworm@missouri-telecom.com><br>
<b>Date: </b>Wednesday, March 9, 2022 at 1:26 PM<br>
<b>To: </b>OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Subject: </b>Re: [OpenSIPS-Users] Users Digest, Vol 164, Issue 6<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt">AVP is for sure supported on 3.1.x and up.  We use the following:<br>
<br>
uac_replace_from($avp(caller_cnam),"”);<br>
<br>
> On Mar 8, 2022, at 8:12 AM, Alain Bieuzent <alain.bieuzent@free.fr> wrote:<br>
> <br>
> Hmm , not sure $avp is supported can you try with $var<br>
>  <br>
> $var(ds)="abc";<br>
>         uac_replace_from($var(ds),""); <br>
> <br>
>  <br>
> De : Users <users-bounces@lists.opensips.org> au nom de Vinayak Makwana <vinayak.makwana@ecosmob.com><br>
> Répondre à : OpenSIPS users mailling list <users@lists.opensips.org><br>
> Date : mardi 8 mars 2022 à 14:01<br>
> À : <users@lists.opensips.org><br>
> Objet : Re: [OpenSIPS-Users] Users Digest, Vol 164, Issue 6<br>
>  <br>
> Hello Alain Bieuzent<br>
> <br>
> I tried with the uac_replace_from() function also but not getting the proper result.<br>
> <br>
> Here's my input & output result:<br>
> INPUT:      From:"abc"<sip:username@x.x.x.x;transport=UDP>;tag=6a8eda3f<br>
> OUTPUT:  From:abc<sip:username@x.x.x.x;transport=UDP>;tag=6a8eda3f<br>
> <br>
> Here's my logic: <br>
> $avp(ds)="abc";<br>
>         uac_replace_from($avp(ds),""); <br>
> <br>
> So Can you please tell me what is an issue why not getting quotes<br>
> <br>
> Thanks in advance <br>
> Vinayak Makwana<br>
>  <br>
> On Tue, Mar 8, 2022 at 5:30 PM <users-request@lists.opensips.org> wrote:<br>
>> Send Users mailing list submissions to<br>
>>         users@lists.opensips.org<br>
>> <br>
>> To subscribe or unsubscribe via the World Wide Web, visit<br>
>>         <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">
https://protect-us.mimecast.com/s/kccUCwpRk6HGzVXnLIVkj4Y?domain=lists.opensips.org</a><br>
>> or, via email, send a message with subject or body 'help' to<br>
>>         users-request@lists.opensips.org<br>
>> <br>
>> You can reach the person managing the list at<br>
>>         users-owner@lists.opensips.org<br>
>> <br>
>> When replying, please edit your Subject line so it is more specific<br>
>> than "Re: Contents of Users digest..."<br>
>> <br>
>> <br>
>> Today's Topics:<br>
>> <br>
>>    1. Header manipulation (Vinayak Makwana)<br>
>>    2. Re: Header manipulation (Alain Bieuzent)<br>
>> <br>
>> <br>
>> ----------------------------------------------------------------------<br>
>> <br>
>> Message: 1<br>
>> Date: Tue, 8 Mar 2022 16:11:12 +0530<br>
>> From: Vinayak Makwana <vinayak.makwana@ecosmob.com><br>
>> To: users@lists.opensips.org<br>
>> Subject: [OpenSIPS-Users] Header manipulation<br>
>> Message-ID:<br>
>>         <CAPHmyfzdYGNoJdxX1FFjfLxOZeGQUnuAPxbAv+t8H2YX+8qXCA@mail.gmail.com><br>
>> Content-Type: text/plain; charset="utf-8"<br>
>> <br>
>> Hello All,<br>
>> <br>
>> I want to replace uri-display in the FROM header using the avp_subst<br>
>> function. So, can anyone suggest a solution ?<br>
>> <br>
>> Here's My scenario:<br>
>> Main:->  From:"abc"<sip:username@x.x.x.x;transport=UDP>;tag=6a8eda3f<br>
>> After Changes ->  From:"pqrs"<sip:username@x.x.x.x<br>
>> ;transport=UDP>;tag=6a8eda3f<br>
>> <br>
>> Many Thanks<br>
>> Vinayak Makwana<br>
>> <br>
>> -- <br>
>> *Disclaimer*<br>
>> In addition to generic Disclaimer which you have agreed on our <br>
>> website, any views or opinions presented in this email are solely those of <br>
>> the originator and do not necessarily represent those of the Company or its <br>
>> sister concerns. Any liability (in negligence, contract or otherwise) <br>
>> arising from any third party taking any action, or refraining from taking <br>
>> any action on the basis of any of the information contained in this email <br>
>> is hereby excluded.<br>
>> <br>
>> <br>
>> <br>
>> *Confidentiality*<br>
>> This communication (including any <br>
>> attachment/s) is intended only for the use of the addressee(s) and contains <br>
>> information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, <br>
>> dissemination, distribution, or copying of this communication is <br>
>> prohibited. Please inform originator if you have received it in error.<br>
>> <br>
>> <br>
>> *Caution for viruses, malware etc.*<br>
>> This communication, including any <br>
>> attachments, may not be free of viruses, trojans, similar or new <br>
>> contaminants/malware, interceptions or interference, and may not be <br>
>> compatible with your systems. You shall carry out virus/malware scanning on <br>
>> your own before opening any attachment to this e-mail. The sender of this <br>
>> e-mail and Company including its sister concerns shall not be liable for <br>
>> any damage that may incur to you as a result of viruses, incompleteness of <br>
>> this message, a delay in receipt of this message or any other computer <br>
>> problems. <br>
>> -------------- next part --------------<br>
>> An HTML attachment was scrubbed...<br>
>> URL: <<a href="http://lists.opensips.org/pipermail/users/attachments/20220308/d383bf19/attachment-0001.html">http://lists.opensips.org/pipermail/users/attachments/20220308/d383bf19/attachment-0001.html</a>><br>
>> <br>
>> ------------------------------<br>
>> <br>
>> Message: 2<br>
>> Date: Tue, 08 Mar 2022 11:51:45 +0100<br>
>> From: Alain Bieuzent <alain.bieuzent@free.fr><br>
>> To: OpenSIPS users mailling list <users@lists.opensips.org><br>
>> Subject: Re: [OpenSIPS-Users] Header manipulation<br>
>> Message-ID: <FA2BF751-1E38-4780-AC7D-682CFE3384B4@free.fr><br>
>> Content-Type: text/plain; charset="utf-8"<br>
>> <br>
>> Hi Vinayak,<br>
>> <br>
>> <br>
>> <br>
>> Try with uac_replace_from([display],uri)<br>
>> <br>
>> <br>
>> <br>
>> Ragards<br>
>> <br>
>> <br>
>> <br>
>> De : Users <users-bounces@lists.opensips.org> au nom de Vinayak Makwana <vinayak.makwana@ecosmob.com><br>
>> Répondre à : OpenSIPS users mailling list <users@lists.opensips.org><br>
>> Date : mardi 8 mars 2022 à 11:43<br>
>> À : <users@lists.opensips.org><br>
>> Objet : [OpenSIPS-Users] Header manipulation<br>
>> <br>
>> <br>
>> <br>
>> Hello All,<br>
>> <br>
>> I want to replace uri-display in the FROM header using the avp_subst function. So, can anyone suggest a solution ?<br>
>> <br>
>> Here's My scenario:<br>
>> Main:->  From:"abc"<sip:username@x.x.x.x;transport=UDP>;tag=6a8eda3f <br>
>> After Changes ->  From:"pqrs"<sip:username@x.x.x.x;transport=UDP>;tag=6a8eda3f<br>
>> <br>
>> Many Thanks<br>
>> Vinayak Makwana<br>
>> <br>
>> <br>
>> <br>
>> Disclaimer<br>
>> <br>
>> In addition to generic Disclaimer which you have agreed on our website, any views or opinions presented in this email are solely those of the originator and do not necessarily represent those of the Company or its sister concerns. Any liability (in negligence,
 contract or otherwise) arising from any third party taking any action, or refraining from taking any action on the basis of any of the information contained in this email is hereby excluded.<br>
>> <br>
>> <br>
>> <br>
>> Confidentiality<br>
>> <br>
>> This communication (including any attachment/s) is intended only for the use of the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying of this communication is prohibited.
 Please inform originator if you have received it in error.<br>
>> <br>
>> <br>
>> <br>
>> Caution for viruses, malware etc.<br>
>> <br>
>> This communication, including any attachments, may not be free of viruses, trojans, similar or new contaminants/malware, interceptions or interference, and may not be compatible with your systems. You shall carry out virus/malware scanning on your own before
 opening any attachment to this e-mail. The sender of this e-mail and Company including its sister concerns shall not be liable for any damage that may incur to you as a result of viruses, incompleteness of this message, a delay in receipt of this message or
 any other computer problems. <br>
>> <br>
>> _______________________________________________ Users mailing list Users@lists.opensips.org
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">
https://protect-us.mimecast.com/s/kccUCwpRk6HGzVXnLIVkj4Y?domain=lists.opensips.org</a>
<br>
>> <br>
>> -------------- next part --------------<br>
>> An HTML attachment was scrubbed...<br>
>> URL: <<a href="http://lists.opensips.org/pipermail/users/attachments/20220308/75aa149d/attachment-0001.html">http://lists.opensips.org/pipermail/users/attachments/20220308/75aa149d/attachment-0001.html</a>><br>
>> <br>
>> ------------------------------<br>
>> <br>
>> Subject: Digest Footer<br>
>> <br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> Users@lists.opensips.org<br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">
https://protect-us.mimecast.com/s/kccUCwpRk6HGzVXnLIVkj4Y?domain=lists.opensips.org</a><br>
>> <br>
>> <br>
>> ------------------------------<br>
>> <br>
>> End of Users Digest, Vol 164, Issue 6<br>
>> *************************************<br>
>  <br>
> Disclaimer<br>
> In addition to generic Disclaimer which you have agreed on our website, any views or opinions presented in this email are solely those of the originator and do not necessarily represent those of the Company or its sister concerns. Any liability (in negligence,
 contract or otherwise) arising from any third party taking any action, or refraining from taking any action on the basis of any of the information contained in this email is hereby excluded.<br>
>  <br>
> Confidentiality<br>
> This communication (including any attachment/s) is intended only for the use of the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying of this communication is prohibited.
 Please inform originator if you have received it in error.<br>
>  <br>
> Caution for viruses, malware etc.<br>
> This communication, including any attachments, may not be free of viruses, trojans, similar or new contaminants/malware, interceptions or interference, and may not be compatible with your systems. You shall carry out virus/malware scanning on your own before
 opening any attachment to this e-mail. The sender of this e-mail and Company including its sister concerns shall not be liable for any damage that may incur to you as a result of viruses, incompleteness of this message, a delay in receipt of this message or
 any other computer problems. <br>
> _______________________________________________ Users mailing list Users@lists.opensips.org
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">
https://protect-us.mimecast.com/s/kccUCwpRk6HGzVXnLIVkj4Y?domain=lists.opensips.org</a><br>
> _______________________________________________<br>
> Users mailing list<br>
> Users@lists.opensips.org<br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">
https://protect-us.mimecast.com/s/kccUCwpRk6HGzVXnLIVkj4Y?domain=lists.opensips.org</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
Users@lists.opensips.org<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></span></p>
</div>
</div>
</body>
</html>