[OpenSIPS-Users] rewrite status-line

Ben Newlin Ben.Newlin at genesys.com
Fri Feb 14 17:08:33 EST 2020


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.

I think your best bet would be to try one of the functions in the textops module [1], possibly replace() [2].

[1] - https://opensips.org/docs/modules/2.4.x/textops.html
[2] - https://opensips.org/docs/modules/2.4.x/textops.html#func_replace


Ben Newlin

From: Users <users-bounces at lists.opensips.org> on behalf of Антон Ершов <suharik71 at gmail.com>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org>
Date: Friday, February 14, 2020 at 12:01 PM
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] rewrite status-line

I understand correctly that on my side I can not fix this problem?

пт, 14 февр. 2020 г. в 17:17, Антон Ершов <suharik71 at gmail.com<mailto:suharik71 at gmail.com>>:
They can not

пт, 14 февр. 2020 г., 17:10 johan <johan at democon.be<mailto:johan at democon.be>>:

To me 200 OK is perfectly valid.   The operator should fix this at his side.
On 14.02.20 15:01, Антон Ершов wrote:
Hello friends!
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 change_reply_status in module sipmsgops.
but it rewrites the status-line with the same extra space.
Is this a bug?



_______________________________________________

Users mailing list

Users at lists.opensips.org<mailto:Users at lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200214/02b50b27/attachment-0001.html>


More information about the Users mailing list