[OpenSIPS-Users] Multiple invite and bye for a single a call

Hamid Hashmi hamid2kviii at hotmail.com
Tue Sep 8 09:20:20 CEST 2015


What is the time difference between duplicate SIP messages ? It happens due to network latency. 
RegardsHamid R. Hashmi

Date: Mon, 7 Sep 2015 21:19:16 +0500
From: aqsyounas at gmail.com
To: users at lists.opensips.org
Subject: [OpenSIPS-Users] Multiple invite and bye for a single a call

Hi, users.

I have two softphone register to opensips from same network. When I call from one phone to another I see multiple invites and 200, bye for a single call.
Where is call sip trace.

INVITE sip:14048002020 at 45.56.70.29:6060;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
Max-Forwards: 70
Contact: <sip:14048002010 at 182.176.103.109:34512;transport=UDP>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-serviceuri
User-Agent: Z 3.7.30891 r30851
Allow-Events: presence, kpml
Content-Length: 245

v=0
o=Z 0 0 IN IP4 182.176.103.109
s=Z
c=IN IP4 182.176.103.109
t=0 0
m=audio 8000 RTP/AVP 3 110 8 0 97 101
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv


SIP/2.0 100 Giving a try
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
Server: OpenSIPS (1.11.3-notls (x86_64/linux))
Content-Length: 0

INVITE sip:14048002020 at 182.176.103.109:34989;rinstance=f188b7fee3e3777f;transport=UDP SIP/2.0
Record-Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bK0b4b.4d77b6b1.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
Max-Forwards: 69
Contact: <sip:14048002010 at 182.176.103.109:34512;transport=UDP>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-serviceuri
User-Agent: Z 3.7.30891 r30851
Allow-Events: presence, kpml
Content-Length: 245

v=0
o=Z 0 0 IN IP4 182.176.103.109
s=Z
c=IN IP4 182.176.103.109
t=0 0
m=audio 8000 RTP/AVP 3 110 8 0 97 101
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv

INVITE sip:14048002020 at 182.176.103.109:34989;rinstance=f188b7fee3e3777f;transport=UDP SIP/2.0
Record-Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bK0b4b.4d77b6b1.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
Max-Forwards: 69
Contact: <sip:14048002010 at 182.176.103.109:34512;transport=UDP>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-serviceuri
User-Agent: Z 3.7.30891 r30851
Allow-Events: presence, kpml
Content-Length: 245

v=0
o=Z 0 0 IN IP4 182.176.103.109
s=Z
c=IN IP4 182.176.103.109
t=0 0
m=audio 8000 RTP/AVP 3 110 8 0 97 101
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv


SIP/2.0 100 Trying
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bK0b4b.4d77b6b1.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
Content-Length: 0

SIP/2.0 100 Trying
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bK0b4b.4d77b6b1.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
Content-Length: 0

SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bK0b4b.4d77b6b1.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
Record-Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Contact: <sip:14048002020 at 182.176.103.109:34989>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
User-Agent: Z 3.8.31438 r31441
Content-Length: 0

SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
Record-Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Contact: <sip:14048002020 at 182.176.103.109:34989>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
User-Agent: Z 3.8.31438 r31441
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bK0b4b.4d77b6b1.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
Record-Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Contact: <sip:14048002020 at 182.176.103.109:34989>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-serviceuri
User-Agent: Z 3.8.31438 r31441
Allow-Events: presence, kpml
Content-Length: 245

v=0
o=Z 0 3 IN IP4 182.176.103.109
s=Z
c=IN IP4 182.176.103.109
t=0 0
m=audio 8001 RTP/AVP 3 110 8 0 97 101
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv

SIP/2.0 200 OK
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
Record-Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Contact: <sip:14048002020 at 182.176.103.109:34989>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-serviceuri
User-Agent: Z 3.8.31438 r31441
Allow-Events: presence, kpml
Content-Length: 245

v=0
o=Z 0 3 IN IP4 182.176.103.109
s=Z
c=IN IP4 182.176.103.109
t=0 0
m=audio 8001 RTP/AVP 3 110 8 0 97 101
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv

ACK sip:14048002020 at 182.176.103.109:34989 SIP/2.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---143ec2662caf0465
Max-Forwards: 70
Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Contact: <sip:14048002010 at 182.176.103.109:34512;transport=UDP>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 ACK
User-Agent: Z 3.7.30891 r30851
Content-Length: 0

ACK sip:14048002020 at 182.176.103.109:34989 SIP/2.0
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bK0b4b.4d77b6b1.2
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---143ec2662caf0465
Max-Forwards: 69
Contact: <sip:14048002010 at 182.176.103.109:34512;transport=UDP>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 ACK
User-Agent: Z 3.7.30891 r30851
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bK0b4b.4d77b6b1.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
Record-Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Contact: <sip:14048002020 at 182.176.103.109:34989>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-serviceuri
User-Agent: Z 3.8.31438 r31441
Allow-Events: presence, kpml
Content-Length: 245

v=0
o=Z 0 3 IN IP4 182.176.103.109
s=Z
c=IN IP4 182.176.103.109
t=0 0
m=audio 8001 RTP/AVP 3 110 8 0 97 101
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv

SIP/2.0 200 OK
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---409b5f11d8ba8af3
Record-Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Contact: <sip:14048002020 at 182.176.103.109:34989>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-serviceuri
User-Agent: Z 3.8.31438 r31441
Allow-Events: presence, kpml
Content-Length: 245

v=0
o=Z 0 3 IN IP4 182.176.103.109
s=Z
c=IN IP4 182.176.103.109
t=0 0
m=audio 8001 RTP/AVP 3 110 8 0 97 101
a=rtpmap:110 speex/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv

ACK sip:14048002020 at 182.176.103.109:34989 SIP/2.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---143ec2662caf0465
Max-Forwards: 70
Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Contact: <sip:14048002010 at 182.176.103.109:34512;transport=UDP>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 ACK
User-Agent: Z 3.7.30891 r30851
Content-Length: 0

ACK sip:14048002020 at 182.176.103.109:34989 SIP/2.0
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bK0b4b.4d77b6b1.2
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---143ec2662caf0465
Max-Forwards: 69
Contact: <sip:14048002010 at 182.176.103.109:34512;transport=UDP>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 1 ACK
User-Agent: Z 3.7.30891 r30851
Content-Length: 0

BYE sip:14048002020 at 182.176.103.109:34989 SIP/2.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---ef537d3eeab5a083
Max-Forwards: 70
Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Contact: <sip:14048002010 at 182.176.103.109:34512;transport=UDP>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 2 BYE
User-Agent: Z 3.7.30891 r30851
Content-Length: 0

BYE sip:14048002020 at 182.176.103.109:34989 SIP/2.0
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bKda4b.28b4b333.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---ef537d3eeab5a083
Max-Forwards: 69
Contact: <sip:14048002010 at 182.176.103.109:34512;transport=UDP>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 2 BYE
User-Agent: Z 3.7.30891 r30851
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 45.56.70.29:6060;branch=z9hG4bKda4b.28b4b333.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---ef537d3eeab5a083
Contact: <sip:14048002020 at 182.176.103.109:34989>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 2 BYE
User-Agent: Z 3.8.31438 r31441
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---ef537d3eeab5a083
Contact: <sip:14048002020 at 182.176.103.109:34989>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 2 BYE
User-Agent: Z 3.8.31438 r31441
Content-Length: 0

BYE sip:14048002020 at 182.176.103.109:34989 SIP/2.0
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---ef537d3eeab5a083
Max-Forwards: 70
Route: <sip:45.56.70.29:6060;lr;ftag=8066dc24;did=974.5f8dfee6>
Contact: <sip:14048002010 at 182.176.103.109:34512;transport=UDP>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 2 BYE
User-Agent: Z 3.7.30891 r30851
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 182.176.103.109:34512;branch=z9hG4bK-524287-1---ef537d3eeab5a083
Contact: <sip:14048002020 at 182.176.103.109:34989>
To: <sip:14048002020 at 45.56.70.29:6060;transport=UDP>;tag=ab2db826
From: <sip:14048002010 at 45.56.70.29:6060;transport=UDP>;tag=8066dc24
Call-ID: Xhj8khX7e_acyeCyrYIELw..
CSeq: 2 BYE
User-Agent: Z 3.8.31438 r31441
Content-Length: 0



Why there are unnecessary invite, 200 and bye being forward by opensisp? 

 t_check_trans() is used to stop duplicate requests. 

Best Regards.


_______________________________________________
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/20150908/2f90c26b/attachment-0001.htm>


More information about the Users mailing list