<div dir="ltr">change_reply_status works. I managed to change the code. e.g. 200 to 201<br><div>it turned out to change Reason. but two spaces still remain. <br></div><div>func_replace will check the whole message every time. How will this affect productivity?<br></div><div>and whether it will check the status-line?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 14 февр. 2020 г. в 20:11, Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com">Ben.Newlin@genesys.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_-7894937601617436821WordSection1">
<p class="MsoNormal">I couldn’t find it in the documentation, but I am pretty sure that change_reply_status will not work on a 2xx response as a proxy cannot change those types of responses. You would have to be using B2BUA to do that.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I think your best bet would be to try one of the functions in the textops module [1], possibly replace() [2].<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[1] - <a href="https://opensips.org/docs/modules/2.4.x/textops.html" target="_blank">
https://opensips.org/docs/modules/2.4.x/textops.html</a><u></u><u></u></p>
<p class="MsoNormal">[2] - <a href="https://opensips.org/docs/modules/2.4.x/textops.html#func_replace" target="_blank">
https://opensips.org/docs/modules/2.4.x/textops.html#func_replace</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:black">Ben Newlin </span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of Антон Ершов <<a href="mailto:suharik71@gmail.com" target="_blank">suharik71@gmail.com</a>><br>
<b>Reply-To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Date: </b>Friday, February 14, 2020 at 12:01 PM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Subject: </b>Re: [OpenSIPS-Users] rewrite status-line<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I understand correctly that on my side I can not fix this problem?<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">пт, 14 февр. 2020 г. в 17:17, Антон Ершов <<a href="mailto:suharik71@gmail.com" target="_blank">suharik71@gmail.com</a>>:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Roboto;color:rgb(60,64,67);background:white">They can not</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">пт, 14 февр. 2020 г., 17:10 johan <<a href="mailto:johan@democon.be" target="_blank">johan@democon.be</a>>:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<p>To me 200 OK is perfectly valid. The operator should fix this at his side. <u></u>
<u></u></p>
<div>
<p class="MsoNormal">On 14.02.20 15:01, Антон Ершов wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<p class="MsoNormal">Hello friends!<u></u><u></u></p>
<div>
<p class="MsoNormal">we have final equipment that does not meet 200OK correctly. it adds an extra space between 200 and OK. from the point of view of rfc is not very scary. but there is an operator that cannot handle the given 200OK. I tried to fix it with <span style="color:black;background:rgb(254,254,238)">change_reply_status
in module </span>sipmsgops.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">but it rewrites the status-line with the same extra space. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Is this a bug?<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
<pre>_______________________________________________<u></u><u></u></pre>
<pre>Users mailing list<u></u><u></u></pre>
<pre><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><u></u><u></u></pre>
<pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><u></u><u></u></pre>
</blockquote>
</div>
<p class="MsoNormal">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><u></u><u></u></p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>