Solved Softphones not hanging up the incoming calls while ringing

Dear all,

I have installed the last stable version of Freepbx 64bit.
The whole setup is working fine but i have an issue.

I have tested bot 3cx and xlite for this scenario.
When i am receiving a call but i don’t answer on my softphone, and i click close the call, it appears on softphone that the call has ended, and after a few seconds its ringing again until the call initiatiator is closing the call.

If i answer the call on my softphone, i can close it with no issue.

I don’t have any firewall in between the computer and pbx
I disabled firewall on windows computer.

I am using tcpdump on freepbx to trace packets.

Does anyone had this issue before.?

This is the sequence:

  1. FREEPBX is receiving a call and sends an INVITE to pc with extension configured on softphone
  2. softphone send: RINGING
  3. I hangup from the softphone, i am sending Busy Here
  4. FREEPBX it is saying ACK
  5. Again FREEPBX it is sending again an INVITE
  6. Again softphones is RINGING
  7. Again i am closing the call from softphone with “busy here”
  8. Again Freepbx is sending ACK
  9. I am closing the call from mobile so it will not ring anymore in softphone.

I am seeing in the invite of the FREEPBX the following line:
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE.
And i am sending “busy here” from softphone when i am hanging up. Maybe…FREEPBX does not know about

“SIP/2.0 486 Busy Here.” how do i add this message to freepbx to understand it?

???

U 192.168.1.199:5060 -> 192.168.1.11:53808
INVITE sip:[email protected]:53808;rinstance=738f3903138d0f74 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.199:5060;branch=z9hG4bK5489cf70.
Max-Forwards: 70.
From: “0754658643” sip:[email protected];tag=as43d2ffe5.
To: sip:[email protected]:53808;rinstance=738f3903138d0f74.
Contact: sip:[email protected]:5060.
Call-ID: [email protected]:5060.
CSeq: 102 INVITE.
User-Agent: FPBX-13.0.192.9(11.23.1).
Date: Tue, 18 Jul 2017 10:00:47 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE.
Supported: replaces, timer.
P-Asserted-Identity: “0754658643” sip:[email protected].
Content-Type: application/sdp.
Content-Length: 314.
.
v=0.
o=root 308767090 308767090 IN IP4 192.168.1.199.
s=Asterisk PBX 11.23.1.
c=IN IP4 192.168.1.199.
t=0 0.
m=audio 16028 RTP/AVP 8 0 3 111 101.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:3 GSM/8000.
a=rtpmap:111 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=ptime:20.
a=sendrecv.

U 192.168.1.11:53808 -> 192.168.1.199:5060
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 192.168.1.199:5060;branch=z9hG4bK5489cf70.
Contact: sip:[email protected]:53808;rinstance=738f3903138d0f74.
To: sip:[email protected]:53808;rinstance=738f3903138d0f74;tag=73051d57.
From: "0754658643"sip:[email protected];tag=as43d2ffe5.
Call-ID: [email protected]:5060.
CSeq: 102 INVITE.
User-Agent: 3CXPhone 6.0.26523.0.
Content-Length: 0.
.

U 192.168.1.11:53808 -> 192.168.1.199:5060
SIP/2.0 486 Busy Here.
Via: SIP/2.0/UDP 192.168.1.199:5060;branch=z9hG4bK5489cf70.
To: sip:[email protected]:53808;rinstance=738f3903138d0f74;tag=73051d57.
From: "0754658643"sip:[email protected];tag=as43d2ffe5.
Call-ID: [email protected]:5060.
CSeq: 102 INVITE.
User-Agent: 3CXPhone 6.0.26523.0.
Content-Length: 0.
.

U 192.168.1.199:5060 -> 192.168.1.11:53808
ACK sip:[email protected]:53808;rinstance=738f3903138d0f74 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.199:5060;branch=z9hG4bK5489cf70.
Max-Forwards: 70.
From: “0754658643” sip:[email protected];tag=as43d2ffe5.
To: sip:[email protected]:53808;rinstance=738f3903138d0f74;tag=73051d57.
Contact: sip:[email protected]:5060.
Call-ID: [email protected]:5060.
CSeq: 102 ACK.
User-Agent: FPBX-13.0.192.9(11.23.1).
Content-Length: 0.
.

U 192.168.1.199:5060 -> 192.168.1.11:53808
INVITE sip:[email protected]:53808;rinstance=738f3903138d0f74 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.199:5060;branch=z9hG4bK3172e159.
Max-Forwards: 70.
From: “0754658643” sip:[email protected];tag=as7ce1aabf.
To: sip:[email protected]:53808;rinstance=738f3903138d0f74.
Contact: sip:[email protected]:5060.
Call-ID: [email protected]:5060.
CSeq: 102 INVITE.
User-Agent: FPBX-13.0.192.9(11.23.1).
Date: Tue, 18 Jul 2017 10:00:55 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE.
Supported: replaces, timer.
P-Asserted-Identity: “0754658643” sip:[email protected].
Content-Type: application/sdp.
Content-Length: 316.
.
v=0.
o=root 1668643490 1668643490 IN IP4 192.168.1.199.
s=Asterisk PBX 11.23.1.
c=IN IP4 192.168.1.199.
t=0 0.
m=audio 13650 RTP/AVP 0 8 3 111 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:3 GSM/8000.
a=rtpmap:111 G726-32/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=ptime:20.
a=sendrecv.

U 192.168.1.11:53808 -> 192.168.1.199:5060
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 192.168.1.199:5060;branch=z9hG4bK3172e159.
Contact: sip:[email protected]:53808;rinstance=738f3903138d0f74.
To: sip:[email protected]:53808;rinstance=738f3903138d0f74;tag=d33f6a37.
From: "0754658643"sip:[email protected];tag=as7ce1aabf.
Call-ID: [email protected]:5060.
CSeq: 102 INVITE.
User-Agent: 3CXPhone 6.0.26523.0.
Content-Length: 0.
.

U 192.168.1.11:53808 -> 192.168.1.199:5060
SIP/2.0 486 Busy Here.
Via: SIP/2.0/UDP 192.168.1.199:5060;branch=z9hG4bK3172e159.
To: sip:[email protected]:53808;rinstance=738f3903138d0f74;tag=d33f6a37.
From: "0754658643"sip:[email protected];tag=as7ce1aabf.
Call-ID: [email protected]:5060.
CSeq: 102 INVITE.
User-Agent: 3CXPhone 6.0.26523.0.
Content-Length: 0.
.

U 192.168.1.199:5060 -> 192.168.1.11:53808
ACK sip:[email protected]:53808;rinstance=738f3903138d0f74 SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.199:5060;branch=z9hG4bK3172e159.
Max-Forwards: 70.
From: “0754658643” sip:[email protected];tag=as7ce1aabf.
To: sip:[email protected]:53808;rinstance=738f3903138d0f74;tag=d33f6a37.
Contact: sip:[email protected]:5060.
Call-ID: [email protected]:5060.
CSeq: 102 ACK.
User-Agent: FPBX-13.0.192.9(11.23.1).
Content-Length: 0.
.

Ok by mistake i don’t know why all extensions had follow me activated…with some weird config to call on the same extension like a loop.

So after disable follow me everything it is ok.

Thank you