I have a server sending INVITE messages with a multipart/mixed body. There are 2 misbehaviours I had to correct because of a special constellation:
the content-Type header of my server looks like this:
> Content-Type: multipart/mixed;boundary=unique-boundary-1
saying that the parsing string is "unique-boundary-1". In the textops.c the string is hardcoded and checks for "-Boundary". So if I use the filter_body("application/sdp") function it fails. So Textops should read the delimiter string from Content-Type header dynamically. The hardcoded delimiter is in textops.c line 908.
Filtering works after correcting textops.c, but still mediaproxy module has a problem. After calling filter_body() I will route the call over mediaproxy, so I call use_media_proxy() from mediaproxy.c. But this function works with the uncorrected INVITE pakage again. So if it searches application/sdp it only finds multipart/mixed and no mediaproxy channel is created. Best solution would be to get mediaproxy to work with the previously corrected pakage. I am using a workaround now, replacing "status = get_sdp_message(msg, &sdp);" on line 1445 in mediaproxy.c with "status = 1;".
Log in to post a comment.