[Shtoom] Shtoom/SIP working (thru NAT!) ????

seberino at spawar.navy.mil seberino at spawar.navy.mil
Sat Jan 22 19:39:37 CET 2005


Is Shtoom working behind my NATing firewall??  Looks like perhaps yes...


Here is my .shtoomrc and my shtoomphone.py output...

[shtoom]
audio=oss
ui=qt

[identity]
username=seberino

[register]
register_uri=sip:switch-2.nufone.net
register_authuser=seberino
register_user=seberino
register_authpasswd=XXXXX


===================================================

2005/01/22 10:32 PST [-] Log opened.
2005/01/22 10:32 PST [-] <class 'shtoom.sip.SipProtocol'> starting on
5060
2005/01/22 10:32 PST [-] Starting protocol <shtoom.sip.SipProtocol
object at 0xb7b9b82c>
2005/01/22 10:32 PST [app] sip listener installed on 5060
2005/01/22 10:32 PST [-] no outstanding registrations, registering
2005/01/22 10:32 PST [-]
twisted.internet.protocol.ConnectedDatagramProtocol starting on 0
2005/01/22 10:32 PST [-] Starting protocol
<twisted.internet.protocol.ConnectedDatagramProtocol instance at
0xb7ac3a8c>
2005/01/22 10:32 PST [sip] discovered local address ('192.168.100.3',
5060), remote ('switch-2.nufone.net', 5060)
2005/01/22 10:32 PST [sip] stun policy says yes, use STUN
2005/01/22 10:32 PST [-] (Port 0 Closed)
2005/01/22 10:32 PST [-] Stopping protocol
<twisted.internet.protocol.ConnectedDatagramProtocol instance at
0xb7ac3a8c>
2005/01/22 10:32 PST [stun] got STUN response from ('64.69.76.23',
3478)
2005/01/22 10:32 PST [sip] according to STUN, local address is
66.159.194.51:5060
2005/01/22 10:32 PST [ui] register sent
 REGISTER sip:seberino at switch-2.nufone.net SIP/2.0

 Via: SIP/2.0/UDP 66.159.194.51:5060

 CSeq: 3363 REGISTER

 To: sip:seberino at switch-2.nufone.net

 From: sip:seberino at switch-2.nufone.net

 Expires: 900

 Call-ID: 401507385 at 66.159.194.51

 User-Agent: Shtoom/0.3alpha0

 Contact: <sip:seberino at 66.159.194.51:5060>

 Content-Length: 0




2005/01/22 10:32 PST [ui] Got a SIP packet from 198.22.67.70:5060
2005/01/22 10:32 PST [ui] SIP PACKET
 SIP/2.0 100 Trying

 Via: SIP/2.0/UDP 66.159.194.51:5060;received=66.159.194.51;rport=5060

 From: sip:seberino at switch-2.nufone.net

 To: sip:seberino at switch-2.nufone.net;tag=as4a099353

 Call-ID: 401507385 at 66.159.194.51

 CSeq: 3363 REGISTER

 User-Agent: Asterisk PBX

 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

 Contact: <sip:seberino at 198.22.67.70>

 Content-Length: 0




2005/01/22 10:32 PST [ui] got SIP response 100: Trying
2005/01/22 10:32 PST [ui] got SIP response
  SIP/2.0 100 Trying

 Via: SIP/2.0/UDP 66.159.194.51:5060;received=66.159.194.51;rport=5060

 From: sip:seberino at switch-2.nufone.net

 To: sip:seberino at switch-2.nufone.net;tag=as4a099353

 Call-ID: 401507385 at 66.159.194.51

 CSeq: 3363 REGISTER

 User-Agent: Asterisk PBX

 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

 Contact: <sip:seberino at 198.22.67.70>

 Content-Length: 0




2005/01/22 10:32 PST [ui] Got a SIP packet from 198.22.67.70:5060
2005/01/22 10:32 PST [ui] SIP PACKET
 SIP/2.0 401 Unauthorized

 Via: SIP/2.0/UDP 66.159.194.51:5060;received=66.159.194.51;rport=5060

 From: sip:seberino at switch-2.nufone.net

 To: sip:seberino at switch-2.nufone.net;tag=as4a099353

 Call-ID: 401507385 at 66.159.194.51

 CSeq: 3363 REGISTER

 User-Agent: Asterisk PBX

 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

 Contact: <sip:seberino at 198.22.67.70>

 WWW-Authenticate: Digest realm="asterisk", nonce="2f70b9ac"

 Content-Length: 0




2005/01/22 10:32 PST [ui] got SIP response 401: Unauthorized
2005/01/22 10:32 PST [ui] got SIP response
  SIP/2.0 401 Unauthorized

 Via: SIP/2.0/UDP 66.159.194.51:5060;received=66.159.194.51;rport=5060

 From: sip:seberino at switch-2.nufone.net

 To: sip:seberino at switch-2.nufone.net;tag=as4a099353

 Call-ID: 401507385 at 66.159.194.51

 CSeq: 3363 REGISTER

 User-Agent: Asterisk PBX

 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

 Contact: <sip:seberino at 198.22.67.70>

 WWW-Authenticate: Digest realm="asterisk", nonce="2f70b9ac"

 Content-Length: 0

2005/01/22 10:32 PST [ui] register sent
 REGISTER sip:seberino at switch-2.nufone.net SIP/2.0

 Via: SIP/2.0/UDP 66.159.194.51:5060

 CSeq: 3364 REGISTER

 To: sip:seberino at switch-2.nufone.net

 From: sip:seberino at switch-2.nufone.net

 Expires: 900

 Call-ID: 401507385 at 66.159.194.51

 Authorization: Digest username="seberino", realm="asterisk",
 nonce="2f70b9ac", uri="sip:seberino at switch-2.nufone.net",
 response="513a840ef683366e7be5c06d3a1286ea"

 User-Agent: Shtoom/0.3alpha0

 Contact: <sip:seberino at 66.159.194.51:5060>

 Content-Length: 0




2005/01/22 10:32 PST [ui] Got a SIP packet from 198.22.67.70:5060
2005/01/22 10:32 PST [ui] SIP PACKET
 SIP/2.0 100 Trying

 Via: SIP/2.0/UDP 66.159.194.51:5060;received=66.159.194.51;rport=5060

 From: sip:seberino at switch-2.nufone.net

 To: sip:seberino at switch-2.nufone.net;tag=as4a099353

 Call-ID: 401507385 at 66.159.194.51

 CSeq: 3364 REGISTER

 User-Agent: Asterisk PBX

 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

 Contact: <sip:seberino at 198.22.67.70>

 Content-Length: 0




2005/01/22 10:32 PST [ui] got SIP response 100: Trying
2005/01/22 10:32 PST [ui] got SIP response
  SIP/2.0 100 Trying

 Via: SIP/2.0/UDP 66.159.194.51:5060;received=66.159.194.51;rport=5060

 From: sip:seberino at switch-2.nufone.net

 To: sip:seberino at switch-2.nufone.net;tag=as4a099353

 Call-ID: 401507385 at 66.159.194.51

 CSeq: 3364 REGISTER

 User-Agent: Asterisk PBX

 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

 Contact: <sip:seberino at 198.22.67.70>

 Content-Length: 0




2005/01/22 10:32 PST [ui] Got a SIP packet from 198.22.67.70:5060
2005/01/22 10:32 PST [ui] SIP PACKET
 SIP/2.0 200 OK

 Via: SIP/2.0/UDP 66.159.194.51:5060;received=66.159.194.51;rport=5060

 From: sip:seberino at switch-2.nufone.net

 To: sip:seberino at switch-2.nufone.net;tag=as4a099353

 Call-ID: 401507385 at 66.159.194.51

 CSeq: 3364 REGISTER

 User-Agent: Asterisk PBX

 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

 Expires: 900

 Contact: <sip:seberino at 66.159.194.51:5060>;expires=900

 Date: Sat, 22 Jan 2005 18:32:26 GMT

 Content-Length: 0




2005/01/22 10:32 PST [ui] got SIP response 200: OK
2005/01/22 10:32 PST [ui] got SIP response
  SIP/2.0 200 OK

 Via: SIP/2.0/UDP 66.159.194.51:5060;received=66.159.194.51;rport=5060

 From: sip:seberino at switch-2.nufone.net

 To: sip:seberino at switch-2.nufone.net;tag=as4a099353

 Call-ID: 401507385 at 66.159.194.51

 CSeq: 3364 REGISTER

 User-Agent: Asterisk PBX

 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER

 Expires: 900

 Contact: <sip:seberino at 66.159.194.51:5060>;expires=900

 Date: Sat, 22 Jan 2005 18:32:26 GMT

 Content-Length: 0



More information about the Shtoom mailing list