[OpenSIPS-Users] Opensips generate two Content-lenth headers

Oleg Podguyko podguiko at mail.ru
Fri Nov 8 05:42:03 EST 2019


In my opinion it is not correct. So the remote party sends me 400 Bad Content-lenth in response to my outgoing INVITE. That's why I'm asking this question. How to make this header only one. And why does opensips do this?

  
>Пятница, 8 ноября 2019, 11:13 +03:00 от Alain Bieuzent <alain.bieuzent at free.fr>:
> 
>Hi Oleg,
> 
>Is it normal your outgoing INVITE have twice «  Content-Length: 205 » ?
> 
>Regards
> 
>De :  Users < users-bounces at lists.opensips.org > au nom de Oleg Podguyko via Users < users at lists.opensips.org >
>Répondre à :  Oleg Podguyko < podguiko at mail.ru >, OpenSIPS users mailling list < users at lists.opensips.org >
>Date :  jeudi 7 novembre 2019 à 19:16
>À :  < users at lists.opensips.org >
>Objet :  [OpenSIPS-Users] Opensips generate two Content-lenth headers
> 
>I’m using opensips as proxy. I got INVITE from one side, do some logics ,remove ISUP body and send INVITE to destination via dispatcher module.
>And I see that outgoing INVITE has two content-lenth headers. Remote side after received such INVITE sends 400 
>Bad Contenth-lenth header.
> 
> 
> 
>Incoming INVITE:
> 
>INVITE sip:9222992040 at 10.66.107.169;transport=sctp;user=phone SIP/2.0
>Via: SIP/2.0/SCTP 10.111.18.3:7010;branch=z9hG4bKiz5cvz9x5v5zi4bg84g4vx4zs;X-DispMsg=1408
>Route: <sip:10.66.107.169:5060;transport=sctp;lr>
>Call-ID:  i44czbcvax4gabcdst4iavdbaisji94s at 10.18.5.64
>From: "9269918424"<sip:9269918424 at 10.111.18.3;transport=sctp;user=phone>;tag=i4z5545v-CC-1027-TRC-613805-OFC-14
>To: "9222992040"<sip:9222992040 at 10.66.107.169;transport=sctp;user=phone>
>CSeq: 1 INVITE
>P-Access-Network-Info: GEN-ACCESS;"area-number= +79262000601 "
>Max-Forwards: 70
>Contact: <sip:10.111.18.3:7010>
>Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,INFO,PRACK,NOTIFY,MESSAGE,REFER,UPDATE
>P-Asserted-Identity: <tel:9269918424>
>History-Info: <sip:9254462587 at anonymous.invalid?reason=SIP%3Bcause%3D503%3Btext%3D%22Subscriber%20Not%20Reachable%22&Privacy=history>;index=1
>History-Info: <sip:9222992040 at 10.66.107.169:5060;transport=sctp>;index=1.1
>P-Early-Media: supported
>Supported: 100rel,timer,histinfo
>Min-SE: 90
>Session-Expires: 1800;refresher=uac
>Content-Length: 477
>Content-Type: multipart/mixed;boundary=ssboundary
>--ssboundary
>Content-Length: 205
>Content-Type: application/sdp
>v=0
>o=xyz 1154444372 1154444373 IN IP4 10.111.18.3
>s=SipCall
>c=IN IP4 10.249.66.133
>t=0 0
>m=audio 28644 RTP/AVP 8 116
>a=rtpmap:8 PCMA/8000
>a=rtpmap:116 telephone-event/8000
>a=ptime:20
>--ssboundary
>Content-Length: 100
>Content-Type: application/isup;version=itu-t92+
> 
>)"
>)HB()EdRx1Z
>)EdRxa4}à§=?bñ£9
>1À4À?ÀoÀuÀ
>--ssboundary--
> 
> 
>Outgoing INVITE
> 
>INVITE sip:9222992040 at 10.66.107.169;transport=sctp;user=phone SIP/2.0
>Record-Route: <sip:192.168.9.84;r2=on;lr;did=876.0b9c196>
>Record-Route: <sip:10.66.107.169;transport=sctp;r2=on;lr;did=876.0b9c196>
>Via: SIP/2.0/UDP 192.168.9.84:5060;branch=z9hG4bKfa6a.b4f80a51.0
>Via: SIP/2.0/SCTP 10.111.18.3:7010;branch=z9hG4bKiz5cvz9x5v5zi4bg84g4vx4zs;X-DispMsg=1408
>Call-ID:  i44czbcvax4gabcdst4iavdbaisji94s at 10.18.5.64
>From: "9269918424"<sip:9269918424 at 10.111.18.3;transport=sctp;user=phone>;tag=i4z5545v-CC-1027-TRC-613805-OFC-14
>To: "9222992040"<sip:9222992040 at 10.66.107.169;transport=sctp;user=phone>
>CSeq: 1 INVITE
>P-Access-Network-Info: GEN-ACCESS;"area-number= +79262000601 "
>Max-Forwards: 69
>Contact: <sip:10.111.18.3:7010>
>Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,INFO,PRACK,NOTIFY,MESSAGE,REFER,UPDATE
>P-Asserted-Identity: <tel:9269918424>
>History-Info: <sip:9254462587 at anonymous.invalid?reason=SIP%3Bcause%3D503%3Btext%3D%22Subscriber%20Not%20Reachable%22&Privacy=history>;index=1
>History-Info: <sip:9222992040 at 10.66.107.169:5060;transport=sctp>;index=1.1
>P-Early-Media: supported
>Supported: 100rel,timer,histinfo
>Min-SE: 90
>Session-Expires: 1800;refresher=uac
>Content-Length: 205
>Content-Length: 205
>Content-Type: application/sdp
>v=0
>o=xyz 1154444372 1154444373 IN IP4 10.111.18.3
>s=SipCall
>c=IN IP4 10.249.66.133
>t=0 0
>m=audio 28644 RTP/AVP 8 116
>a=rtpmap:8 PCMA/8000
>a=rtpmap:116 telephone-event/8000
>a=ptime:20
> 
> 
> 
> 
> 
>--
>Oleg Podguyko
>_______________________________________________ Users mailing list  Users at lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users 
 
 
--
Олег Подгуйко
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191108/0d6cfa83/attachment.html>


More information about the Users mailing list