Discussion:
[SR-Users] Body formats for filter_body()
Duarte Rocha
2021-05-26 16:22:45 UTC
Permalink
Hello all,

A couple years ago the function filter_body() from textops would only work
with "application/sdp" if the string on the body was "Content-Type:
application/sdp\r\n". It would fail if there wasn't a space after ":" and
it would fail if there was present "\r\n\r\n" instead of "\r\n".

Is this the actual behaviour of the function or has it been changed to also
identify SDP in the formats mentioned above?

Best Regards,
Daniel-Constantin Mierla
2021-05-27 09:20:05 UTC
Permalink
Hello,
Hello all, 
A couple  years ago the function filter_body() from textops would only
work with "application/sdp" if the string on the body was
"Content-Type: application/sdp\r\n". It would fail if there wasn't a
space after ":" and it would fail if there was present "\r\n\r\n"
instead of "\r\n". 
Is this the actual behaviour of the function or has it been changed to
also identify SDP in the formats mentioned above?
I do not recall these limitations, but I haven't developed the function,
nor used it that much.

I would recommend you test and if there are still issues (like not
working if no space after ':' ), then open a bug in the issue tracker.

Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online - June 7-10, 2021 (America Timezone)
* https://www.asipto.com/sw/kamailio-advanced-training-online/


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-***@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* https://lists.kamailio.org/cgi-bin/mailman/listi
Loading...