<HTML><BODY><div><div>You should define textops module</div><div> </div><div>#### Text manipulation<br>loadmodule "textops.so"<br> </div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">Пятница, 28 февраля 2020, 15:18 +03:00 от Saint Michael <venefax@gmail.com>:<br> <div id=""><div class="js-helper js-readmsg-msg"><style type="text/css"></style><div><div id="style_15828923171400922121_BODY"><div class="class_1582895591"><div dir="ltr"><div class="gmail_default_mailru_css_attribute_postfix" style="font-size:small">I have the same error thousand of times per day, and I added those two lines to muy route() script, but I get</div><div class="gmail_default_mailru_css_attribute_postfix" style="font-size:small">route{<br>replace_all("Content-Length", "X-");<br>remove_body_part("application/vnd.etsi.pstn+xml");</div><div class="gmail_default_mailru_css_attribute_postfix" style="font-size:small">...</div><div class="gmail_default_mailru_css_attribute_postfix" style="font-size:small"> </div><div class="gmail_default_mailru_css_attribute_postfix" style="font-size:small"> CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 63, column 19-20: unknown command <replace_all>, missing loadmodule?</div><div class="gmail_default_mailru_css_attribute_postfix" style="font-size:small"> </div></div> <div class="gmail_quote_mailru_css_attribute_postfix"><div class="mail-quote-collapse"><div class="gmail_attr_mailru_css_attribute_postfix" dir="ltr"><span data-email="users@lists.opensips.org" data-name="Oleg Podguyko via Users" data-quote-id="1699618334490237284" data-timestamp="1582775460" data-type="sender">On Thu, Feb 27, 2020 at 6:51 AM Oleg Podguyko via Users <<a href="//e.mail.ru/compose/?mailto=mailto%3ausers@lists.opensips.org" rel="noopener noreferrer">users@lists.opensips.org</a>> wrote:</span></div><div data-quote-id="1699618334490237284" data-type="body"><blockquote class="gmail_quote_mailru_css_attribute_postfix" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div><div id="gmail-m_-7404602509348091145style_15828039372014159254_BODY_mailru_css_attribute_postfix"><div><div><div><div id="gmail-m_-7404602509348091145style_15828038580855966109_BODY_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><div><div><br>Hello kamlesh!</div><div> </div><div> </div><div><span><span style="color:rgb(34,34,34);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(248,249,250);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I met a similar problem when removing ISUP body and also wrote about this problem in this newsletter.</span></span></div><div> </div><div><span><span style="color:rgb(34,34,34);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(248,249,250);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">No one answered, I had to think for myself.</span></span></div><div> </div><div> </div><div><span><span style="color:rgb(34,34,34);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(248,249,250);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Before uninstalling, do this «hack» </span></span></div><div> </div><div>replace_all("Content-Length", "X-");</div><div> </div><div><span><span style="color:rgb(34,34,34);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(248,249,250);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">And then delete</span></span></div><div> </div><div>remove_body_part("application/vnd.etsi.pstn+xml")</div><div> </div><div> </div><div><blockquote style="border-left:1px solid rgb(8,87,166);margin:10px;padding:0px 0px 0px 10px"><span data-email="users-request@lists.opensips.org" data-name="" data-quote-id="1699618334490237285" data-timestamp="1582709400" data-type="sender"><span><span>Среда, 26 февраля 2020, 12:30 +03:00 от <a href="//e.mail.ru/compose/?mailto=mailto%3ausers%2drequest@lists.opensips.org" rel="noopener noreferrer">users-request@lists.opensips.org</a>:<br> </span></span></span><div data-quote-id="1699618334490237285" data-type="body"><div><div><div id="gmail-m_-7404602509348091145_mailru_css_attribute_postfix"><div><div><div id="gmail-m_-7404602509348091145style_15827094071138995475_BODY_mailru_css_attribute_postfix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">Send Users mailing list submissions to<br><a>users@lists.opensips.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noopener noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>or, via email, send a message with subject or body 'help' to<br><a>users-request@lists.opensips.org</a><br><br>You can reach the person managing the list at<br><a>users-owner@lists.opensips.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Users digest..."<br><br><br>Today's Topics:<br><br>   1. Re: help with error messages (David Villasmil)<br>   2. incorrect content length in body part (Kamlesh .)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 26 Feb 2020 08:27:33 +0000<br>From: David Villasmil <<a>david.villasmil.work@gmail.com</a>><br>To: OpenSIPS users mailling list <<a>users@lists.opensips.org</a>><br>Subject: Re: [OpenSIPS-Users] help with error messages<br>Message-ID:<br><<a>CAFGRPVqybEYJrA1+=eCUhNiMgcS8YfJoiwtnNFJW2pZ9uLv-bQ@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Did you set the new IPs, etc?<br><br>On Wed, 26 Feb 2020 at 06:24, Saint Michael <<a>venefax@gmail.com</a>> wrote:<br><br>> I moved a VM from one network to another, started opensips and I get<br>> these errors. Could somebody shed light?<br>> Feb 26 06:19:20 opensips systemd[1]: Started OpenSIPS is a very fast and<br>> flexible SIP (RFC3261) server.<br>> Feb 26 06:19:21 opensips opensips[4663]: Feb 26 06:19:21 [4744]<br>> ERROR:core:pv_set_ruri_host: bad parameters<br>> Feb 26 06:19:21 opensips opensips[4663]: Feb 26 06:19:21 [4744]<br>> ERROR:core:do_assign: setting PV failed<br>> Feb 26 06:19:21 opensips opensips[4663]: Feb 26 06:19:21 [4744]<br>> ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:169<br>> Feb 26 06:19:22 opensips opensips[4663]: Feb 26 06:19:22 [4744]<br>> ERROR:core:pv_set_ruri_host: bad parameters<br>> Feb 26 06:19:22 opensips opensips[4663]: Feb 26 06:19:22 [4744]<br>> ERROR:core:do_assign: setting PV failed<br>> Feb 26 06:19:22 opensips opensips[4663]: Feb 26 06:19:22 [4744]<br>> ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:169<br>> Feb 26 06:19:28 opensips opensips[4663]: Feb 26 06:19:28 [4744]<br>> ERROR:core:pv_set_ruri_host: bad parameters<br>> Feb 26 06:19:28 opensips opensips[4663]: Feb 26 06:19:28 [4744]<br>> ERROR:core:do_assign: setting PV failed<br>> Feb 26 06:19:28 opensips opensips[4663]: Feb 26 06:19:28 [4744]<br>> ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:169<br>> Feb 26 06:19:32 opensips opensips[4663]: Feb 26 06:19:32 [4744]<br>> ERROR:core:pv_set_ruri_host: bad parameters<br>> Feb 26 06:19:32 opensips opensips[4663]: Feb 26 06:19:32 [4744]<br>> ERROR:core:do_assign: setting PV failed<br>> Feb 26 06:19:32 opensips opensips[4663]: Feb 26 06:19:32 [4744]<br>> ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:169<br>> Feb 26 06:19:34 opensips opensips[4663]: Feb 26 06:19:34 [4744]<br>> ERROR:core:pv_set_ruri_host: bad parameters<br>> Feb 26 06:19:34 opensips opensips[4663]: Feb 26 06:19:34 [4744]<br>> ERROR:core:do_assign: setting PV failed<br>> Feb 26 06:19:34 opensips opensips[4663]: Feb 26 06:19:34 [4744]<br>> ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:169<br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a>Users@lists.opensips.org</a><br>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noopener noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>><br>--<br>Regards,<br><br>David Villasmil<br>email: <a>david.villasmil.work@gmail.com</a><br>phone: <span><span><span><span class="js-phone-number">+34669448337</span></span></span></span><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.opensips.org/pipermail/users/attachments/20200226/f39f54cf/attachment-0001.html" rel="noopener noreferrer" target="_blank">http://lists.opensips.org/pipermail/users/attachments/20200226/f39f54cf/attachment-0001.html</a>><br><br>------------------------------<br><br>Message: 2<br>Date: Wed, 26 Feb 2020 14:58:38 +0530<br>From: "Kamlesh ." <<a>kamlesh@worldphone.in</a>><br>To: <a>users@lists.opensips.org</a><br>Subject: [OpenSIPS-Users] incorrect content length in body part<br>Message-ID:<br><<a>CAEif1fFzO7gu+mzWU7YUBW4u1FbzasGkg+NwvAhdnFA8FPCHKw@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><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, F_MALLOC,<br>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>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 we<br>have two Content-Length headers in the packet.<br><br>Content-Length: 500<br><br>Content-Length: 450<br><br>INVITE sip:<a>+xxx1204037xxx@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>asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb@B.5.281.sip.provider.com</a><br>From: <sip:<a>123456789@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: <sip:<a>+123456789@sip.provider.com</a>>,<tel:<span><span class="js-phone-number">+123456789</span></span>><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 sip:101@5.xxx.xxx.xxx:54251;transport=UDP;rinstance=5b70c35c0dfbe4c8<br>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>asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb@B.5.281.sip.provider.com</a><br>From: <sip:<a>123456789@sip.provider.com</a>>;tag=8fe9f6cr<br>To: <sip:<a>101@5.xxx.xxx.xxx</a>><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: <sip:<a>+123456789@sip.provider.com</a>>,<tel:<span><span class="js-phone-number">+123456789</span></span>><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>--<br><br><br>Disclaimer :<br><br>This e-mail and any file transmitted with it are for<br>exclusive use of the intended recipient(s)<br>and may contain confidential and<br>privileged information. If you are not the intended recipient, <br>please<br>contact the sender by replying this e-mail and destroy all copies and<br>original message.<br>Any unauthorized review,use, disclosure, dissemination,<br>forwarding, printing and copying of this<br>email or any action taken in<br>reliance of this e-mail is strictly prohibited and may be unlawful.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://lists.opensips.org/pipermail/users/attachments/20200226/8c983dc7/attachment.html" rel="noopener noreferrer" target="_blank">http://lists.opensips.org/pipermail/users/attachments/20200226/8c983dc7/attachment.html</a>><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Users mailing list<br><a>Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noopener noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br>------------------------------<br><br>End of Users Digest, Vol 139, Issue 43<br>**************************************</div></div></div></div></div></div></div></blockquote></div> <div> </div><div>--<br>Oleg Podguyko</div><div> </div></div></div></div></div><div> </div></div></div></div></div><div> </div></div>_______________________________________________<br>Users mailing list<br><a href="//e.mail.ru/compose/?mailto=mailto%3aUsers@lists.opensips.org" rel="noopener noreferrer">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noopener noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></blockquote></div></div></div></div></div></div></div></div></blockquote> <div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Олег Подгуйко</div></div></div><div> </div></div></BODY></HTML>