change_reply_status works. I managed to change the code. e.g. 200 to 201
it turned out to change Reason. but two spaces still remain.
func_replace will check the whole message every time. How will this affect
productivity?
and whether it will check the status-line?

пт, 14 февр. 2020 г. в 20:11, Ben Newlin <[email protected]>:

> 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 <[email protected]> on behalf of Антон Ершов
> <[email protected]>
> *Reply-To: *OpenSIPS users mailling list <[email protected]>
> *Date: *Friday, February 14, 2020 at 12:01 PM
> *To: *OpenSIPS users mailling list <[email protected]>
> *Subject: *Re: [OpenSIPS-Users] rewrite status-line
>
>
>
> I understand correctly that on my side I can not fix this problem?
>
>
>
> пт, 14 февр. 2020 г. в 17:17, Антон Ершов <[email protected]>:
>
> They can not
>
>
>
> пт, 14 февр. 2020 г., 17:10 johan <[email protected]>:
>
> 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
>
> [email protected]
>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to