[OpenSIPS-Users] Content-Type: text/plain; charset="utf-8"
Oleg Podguyko
podguiko at mail.ru
Thu Feb 27 11:48:29 EST 2020
Hello kamlesh!
I met a similar problem when removing ISUP body and also wrote about this problem in this newsletter.
No one answered, I had to think for myself.
Before uninstalling, do this «hack»
replace_all("Content-Length", "X-");
And then delete
remove_body_part("application/vnd.etsi.pstn+xml")
>Среда, 26 февраля 2020, 12:30 +03:00 от users-request at lists.opensips.org:
>
>Send Users mailing list submissions to
>users at lists.opensips.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>or, via email, send a message with subject or body 'help' to
>users-request at lists.opensips.org
>
>You can reach the person managing the list at
>users-owner at lists.opensips.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Users digest..."
>
>
>Today's Topics:
>
> 1. Re: help with error messages (David Villasmil)
> 2. incorrect content length in body part (Kamlesh .)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Wed, 26 Feb 2020 08:27:33 +0000
>From: David Villasmil < david.villasmil.work at gmail.com >
>To: OpenSIPS users mailling list < users at lists.opensips.org >
>Subject: Re: [OpenSIPS-Users] help with error messages
>Message-ID:
>< CAFGRPVqybEYJrA1+=eCUhNiMgcS8YfJoiwtnNFJW2pZ9uLv-bQ at mail.gmail.com >
>Content-Type: text/plain; charset="utf-8"
>
>Did you set the new IPs, etc?
>
>On Wed, 26 Feb 2020 at 06:24, Saint Michael < venefax at gmail.com > wrote:
>
>> I moved a VM from one network to another, started opensips and I get
>> these errors. Could somebody shed light?
>> Feb 26 06:19:20 opensips systemd[1]: Started OpenSIPS is a very fast and
>> flexible SIP (RFC3261) server.
>> Feb 26 06:19:21 opensips opensips[4663]: Feb 26 06:19:21 [4744]
>> ERROR:core:pv_set_ruri_host: bad parameters
>> Feb 26 06:19:21 opensips opensips[4663]: Feb 26 06:19:21 [4744]
>> ERROR:core:do_assign: setting PV failed
>> Feb 26 06:19:21 opensips opensips[4663]: Feb 26 06:19:21 [4744]
>> ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:169
>> Feb 26 06:19:22 opensips opensips[4663]: Feb 26 06:19:22 [4744]
>> ERROR:core:pv_set_ruri_host: bad parameters
>> Feb 26 06:19:22 opensips opensips[4663]: Feb 26 06:19:22 [4744]
>> ERROR:core:do_assign: setting PV failed
>> Feb 26 06:19:22 opensips opensips[4663]: Feb 26 06:19:22 [4744]
>> ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:169
>> Feb 26 06:19:28 opensips opensips[4663]: Feb 26 06:19:28 [4744]
>> ERROR:core:pv_set_ruri_host: bad parameters
>> Feb 26 06:19:28 opensips opensips[4663]: Feb 26 06:19:28 [4744]
>> ERROR:core:do_assign: setting PV failed
>> Feb 26 06:19:28 opensips opensips[4663]: Feb 26 06:19:28 [4744]
>> ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:169
>> Feb 26 06:19:32 opensips opensips[4663]: Feb 26 06:19:32 [4744]
>> ERROR:core:pv_set_ruri_host: bad parameters
>> Feb 26 06:19:32 opensips opensips[4663]: Feb 26 06:19:32 [4744]
>> ERROR:core:do_assign: setting PV failed
>> Feb 26 06:19:32 opensips opensips[4663]: Feb 26 06:19:32 [4744]
>> ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:169
>> Feb 26 06:19:34 opensips opensips[4663]: Feb 26 06:19:34 [4744]
>> ERROR:core:pv_set_ruri_host: bad parameters
>> Feb 26 06:19:34 opensips opensips[4663]: Feb 26 06:19:34 [4744]
>> ERROR:core:do_assign: setting PV failed
>> Feb 26 06:19:34 opensips opensips[4663]: Feb 26 06:19:34 [4744]
>> ERROR:core:do_assign: error at /etc/opensips/opensips.cfg:169
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>--
>Regards,
>
>David Villasmil
>email: david.villasmil.work at gmail.com
>phone: +34669448337
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: < http://lists.opensips.org/pipermail/users/attachments/20200226/f39f54cf/attachment-0001.html >
>
>------------------------------
>
>Message: 2
>Date: Wed, 26 Feb 2020 14:58:38 +0530
>From: "Kamlesh ." < kamlesh at worldphone.in >
>To: users at lists.opensips.org
>Subject: [OpenSIPS-Users] incorrect content length in body part
>Message-ID:
>< CAEif1fFzO7gu+mzWU7YUBW4u1FbzasGkg+NwvAhdnFA8FPCHKw at mail.gmail.com >
>Content-Type: text/plain; charset="utf-8"
>
>Hello,
>
>version: opensips 2.4.6 (x86_64/linux)
>
>flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC,
>FAST_LOCK-ADAPTIVE_WAIT
>
>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>MAX_URI_SIZE 1024, BUF_SIZE 65535
>
>poll method support: poll, epoll, sigio_rt, select.
>
>git revision: edef893c5
>
>main.c compiled on 23:26:34 Dec 14 2019 with gcc 4.8.5
>
>We want to remove the body part in this packet so that we used
>remove_body_part("application/vnd.etsi.pstn+xml") exported functions. It
>was removed successfully but the Content-Length was added. You can check we
>have two Content-Length headers in the packet.
>
>Content-Length: 500
>
>Content-Length: 450
>
>INVITE sip: +xxx1204037xxx at sip.provider.com SIP/2.0
>Via: SIP/2.0/UDP
>10.xxx.xxx.xxx:5060;branch=z9hG4bKysgyg576px7a357p5wyg4vawu;Role=3;Hpt=8ec2_36;TRC=ffffffff-ffffffff
>Call-ID: asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb at B.5.281.sip.provider.com
>From: <sip: 123456789 at sip.provider.com >;tag=8fe9f6cr
>To: <tel:xxx1204037xxx;phone-context=+x11x>
>CSeq: 1 INVITE
>Allow:
>INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
>Contact:
><sip:10.xxx.xxx.xxx:5060;Dpt=ed2a-200;Hpt=8ec2_16;CxtId=4;TRC=ffffffff-ffffffff>
>Max-Forwards: 62
>Supported: timer,100rel
>User-Agent: SBC UAC3000
>Session-Expires: 1800
>Min-SE: 600
>P-Asserted-Identity: <sip: +123456789 at sip.provider.com >,<tel: +123456789 >
>Privacy: none
>P-Charging-Vector:
>icid-value=agcf--20200226132711-100808435;orig-ioi=PA-NOIDAE;term-ioi=SIP_982312_ABCCLOUD_112233445566
>Content-Length: 1400
>Content-Type: multipart/mixed;boundary=ssboundary-1_
>
>--ssboundary-1_
>Content-Length: 523
>Content-Type: application/vnd.etsi.pstn+xml
>Content-Disposition: signal;handling=optional
>
><?xml version="1.0" encoding="UTF-8"?>
><PSTN>
> <BearerCapability>
> <BCoctet3>
> <CodingStandard>00</CodingStandard>
> <InformationTransferCapability>00000</InformationTransferCapability>
> </BCoctet3>
> <BCoctet4>
> <TransferMode>00</TransferMode>
> <InformationTransferRate>10000</InformationTransferRate>
> </BCoctet4>
> <BCoctet5>
> <Layer1Identification>01</Layer1Identification>
> <UserInfoLayer1Protocol>00011</UserInfoLayer1Protocol>
> </BCoctet5>
> </BearerCapability>
></PSTN>
>--ssboundary-1_
>
>Content-Length: 68
>Content-Type: application/vnd.etsi.pstn+xml
>Content-Disposition: signal;handling=optional
>
><?xml version="1.0" encoding="UTF-8"?>
><sendingCompleteIndication/>
>
>--ssboundary-1_
>Content-Length: 450
>Content-Type: application/sdp
>
>v=0
>o=- 373803451 373803451 IN IP4 10.xxx.xxx.xxx
>s=SBC call
>c=IN IP4 10.xxx.xxx.xxx
>t=0 0
>m=audio 60992 RTP/AVP 8 0 18 4 2 98 99 101 102 97
>a=rtpmap:8 PCMA/8000
>a=rtpmap:0 PCMU/8000
>a=rtpmap:18 G729/8000
>a=rtpmap:4 G723/8000
>a=rtpmap:2 G726-32/8000
>a=rtpmap:98 G726-40/8000
>a=rtpmap:99 G726-32/8000
>a=rtpmap:101 G726-24/8000
>a=rtpmap:102 G726-16/8000
>a=rtpmap:97 telephone-event/8000
>a=ptime:20
>a=fmtp:97 0-15
>a=fmtp:18 annexb=no
>
>--ssboundary-1_--
>
>------------------- AFTER ----------------------
>
>INVITE sip:101 at 5.xxx.xxx.xxx:54251;transport=UDP;rinstance=5b70c35c0dfbe4c8
>SIP/2.0
>Record-Route: <sip:xx.xx.xx.xx:5070;r2=on;lr;ftag=8fe9f6cr;did=2af.57bfa951>
>Record-Route:
><sip:yy.yy.yy.yyy:5070;r2=on;lr;ftag=8fe9f6cr;did=2af.57bfa951>
>Via: SIP/2.0/UDP xx.xx.xx.xx:5070;branch=z9hG4bK9df.30fa2b25.0
>Via: SIP/2.0/UDP
>10.xxx.xxx.xxx:5060;rport=5060;received=10.xxx.xxx.xxx;branch=z9hG4bKysgyg576px7a357p5wyg4vawu;Role=3;Hpt=8ec2_36;TRC=ffffffff-f
>fffff
>Call-ID: asbcehs9ekj9nle5h5q1ilqj5qs9f49ef9hb at B.5.281.sip.provider.com
>From: <sip: 123456789 at sip.provider.com >;tag=8fe9f6cr
>To: <sip: 101 at 5.xxx.xxx.xxx >
>CSeq: 1 INVITE
>Allow:
>INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
>Contact:
><sip:10.xxx.xxx.xxx:5060;Dpt=ed2a-200;Hpt=8ec2_16;CxtId=4;TRC=ffffffff-ffffffff>
>Max-Forwards: 32
>Supported: timer,100rel
>User-Agent: SBC UAC3000
>Session-Expires: 1800
>Min-SE: 600
>P-Asserted-Identity: <sip: +123456789 at sip.provider.com >,<tel: +123456789 >
>Privacy: none
>P-Charging-Vector:
>icid-value=agcf--20200226132711-100808435;orig-ioi=PA-NOIDAE;term-ioi=SIP_982312_ABCCLOUD_112233445566
>Content-Length: 500
>Content-Length: 450
>Content-Type: application/sdp
>
>v=0
>o=- 373803451 373803451 IN IP4 10.xxx.xxx.xxx
>s=SBC call
>c=IN IP4 xx.xx.xx.xx
>t=0 0
>a=rtpengine:087d0852c64e
>m=audio 11054 RTP/AVP 8 0 18 4 2 98 99 101 102 97
>a=rtpmap:8 PCMA/8000
>a=rtpmap:0 PCMU/8000
>a=rtpmap:18 G729/8000
>a=rtpmap:4 G723/8000
>a=rtpmap:2 G726-32/8000
>a=rtpmap:98 G726-40/8000
>a=rtpmap:99 G726-32/8000
>a=rtpmap:101 G726-24/8000
>a=rtpmap:102 G726-16/8000
>a=rtpmap:97 telephone-event/8000
>a=fmtp:18 annexb=no
>a=fmtp:97 0-15
>a=sendrecv
>a=rtcp:11055
>a=ptime:20
>
>Regards,
>Kamlesh
>
>--
>
>
>Disclaimer :
>
>This e-mail and any file transmitted with it are for
>exclusive use of the intended recipient(s)
>and may contain confidential and
>privileged information. If you are not the intended recipient,
>please
>contact the sender by replying this e-mail and destroy all copies and
>original message.
>Any unauthorized review,use, disclosure, dissemination,
>forwarding, printing and copying of this
>email or any action taken in
>reliance of this e-mail is strictly prohibited and may be unlawful.
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: < http://lists.opensips.org/pipermail/users/attachments/20200226/8c983dc7/attachment.html >
>
>------------------------------
>
>Subject: Digest Footer
>
>_______________________________________________
>Users mailing list
>Users at lists.opensips.org
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>------------------------------
>
>End of Users Digest, Vol 139, Issue 43
>**************************************
--
Oleg Podguyko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200227/3fa79a92/attachment-0001.html>
More information about the Users
mailing list