[OpenSIPS-Devel] [ opensips-Bugs-2923461 ] INVITE without Contact relayed

SourceForge.net noreply at sourceforge.net
Wed Dec 30 12:29:48 CET 2009


Bugs item #2923461, was opened at 2009-12-30 14:28
Message generated for change (Comment added) made by iamthedeath
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2923461&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.5.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: INVITE without Contact relayed

Initial Comment:
Hello.

I think, thath i have found a bug.

opensips recieve this message:
INVITE sip:1000085110 at 10.254.157.42:5060 SIP/2.0.
Record-Route: <sip:10.2.166.17;lr=on;ftag=861013891;vsf=AAAAAFVXVwMCCXVLWkchVx0BYS5ydQ-->.
Record-Route: <sip:[--IP-HERE--];lr=on;ftag=861013891>.
Via: SIP/2.0/UDP 10.2.166.17;branch=z9hG4bK2874.b998c896.0.
Via: SIP/2.0/UDP [--IP-HERE--];branch=z9hG4bK2874.8f3e33b6.0.
Via: SIP/2.0/UDP 10.254.157.104:5060;received=[--IP-HERE--];branch=z9hG4bK609371529;rport=14259.
Max-Forwards: 68.
From: "1000085253" <sip:dgg321@[--DOMAIN-HERE--]>;tag=861013891.
To: "anonymous" <sip:1000085110@[--DOMAIN-HERE--]>.
Call-ID: 3335133038 at 10.254.157.104.
Server: IMS Server 1.0.
User-Agent: IMS Client v0.001.
sip:[--DOMAIN-HERE--].
Supported: timer,replaces.
Allow: INVITE,ACK,CANCEL,BYE,SUBSCRIBE,NOTIFY,MESSAGE,INFO,UPDATE.
Accept-Contact: *;description="VT";explicit;require.
Session-Expires: 1800;refresher=uac.
CSeq: 2 INVITE.
Content-Type: application/sdp.
Content-Length: 232.
.
[--SDP-CUTTED--]

than this message was relayed to the client pointed in the Request URI, client answer with response:
SIP/2.0 400 Bad Request.
Via: SIP/2.0/UDP [--IP_HERE--];branch=z9hG4bK2874.9f3e33b6.0.
Via: SIP/2.0/UDP 10.2.166.17;branch=z9hG4bK2874.b998c896.0.
Via: SIP/2.0/UDP [--IP_HERE--];branch=z9hG4bK2874.8f3e33b6.0.
Via: SIP/2.0/UDP 10.254.157.104:5060;received=[--IP_HERE--];branch=z9hG4bK609371529;rport=14259.
Max-Forwards: 70.
From: ""1000085253"" <sip:dgg321@[--DOMAIN_HERE--]>;tag=861013891.
To: ""anonymous"" <sip:1000085110@[--DOMAIN_HERE--]>.
Call-ID: 3335133038 at 10.254.157.104.
CSeq: 2 INVITE.
Content-Length: 0.

but opensips still trying to retransmit initial invite to client...

First of all, in accordance with RFC3261 (Section 8.1.1.8) INVITE without "Contact" header must be rejected. 
I see, I can reject such message using configuration to check presentity of this header in INVITE message, but it would be better when it will be done thru the parser/tm modules by opensips.

Second is the question: why opensips try to retransmit initial INVITE when response was already recieved.

version: opensips 1.5.3-notls (x86_64/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, 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_lt, epoll_et, sigio_rt, select.
svnrevision: 4:921M
@(#) $Id: main.c 5887 2009-07-16 11:47:46Z bogdan_iancu $
main.c compiled on 18:10:15 Dec 29 2009 with gcc 4.1.2


----------------------------------------------------------------------

Comment By: Alexey Nikolaev (iamthedeath)
Date: 2009-12-30 14:29

Message:
Forget to login. This is my issue.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2923461&group_id=232389



More information about the Devel mailing list