<div dir="ltr"><div class="gmail_default" style=""><font face="verdana, sans-serif" style="" color="#0b5394">Hello Răzvan,</font></div><div class="gmail_default" style=""><font face="verdana, sans-serif" color="#0b5394"><br></font></div><div class="gmail_default" style=""><font face="verdana, sans-serif" color="#0b5394">We have already tried with remove_hf("Content-Length") but no luck. Bug report is opened.</font></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><a href="https://github.com/OpenSIPS/opensips/issues/1990">https://github.com/OpenSIPS/opensips/issues/1990</a>  <br></div><div class="gmail_default" style=""><font face="verdana, sans-serif" color="#0b5394"><br></font></div><div class="gmail_default" style=""><font face="verdana, sans-serif" color="#0b5394">Regards,</font></div><div class="gmail_default" style=""><font face="verdana, sans-serif" style="" color="#0b5394">Kamlesh</font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 3, 2020 at 2:43 PM Răzvan Crainea <<a href="mailto:razvan@opensips.org">razvan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, Kamlesh!<br>
<br>
Try to remove the Content-Length too, using remove_hf("Content-Length").<br>
If this still does not work, please open a bug report[1].<br>
<br>
[1] <a href="https://github.com/OpenSIPS/opensips/issues" rel="noreferrer" target="_blank">https://github.com/OpenSIPS/opensips/issues</a><br>
<br>
Best regards,<br>
Răzvan<br>
<br>
On 2/26/20 11:28 AM, Kamlesh . wrote:<br>
> Hello,<br>
> <br>
> version: opensips 2.4.6 (x86_64/linux)<br>
> <br>
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, <br>
> F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>
> <br>
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, <br>
> MAX_URI_SIZE 1024, BUF_SIZE 65535<br>
> <br>
> poll method support: poll, epoll, sigio_rt, select.<br>
> <br>
> git revision: edef893c5<br>
> <br>
> main.c compiled on 23:26:34 Dec 14 2019 with gcc 4.8.5<br>
> <br>
> <br>
> We want to remove the body part in this packet so that we used <br>
> remove_body_part("application/vnd.etsi.pstn+xml") exported functions. It <br>
> was removed successfully but the Content-Length was added. You can check <br>
> we have two Content-Length headers in the packet.<br>
> <br>
> <br>
> Content-Length: 500<br>
> <br>
> Content-Length: 450<br>
> <br>
> <br>
> INVITE <a href="mailto:sip%3A%2Bxxx1204037xxx@sip.provider.com" target="_blank">sip:+xxx1204037xxx@sip.provider.com</a> <br>
> <mailto:<a href="mailto:sip%253A%252Bxxx1204037xxx@sip.provider.com" target="_blank">sip%3A%2Bxxx1204037xxx@sip.provider.com</a>> SIP/2.0<br>
> Via: SIP/2.0/UDP <br>
> 10.xxx.xxx.xxx:5060;branch=z9hG4bKysgyg576px7a357p5wyg4vawu;Role=3;Hpt=8ec2_36;TRC=ffffffff-ffffffff<br>
> Call-ID: <a href="mailto:asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb@B.5.281.sip.provider.com" target="_blank">asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb@B.5.281.sip.provider.com</a> <br>
> <mailto:<a href="mailto:asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb@B.5.281.sip.provider.com" target="_blank">asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb@B.5.281.sip.provider.com</a>><br>
> From: <<a href="mailto:sip%3A123456789@sip.provider.com" target="_blank">sip:123456789@sip.provider.com</a> <br>
> <mailto:<a href="mailto:sip%253A123456789@sip.provider.com" target="_blank">sip%3A123456789@sip.provider.com</a>>>;tag=8fe9f6cr<br>
> To: <tel:xxx1204037xxx;phone-context=+x11x><br>
> CSeq: 1 INVITE<br>
> Allow: <br>
> INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER<br>
> Contact: <br>
> <sip:10.xxx.xxx.xxx:5060;Dpt=ed2a-200;Hpt=8ec2_16;CxtId=4;TRC=ffffffff-ffffffff><br>
> Max-Forwards: 62<br>
> Supported: timer,100rel<br>
> User-Agent: SBC UAC3000<br>
> Session-Expires: 1800<br>
> Min-SE: 600<br>
> P-Asserted-Identity: <<a href="mailto:sip%3A%2B123456789@sip.provider.com" target="_blank">sip:+123456789@sip.provider.com</a> <br>
> <mailto:<a href="mailto:sip%253A%252B123456789@sip.provider.com" target="_blank">sip%3A%2B123456789@sip.provider.com</a>>>,<tel:+123456789><br>
> Privacy: none<br>
> P-Charging-Vector: <br>
> icid-value=agcf--20200226132711-100808435;orig-ioi=PA-NOIDAE;term-ioi=SIP_982312_ABCCLOUD_112233445566<br>
> Content-Length: 1400<br>
> Content-Type: multipart/mixed;boundary=ssboundary-1_<br>
> <br>
> --ssboundary-1_<br>
> Content-Length: 523<br>
> Content-Type: application/vnd.etsi.pstn+xml<br>
> Content-Disposition: signal;handling=optional<br>
> <br>
> <?xml version="1.0" encoding="UTF-8"?><br>
> <PSTN><br>
>    <BearerCapability><br>
>      <BCoctet3><br>
>        <CodingStandard>00</CodingStandard><br>
>        <InformationTransferCapability>00000</InformationTransferCapability><br>
>      </BCoctet3><br>
>      <BCoctet4><br>
>        <TransferMode>00</TransferMode><br>
>        <InformationTransferRate>10000</InformationTransferRate><br>
>      </BCoctet4><br>
>      <BCoctet5><br>
>        <Layer1Identification>01</Layer1Identification><br>
>        <UserInfoLayer1Protocol>00011</UserInfoLayer1Protocol><br>
>      </BCoctet5><br>
>    </BearerCapability><br>
> </PSTN><br>
> --ssboundary-1_<br>
> <br>
> Content-Length: 68<br>
> Content-Type: application/vnd.etsi.pstn+xml<br>
> Content-Disposition: signal;handling=optional<br>
> <br>
> <?xml version="1.0" encoding="UTF-8"?><br>
> <sendingCompleteIndication/><br>
> <br>
> --ssboundary-1_<br>
> Content-Length: 450<br>
> Content-Type: application/sdp<br>
> <br>
> v=0<br>
> o=- 373803451 373803451 IN IP4 10.xxx.xxx.xxx<br>
> s=SBC call<br>
> c=IN IP4 10.xxx.xxx.xxx<br>
> t=0 0<br>
> m=audio 60992 RTP/AVP 8 0 18 4 2 98 99 101 102 97<br>
> a=rtpmap:8 PCMA/8000<br>
> a=rtpmap:0 PCMU/8000<br>
> a=rtpmap:18 G729/8000<br>
> a=rtpmap:4 G723/8000<br>
> a=rtpmap:2 G726-32/8000<br>
> a=rtpmap:98 G726-40/8000<br>
> a=rtpmap:99 G726-32/8000<br>
> a=rtpmap:101 G726-24/8000<br>
> a=rtpmap:102 G726-16/8000<br>
> a=rtpmap:97 telephone-event/8000<br>
> a=ptime:20<br>
> a=fmtp:97 0-15<br>
> a=fmtp:18 annexb=no<br>
> <br>
> --ssboundary-1_--<br>
> <br>
> ------------------- AFTER ----------------------<br>
> <br>
> INVITE <br>
> sip:101@5.xxx.xxx.xxx:54251;transport=UDP;rinstance=5b70c35c0dfbe4c8 SIP/2.0<br>
> Record-Route: <sip:xx.xx.xx.xx:5070;r2=on;lr;ftag=8fe9f6cr;did=2af.57bfa951><br>
> Record-Route: <br>
> <sip:yy.yy.yy.yyy:5070;r2=on;lr;ftag=8fe9f6cr;did=2af.57bfa951><br>
> Via: SIP/2.0/UDP xx.xx.xx.xx:5070;branch=z9hG4bK9df.30fa2b25.0<br>
> Via: SIP/2.0/UDP <br>
> 10.xxx.xxx.xxx:5060;rport=5060;received=10.xxx.xxx.xxx;branch=z9hG4bKysgyg576px7a357p5wyg4vawu;Role=3;Hpt=8ec2_36;TRC=ffffffff-f<br>
> fffff<br>
> Call-ID: <a href="mailto:asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb@B.5.281.sip.provider.com" target="_blank">asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb@B.5.281.sip.provider.com</a> <br>
> <mailto:<a href="mailto:asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb@B.5.281.sip.provider.com" target="_blank">asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb@B.5.281.sip.provider.com</a>><br>
> From: <<a href="mailto:sip%3A123456789@sip.provider.com" target="_blank">sip:123456789@sip.provider.com</a> <br>
> <mailto:<a href="mailto:sip%253A123456789@sip.provider.com" target="_blank">sip%3A123456789@sip.provider.com</a>>>;tag=8fe9f6cr<br>
> To: <sip:101@5.xxx.xxx.xxx><br>
> CSeq: 1 INVITE<br>
> Allow: <br>
> INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER<br>
> Contact: <br>
> <sip:10.xxx.xxx.xxx:5060;Dpt=ed2a-200;Hpt=8ec2_16;CxtId=4;TRC=ffffffff-ffffffff><br>
> Max-Forwards: 32<br>
> Supported: timer,100rel<br>
> User-Agent: SBC UAC3000<br>
> Session-Expires: 1800<br>
> Min-SE: 600<br>
> P-Asserted-Identity: <<a href="mailto:sip%3A%2B123456789@sip.provider.com" target="_blank">sip:+123456789@sip.provider.com</a> <br>
> <mailto:<a href="mailto:sip%253A%252B123456789@sip.provider.com" target="_blank">sip%3A%2B123456789@sip.provider.com</a>>>,<tel:+123456789><br>
> Privacy: none<br>
> P-Charging-Vector: <br>
> icid-value=agcf--20200226132711-100808435;orig-ioi=PA-NOIDAE;term-ioi=SIP_982312_ABCCLOUD_112233445566<br>
> Content-Length: 500<br>
> Content-Length: 450<br>
> Content-Type: application/sdp<br>
> <br>
> v=0<br>
> o=- 373803451 373803451 IN IP4 10.xxx.xxx.xxx<br>
> s=SBC call<br>
> c=IN IP4 xx.xx.xx.xx<br>
> t=0 0<br>
> a=rtpengine:087d0852c64e<br>
> m=audio 11054 RTP/AVP 8 0 18 4 2 98 99 101 102 97<br>
> a=rtpmap:8 PCMA/8000<br>
> a=rtpmap:0 PCMU/8000<br>
> a=rtpmap:18 G729/8000<br>
> a=rtpmap:4 G723/8000<br>
> a=rtpmap:2 G726-32/8000<br>
> a=rtpmap:98 G726-40/8000<br>
> a=rtpmap:99 G726-32/8000<br>
> a=rtpmap:101 G726-24/8000<br>
> a=rtpmap:102 G726-16/8000<br>
> a=rtpmap:97 telephone-event/8000<br>
> a=fmtp:18 annexb=no<br>
> a=fmtp:97 0-15<br>
> a=sendrecv<br>
> a=rtcp:11055<br>
> a=ptime:20<br>
> <br>
> Regards,<br>
> Kamlesh<br>
> <br>
> Disclaimer :<br>
> <br>
> This e-mail and any file transmitted with it are for exclusive use of <br>
> the intended recipient(s)<br>
> and may contain confidential and privileged information. If you are not <br>
> the intended recipient,<br>
> please contact the sender by replying this e-mail and destroy all copies <br>
> and original message.<br>
> Any unauthorized review,use, disclosure, dissemination, forwarding, <br>
> printing and copying of this<br>
> email or any action taken in reliance of this e-mail is strictly <br>
> prohibited and may be unlawful.<br>
> <br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
<br>
-- <br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
   <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>

<br>
<p dir="auto" style="color:rgb(43,46,47);font-family:"Lucida Sans Unicode","Lucida Grande",Tahoma,Verdana,sans-serif;font-size:14px;background-color:rgb(255,255,255);line-height:22px;margin:15px 0px">Disclaimer :</p><p dir="auto" style="color:rgb(43,46,47);font-family:"Lucida Sans Unicode","Lucida Grande",Tahoma,Verdana,sans-serif;font-size:14px;background-color:rgb(255,255,255);line-height:22px;margin:15px 0px">This e-mail and any file transmitted with it are for exclusive use of the intended recipient(s)<br>and may contain confidential and privileged information. If you are not the intended recipient, <br>please contact the sender by replying this e-mail and destroy all copies and original message.<br>Any unauthorized review,use, disclosure, dissemination, forwarding, printing and copying of this<br>email or any action taken in reliance of this e-mail is strictly prohibited and may be unlawful.</p>