[Shtoom] bug report followup: it works when not behind NAT

Zooko O'Whielacronx zooko at zooko.com
Wed Jan 19 21:58:57 CET 2005


I plugged into the Real Internet and tried again, and it registered.   
Here is the current shtoominfo when plugged into the Real Internet.

HACK draco:~/playground/shtoom/svnworld/trunk$  
./shtoom/scripts/shtoominfo.py
Shtoom, version 0.3alpha0
Using python version 2.3.0
Using twisted version SVN-trunk
Running on Darwin Power Macintosh 7.7.0
Available audio interfaces: fileaudio
Available codecs: mulaw
Local IP address: 24.215.68.128
No UPnP-capable device discovered
STUN says NAT type: FullCone
And the mapper we'd use is: <shtoom.stun.STUNMapper instance at  
0x610648>

Here is the log:

2005/01/19 16:55 AST [-] Log opened.
2005-01-19 16:55:35.890 Shtoom[7752] ShtoomAudioMonitor setDelegate
2005-01-19 16:55:35.989 Shtoom[7752] ShtoomAudioMonitor awakeFromNib
2005-01-19 16:55:35.990 Shtoom[7752] ShtoomAudioMonitor setSampleRate
2005-01-19 16:55:36.136 Shtoom[7752]  
MTAudioDeviceBrowser:selectedDeviceDidChange:
2005-01-19 16:55:36.136 Shtoom[7752] setDeviceOpen:
2005-01-19 16:55:36.137 Shtoom[7752] Stopping devices.
2005-01-19 16:55:36.143 Shtoom[7752]  
MTAudioDeviceBrowser:selectedDeviceDidChange:
2005-01-19 16:55:36.143 Shtoom[7752] setDeviceOpen:
2005-01-19 16:55:36.143 Shtoom[7752] Stopping devices.
2005-01-19 16:55:36.144 Shtoom[7752] setDeviceOpen:
2005-01-19 16:55:36.144 Shtoom[7752] Stopping devices.
2005-01-19 16:55:36.371 Shtoom[7752] Application did finish launching.
2005-01-19 16:55:36.373 Shtoom[7752] Audio Monitor =  
<ShtoomAudioMonitor: 0xb9cde0>
2005/01/19 16:55 AST [-] Zfone devel revision zfone v365, platform:  
Darwin-7.7.0-Power_Macintosh-powerpc-32bit
2005/01/19 16:55 AST [-] <class 'shtoom.sip.SipProtocol'> starting on  
5066
2005/01/19 16:55 AST [-] Starting protocol <shtoom.sip.SipProtocol  
object at 0xa5a990>
2005/01/19 16:55 AST [app] sip listener installed on 5066
2005/01/19 16:55 AST [-] <class 'shtoom.upnp.UPnPProtocol'> starting on  
1900
2005/01/19 16:55 AST [-] Starting protocol <shtoom.upnp.UPnPProtocol  
object at 0x6d120d0>
2005/01/19 16:55 AST [-] <class 'shtoom.stun._DetectSTUNProt'> starting  
on 0
2005/01/19 16:55 AST [-] Starting protocol <shtoom.stun._DetectSTUNProt  
object at 0x6d1ef70>
2005/01/19 16:55 AST [-] NamedAnyError: Name  
twisted.web.woven.guard.GuardSession not found.
2005/01/19 16:55 AST [-] NamedAnyError: Name  
twisted.web.woven.guard.GuardSession not found.
2005/01/19 16:55 AST [-] nevow.appserver.NevowSite starting on 0
2005/01/19 16:55 AST [-] Starting factory <nevow.appserver.NevowSite  
instance at 0x7042da0>
2005-01-19 16:55:38.798 Shtoom[7752] Preferences server listening on  
port 53419.
2005/01/19 16:55 AST [sip] no outstanding registrations, registering
2005/01/19 16:55 AST [-]  
twisted.internet.protocol.ConnectedDatagramProtocol starting on 0
2005/01/19 16:55 AST [-] Starting protocol  
<twisted.internet.protocol.ConnectedDatagramProtocol instance at  
0x70581e8>
2005/01/19 16:55 AST [sip] discovered local address ('24.215.68.128',  
5066), remote ('divmod.com', 5060)
2005/01/19 16:55 AST [-] Debug: register sent
	REGISTER sip:divmod.com:5060 SIP/2.0

	Via: SIP/2.0/UDP 24.215.68.128:5066;rport

	CSeq: 2697 REGISTER

	To: sip:zooko at divmod.com:5060

	From: sip:zooko at divmod.com:5060

	Expires: 900

	Call-ID: 400993727 at 24.215.68.128

	User-Agent: Shtoom/0.3alpha0

	Contact: <sip:zooko at 24.215.68.128:5066>

	Content-Length: 0

	

	
2005/01/19 16:55 AST [-]  
twisted.internet.protocol.ConnectedDatagramProtocol starting on 0
2005/01/19 16:55 AST [-] Starting protocol  
<twisted.internet.protocol.ConnectedDatagramProtocol instance at  
0x70585d0>
2005/01/19 16:55 AST [-] (Port 0 Closed)
2005/01/19 16:55 AST [-] Stopping protocol  
<twisted.internet.protocol.ConnectedDatagramProtocol instance at  
0x70581e8>
2005/01/19 16:55 AST [UPnP] UPnP discovery timed out
2005/01/19 16:55 AST [UPnP] no UPnP found!
2005/01/19 16:55 AST [-] (Port 0 Closed)
2005/01/19 16:55 AST [-] Stopping protocol  
<twisted.internet.protocol.ConnectedDatagramProtocol instance at  
0x70585d0>
2005/01/19 16:55 AST [stun] got STUN response from ('69.90.168.14',  
3478)
2005/01/19 16:55 AST [-] Debug: Got a SIP packet from  
198.49.126.192:5060
2005/01/19 16:55 AST [-] Debug: SIP PACKET
	SIP/2.0 401 Unauthorized

	Via: SIP/2.0/UDP 24.215.68.128:5066;received=24.215.68.128;rport=5066

	To: sip:zooko at divmod.com:5060

	From: sip:zooko at divmod.com:5060

	Call-ID: 400993727 at 24.215.68.128

	CSeq: 2697 REGISTER

	WWW-Authenticate: Digest  
nonce="10345170551339095801663502492",opaque="657028545",qop="auth",algo 
rithm="MD5",realm="divmod.com"

	

	
2005/01/19 16:55 AST [-] Debug: got SIP response 401: Unauthorized
2005/01/19 16:55 AST [-] Debug: got SIP response
	 SIP/2.0 401 Unauthorized

	Via: SIP/2.0/UDP 24.215.68.128:5066;received=24.215.68.128;rport=5066

	To: sip:zooko at divmod.com:5060

	From: sip:zooko at divmod.com:5060

	Call-ID: 400993727 at 24.215.68.128

	CSeq: 2697 REGISTER

	WWW-Authenticate: Digest  
nonce="10345170551339095801663502492",opaque="657028545",qop="auth",algo 
rithm="MD5",realm="divmod.com"

	

	
2005/01/19 16:55 AST [-] Debug: register sent
	REGISTER sip:divmod.com:5060 SIP/2.0

	Via: SIP/2.0/UDP 24.215.68.128:5066;rport

	CSeq: 2698 REGISTER

	To: sip:zooko at divmod.com:5060

	From: sip:zooko at divmod.com:5060

	Expires: 900

	Call-ID: 400993727 at 24.215.68.128

	Authorization: Digest username="zooko", realm="divmod.com",  
nonce="10345170551339095801663502492", uri="sip:divmod.com:5060",  
response="01acfb74354433ff7b7a2efd6a0d47f2", opaque="657028545",  
qop=auth, nc=00000001, cnonce="ed00"

	User-Agent: Shtoom/0.3alpha0

	Contact: <sip:zooko at 24.215.68.128:5066>

	Content-Length: 0

	

	
2005/01/19 16:55 AST [stun] got STUN response from ('69.90.168.13',  
3479)
2005/01/19 16:55 AST [nat] detectNAT got [(True, None), (True, <NatType  
FullCone>)]
2005/01/19 16:55 AST [nat] using STUN mapper
2005/01/19 16:55 AST [-] <class 'shtoom.stun._DetectSTUNProt'> starting  
on 0
2005/01/19 16:55 AST [-] Starting protocol <shtoom.stun._DetectSTUNProt  
object at 0x7055650>
2005/01/19 16:55 AST [-] (Port 0 Closed)
2005/01/19 16:55 AST [-] Stopping protocol <shtoom.stun._DetectSTUNProt  
object at 0x6d1ef70>
2005/01/19 16:55 AST [-]  
twisted.internet.protocol.ConnectedDatagramProtocol starting on 0
2005/01/19 16:55 AST [-] Starting protocol  
<twisted.internet.protocol.ConnectedDatagramProtocol instance at  
0x6d32c38>
2005/01/19 16:55 AST [stun] got STUN response from ('69.90.168.14',  
3478)
2005/01/19 16:55 AST [-] (Port 0 Closed)
2005/01/19 16:55 AST [-] Stopping protocol  
<twisted.internet.protocol.ConnectedDatagramProtocol instance at  
0x6d32c38>
2005/01/19 16:55 AST [-] Debug: Got a SIP packet from  
198.49.126.192:5060
2005/01/19 16:55 AST [-] Debug: SIP PACKET
	SIP/2.0 200 OK

	Via: SIP/2.0/UDP 24.215.68.128:5066;received=24.215.68.128;rport=5066

	To: sip:zooko at divmod.com:5060

	From: sip:zooko at divmod.com:5060

	Call-ID: 400993727 at 24.215.68.128

	CSeq: 2698 REGISTER

	Contact: sip:zooko at 24.215.68.128:5066

	Expires: 900

	Content-length: 0

	

	
2005/01/19 16:55 AST [-] Debug: got SIP response 200: OK
2005/01/19 16:55 AST [-] Debug: got SIP response
	 SIP/2.0 200 OK

	Via: SIP/2.0/UDP 24.215.68.128:5066;received=24.215.68.128;rport=5066

	To: sip:zooko at divmod.com:5060

	From: sip:zooko at divmod.com:5060

	Call-ID: 400993727 at 24.215.68.128

	CSeq: 2698 REGISTER

	Contact: sip:zooko at 24.215.68.128:5066

	Expires: 900

	Content-Length: 0

	

	
2005/01/19 16:55 AST [stun] got STUN response from ('69.90.168.13',  
3479)
2005/01/19 16:55 AST [-] (Port 0 Closed)
2005/01/19 16:55 AST [-] Stopping protocol <shtoom.stun._DetectSTUNProt  
object at 0x7055650>
2005/01/19 16:55 AST [stun] got STUN response from ('69.90.168.14',  
3478)
2005/01/19 16:55 AST [sip] late stun packet, ignoring
2005/01/19 16:55 AST [sip] late stun packet, ignoring
2005/01/19 16:55 AST [-] Annnnd we're dying
2005/01/19 16:55 AST [-] stopping SIP, and unmapping it (True)
2005/01/19 16:55 AST [-] unmapping sip (<shtoom.stun.STUNMapper  
instance at 0x705b3f0>)
2005/01/19 16:55 AST [nevow.appserver.NevowSite] (Port 0 Closed)
2005/01/19 16:55 AST [nevow.appserver.NevowSite] Stopping factory  
<nevow.appserver.NevowSite instance at 0x7042da0>
2005/01/19 16:55 AST [shtoom.upnp.UPnPProtocol (UDP)] (Port 1900 Closed)
2005/01/19 16:55 AST [shtoom.upnp.UPnPProtocol (UDP)] Stopping protocol  
<shtoom.upnp.UPnPProtocol object at 0x6d120d0>
	




More information about the Shtoom mailing list