Status: Fixed
Owner: [email protected]
Labels: Type-Defect Priority-Critical Component-Logic OpSys-All
New issue 12 by [email protected]: Proper handling of 407 Proxy
Authentication challenge for REGISTER
http://code.google.com/p/webrtcomm/issues/detail?id=12
What steps will reproduce the problem?
1. Try to point a WebRTComm client to a server that responds with 407 to
REGISTER
2. The client ignores 407
What is the expected output? What do you see instead?
The client should recognize 407 and respond with authentication
Here is the behavior before the patch:
00:09:05,737 INFO [gov.nist.javax.sip.stack.SIPTransactionStack]
(SIP-TCP-Core-PipelineThreadpool-11) <message
from="127.0.0.1:56999"
to="127.0.0.1:5082"
time="1380085745737"
isSender="false"
transactionId="z9hg4bk-383637-15e3ec0e0bb4b267bba30702fb914398"
callId="1380085745716"
firstLine="REGISTER sip:telestax.com SIP/2.0"
<![CDATA[REGISTER sip:telestax.com SIP/2.0
Call-ID: 1380085745716
CSeq: 1 REGISTER
From: <sip:[email protected]>;tag=1380085745726
To: <sip:[email protected]>
Via: SIP/2.0/WS
127.0.0.1:56999;branch=z9hG4bK-383637-15e3ec0e0bb4b267bba30702fb914398;rport=56999;received=127.0.0.1
Max-Forwards: 70
User-Agent: TelScale RTM/1.0.0.Alpha3-SNAPSHOT
Expires: 3600
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,MESSAGE
Contact: <sip:[email protected]:56999;transport=ws>
Content-Length: 0
]]>
</message>
00:09:05,738 INFO
[org.mobicents.servlet.sip.core.dispatchers.InitialRequestDispatcher]
(SIP-TCP-Core-PipelineThreadpool-11) Request event dispatched to RestComm
00:09:05,740 INFO [gov.nist.javax.sip.stack.SIPTransactionStack]
(RestComm-akka.actor.default-dispatcher-21) <message
from="127.0.0.1:5082"
to="127.0.0.1:56999"
time="1380085745740"
isSender="true"
transactionId="z9hg4bk-383637-15e3ec0e0bb4b267bba30702fb914398"
callId="1380085745716"
firstLine="SIP/2.0 407 Proxy Authentication required"
<![CDATA[SIP/2.0 407 Proxy Authentication required
To:
<sip:[email protected]>;tag=38686817_57a5b08a_5328dce8-ebc4-48f8-9c0e-dd29e056e37f
Via: SIP/2.0/WS
127.0.0.1:56999;branch=z9hG4bK-383637-15e3ec0e0bb4b267bba30702fb914398;rport=56999;received=127.0.0.1
CSeq: 1 REGISTER
Call-ID: 1380085745716
From: <sip:[email protected]>;tag=1380085745726
Proxy-Authenticate: Digest
realm="telestax.com",nonce="39363665663135312d653665392d343"
Content-Length: 0
]]>
</message>
Here is the behavior after the patch:
00:18:32,530 INFO [gov.nist.javax.sip.stack.SIPTransactionStack]
(SIP-TCP-Core-PipelineThreadpool-16) <message
from="127.0.0.1:57063"
to="127.0.0.1:5082"
time="1380086312530"
isSender="false"
transactionId="z9hg4bk-323132-049e27b59a2984da2bbe7e6bb1427052"
callId="1380086312509"
firstLine="REGISTER sip:telestax.com SIP/2.0"
<![CDATA[REGISTER sip:telestax.com SIP/2.0
Call-ID: 1380086312509
CSeq: 1 REGISTER
From: <sip:[email protected]>;tag=1380086312519
To: <sip:[email protected]>
Via: SIP/2.0/WS
127.0.0.1:57063;branch=z9hG4bK-323132-049e27b59a2984da2bbe7e6bb1427052;rport=57063;received=127.0.0.1
Max-Forwards: 70
User-Agent: TelScale RTM/1.0.0.Alpha3-SNAPSHOT
Expires: 3600
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,MESSAGE
Contact: <sip:[email protected]:57063;transport=ws>
Content-Length: 0
]]>
</message>
00:18:32,531 INFO
[org.mobicents.servlet.sip.core.dispatchers.InitialRequestDispatcher]
(SIP-TCP-Core-PipelineThreadpool-16) Request event dispatched to RestComm
00:18:32,532 INFO [gov.nist.javax.sip.stack.SIPTransactionStack]
(RestComm-akka.actor.default-dispatcher-50) <message
from="127.0.0.1:5082"
to="127.0.0.1:57063"
time="1380086312532"
isSender="true"
transactionId="z9hg4bk-323132-049e27b59a2984da2bbe7e6bb1427052"
callId="1380086312509"
firstLine="SIP/2.0 407 Proxy Authentication required"
<![CDATA[SIP/2.0 407 Proxy Authentication required
To:
<sip:[email protected]>;tag=31963822_57a5b08a_57b30596-ae02-4ed2-b366-4bc602129957
Via: SIP/2.0/WS
127.0.0.1:57063;branch=z9hG4bK-323132-049e27b59a2984da2bbe7e6bb1427052;rport=57063;received=127.0.0.1
CSeq: 1 REGISTER
Call-ID: 1380086312509
From: <sip:[email protected]>;tag=1380086312519
Proxy-Authenticate: Digest
realm="telestax.com",nonce="32353166643037632d393165362d343"
Content-Length: 0
]]>
</message>
00:18:32,550 INFO [gov.nist.javax.sip.stack.SIPTransactionStack]
(SIP-TCP-Core-PipelineThreadpool-17) <message
from="127.0.0.1:57063"
to="127.0.0.1:5082"
time="1380086312550"
isSender="false"
transactionId="z9hg4bk-323132-d77c7f856ae084ed728aac5ff7c01ad1"
callId="1380086312509"
firstLine="REGISTER sip:telestax.com SIP/2.0"
<![CDATA[REGISTER sip:telestax.com SIP/2.0
CSeq: 2 REGISTER
User-Agent: TelScale RTM/1.0.0.Alpha3-SNAPSHOT
Expires: 3600
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,MESSAGE
Contact: <sip:[email protected]:57063;transport=ws>
Call-ID: 1380086312509
Via: SIP/2.0/WS
127.0.0.1:57063;branch=z9hG4bK-323132-d77c7f856ae084ed728aac5ff7c01ad1;rport=57063;received=127.0.0.1
From: <sip:[email protected]>;tag=1380086312519
To: <sip:[email protected]>
Max-Forwards: 70
Proxy-Authorization: Digest
username="alice",realm="telestax.com",nonce="32353166643037632d393165362d343",response="4e167b47de7e8ce6c53fdd10f2f5364c",uri="sip:telestax.com",algorithm=MD5
Content-Length: 0
]]>
</message>
00:18:32,551 INFO
[org.mobicents.servlet.sip.core.dispatchers.InitialRequestDispatcher]
(SIP-TCP-Core-PipelineThreadpool-17) Request event dispatched to RestComm
00:18:32,554 INFO [stdout] (RestComm-akka.actor.default-dispatcher-52)
[INFO] [09/25/2013 00:18:32.554]
[RestComm-akka.actor.default-dispatcher-50] [akka://RestComm/user/$b] The
user agent manager registered alice
00:18:32,555 INFO [gov.nist.javax.sip.stack.SIPTransactionStack]
(RestComm-akka.actor.default-dispatcher-50) <message
from="127.0.0.1:5082"
to="127.0.0.1:57063"
time="1380086312555"
isSender="true"
transactionId="z9hg4bk-323132-d77c7f856ae084ed728aac5ff7c01ad1"
callId="1380086312509"
firstLine="SIP/2.0 200 OK"
<![CDATA[SIP/2.0 200 OK
To:
<sip:[email protected]>;tag=52958437_57a5b08a_72472b4e-0d3a-445d-8126-f51d1ea1e0ed
Via: SIP/2.0/WS
127.0.0.1:57063;branch=z9hG4bK-323132-d77c7f856ae084ed728aac5ff7c01ad1;rport=57063;received=127.0.0.1
CSeq: 2 REGISTER
Call-ID: 1380086312509
From: <sip:[email protected]>;tag=1380086312519
Contact: <sip:[email protected]:57063;transport=ws>;expires=3600
Content-Length: 0
]]>
</message>
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "mobicents-all-issues-changes" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.