<p></p>
<p>I've made some testing and found that filter_body() fails when body is something like "Content-Type:application/sdp\r\n\r\n".</p>
<p>If i use this correction to add a space the filter works correctly :</p>
<p>replace_body_all("Content-Type:application/sdp\r\n\r\n","Content-Type: application/sdp\r\n\r\n");</p>
<pre><code>#Makes the changes to the message persistent, returns 1 if sucessful, 0 if it fails
if(msg_apply_changes())
{
    xnotice("Kamailio_Log : reply_route : Changes to message applied"); 
}
</code></pre>
<p>I looked into the textops.c and found this line which i think might be the problem :</p>
<p>while (find_line_start("Content-Type: ", 14, &start, &len))</p>
<p>If more info is needed please let me know.</p>
<p>Cheers</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2748">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJNABF4LKYUCXCOL6TTPYS5RANCNFSM45UBLQZA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLGNE2BGPMLNFDL6FLTPYS5RA5CNFSM45UBLQZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NO3OS3Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2748",
"url": "https://github.com/kamailio/kamailio/issues/2748",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>