@Lucy, Please take note THERE are responces to the requests.
Those are the 401 status responces. The 401 response SHOULD cuase a new INVITE WITH authentication info, problem is it doesn't create those but just retransmists the un-authenticated.
AFAICT the 401 on INVITE has never been picked up by the SIP server.
The VOIP provider wants to authenticate INVITEs as well as REGISTER.
I tried using linphone & zoiper and they DO respond to the 401 adequately and get an immediate conversation.
I can confirm form the logging this is handled like a timeout:
Here is the logging from the New Brekeke sv.log
From a test.
A full .PCAP is available for brekeke developpers if needed.
Code: Select all
session.8: sipex.7: start: from=<sip:SenderPhone#@sipvoice.isp> to=<sip:Callee#@sipvoice.isp>
session.8: information:
starttime = 08/20/18 21:17:33.463
timestamps = 08/20/18 21:17:33.457 (1) 08/20/18 21:17:33.458 (2) 08/20/18 21:17:33.460
spiral-hop = 1
dispatcher-id = 1
plugin = com.brekeke.net.sip.sv.session.plugins.InviteSession
request = INVITE sip:Callee#@sipvoice.isp SIP/2.0
rulename = outbound & From PBX
org:From: = sip:SenderPhone#@sipvoice.isp
new:From: = sip:SenderPhone#@sipvoice.isp
org:To: = sip:Callee#@sipvoice.isp
new:To: = sip:Callee#@sipvoice.isp
src:addr/port = 127.0.0.1:15062 (UDP local-addr if)
src:interface = 127.0.0.1:5060 (UDP local-addr)
dst:addr/port = Provider.ip.ad.re.ss:5060 (UDP global-addr)
dst:interface = Brekeke.ip.ad.re.ss:5060 (UDP global-addr)
uac:user-agent= Brekeke PBX
mode:B2BUA = on
mode:RTPrelay = off
mode:Auth = off (user-required)
mode:NAT = auto
session.8: phase=0: Initializing
session.8: System Used Memory = 8536
session.8: receive: from=UAC:127.0.0.1:15062(UDP) at 08/20/18 21:17:33.463
==============================================
INVITE sip:Callee#@sipvoice.isp SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:15062;rport=15062;branch=z9hG4bKc47e22a8df3a
From: "SenderPhone#" <sip:SenderPhone#@sipvoice.isp>;tag=bce6b1372p
To: <sip:Callee#@sipvoice.isp>
Max-Forwards: 67
Contact: <sip:SenderPhone#@127.0.0.1:15062>
Call-ID: 46f3ecf5-dc844233-cb05f53c-7f6198b0
User-Agent: Brekeke PBX
CSeq: 1 INVITE
Abandon-Timer: 4000ms
Allow: INVITE,ACK,BYE,CANCEL,INFO,MESSAGE,REFER,NOTIFY,SUBSCRIBE,UPDATE,PRACK
Content-Type: application/sdp
Content-Length: 147
v=0
o=bk 5 1 IN IP4 <$if:127.0.0.1>
s=-
c=IN IP4 <$if:127.0.0.1>
t=0 0
m=audio 30002 RTP/AVP 0
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
==============================================
session.8: content-type=application/sdp plugin=com.brekeke.net.content.application.Sdp
session.8: pkt#=1 dp=1 st=0 sip:SenderPhone#@sipvoice.isp(127.0.0.1:15062) --> sip:Callee#@sipvoice.isp(Provider.ip.ad.re.ss)
send="INVITE sip:Callee#@sipvoice.isp SIP/2.0"
session.8: phase=1: Inviting
session.8: processtime=7
session.8: send: to=UAS:Provider.ip.ad.re.ss(UDP) at 08/20/18 21:17:33.464
==============================================
INVITE sip:Callee#@sipvoice.isp SIP/2.0
Via: SIP/2.0/UDP Brekeke.ip.ad.re.ss:5060;branch=z9hG4bKd5e97fff51c4-30-2e4886
From: "SenderPhone#" <sip:SenderPhone#@sipvoice.isp>;tag=bce6b1372p
To: <sip:Callee#@sipvoice.isp>
Max-Forwards: 66
Contact: <sip:SenderPhone#@Brekeke.ip.ad.re.ss:5060>
Call-ID: 46f3ecf5-dc844233-cb05f53c-7f6198b0
User-Agent: Brekeke PBX
CSeq: 1 INVITE
Allow: INVITE,ACK,BYE,CANCEL,INFO,MESSAGE,REFER,NOTIFY,SUBSCRIBE,UPDATE,PRACK
Content-Type: application/sdp
Content-Length: 147
v=0
o=bk 5 1 IN IP4 Brekeke.ip.ad.re.ss
s=-
c=IN IP4 Brekeke.ip.ad.re.ss
t=0 0
m=audio 30002 RTP/AVP 0
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
==============================================
session.8: stat: result=undefined(6) close=false
> +--------------+--------------+--------------+--------------+
> | 1 INVITE | | 1 INVITE | |
> +--------------+--------------+--------------+--------------+
> 1/1 0/0 1/1 0/0
> ResendStat: INVITE(1),
session.8: termination: reason=timeout
session.8: phase=6: Closing
session.8: send: to=UAC:127.0.0.1:15062(UDP) at 08/20/18 21:17:37.464
==============================================
SIP/2.0 504 Server Time-out
Via: SIP/2.0/UDP 127.0.0.1:15062;rport=15062;branch=z9hG4bKc47e22a8df3a
From: "SenderPhone#" <sip:SenderPhone#@sipvoice.isp>;tag=bce6b1372p
To: <sip:Callee#@sipvoice.isp>;tag=b49ce798bs
Call-ID: 46f3ecf5-dc844233-cb05f53c-7f6198b0
CSeq: 1 INVITE
Server: Brekeke SIP Server
Content-Length: 0
==============================================
session.8: status: Zombie at Closing
session.8: stat: result=Time Out(4) close=false
> +--------------+--------------+--------------+--------------+
> | | 504 | 1 INVITE | |
> +--------------+--------------+--------------+--------------+
> 0/0 0/0 1/1 0/0
> ResendStat: 504-INVITE(1),
session.8: receive: from=UAC:127.0.0.1:15062(UDP) at 08/20/18 21:17:37.465
==============================================
ACK sip:Callee#@sipvoice.isp SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:15062;rport=15062;branch=z9hG4bKc47e22a8df3a
From: "SenderPhone#" <sip:SenderPhone#@sipvoice.isp>;tag=bce6b1372p
To: <sip:Callee#@sipvoice.isp>;tag=b49ce798bs
Max-Forwards: 67
Contact: <sip:SenderPhone#@127.0.0.1:15062>
Call-ID: 46f3ecf5-dc844233-cb05f53c-7f6198b0
User-Agent: Brekeke PBX
CSeq: 1 ACK
Content-Length: 0
==============================================
session.8: pkt#=2 dp=1 st=0 sip:SenderPhone#@sipvoice.isp(127.0.0.1:15062) --> sip:Callee#@sipvoice.isp(Provider.ip.ad.re.ss)
send="ACK sip:Callee#@sipvoice.isp SIP/2.0"
session.8: Accept ACK and doesn't forward it
session.8: stat: result=Time Out(4) close=false ( wait-retry )
> +--------------+--------------+--------------+--------------+
> | | | 1 INVITE | |
> +--------------+--------------+--------------+--------------+
> 0/0 0/0 1/1 0/0
session.6: receive: from=UAS:127.0.0.1:15060(UDP) at 08/20/18 21:17:37.571
==============================================
SIP/2.0 486 Busy Here
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bKd5e97e84c6a6-30-2e4886
From: "Ext" <sip:Ext@caller.dns.domain>;tag=4210317052
To: <sip:Callee#@caller.dns.domain;user=phone>;tag=b651622bfp
Call-ID: 2049390325@Ext.ip.ad.re.ss
CSeq: 2 INVITE
Content-Length: 0
==============================================
session.6: pkt#=3 dp=2 st=0 sip:Callee#@caller.dns.domain(127.0.0.1:15060) --> sip:Ext@caller.dns.domain(Ext.ip.ad.re.ss:5060)
send="SIP/2.0 486 Busy Here"
session.6: phase=6: Closing
session.6: processtime=1
session.6: send: to=UAC:Ext.ip.ad.re.ss:5060(UDP) at 08/20/18 21:17:37.571
==============================================
SIP/2.0 486 Busy Here
Via: SIP/2.0/UDP Ext.ip.ad.re.ss:5060;branch=z9hG4bKf1427858b65fb552242826542b180061;rport=5060
From: "Ext" <sip:Ext@caller.dns.domain>;tag=4210317052
To: <sip:Callee#@caller.dns.domain;user=phone>;tag=b651622bfp
Call-ID: 2049390325@Ext.ip.ad.re.ss
CSeq: 2 INVITE
Content-Length: 0