[Shtoom] registering to asterisk

Hugo Hallqvist hugohallqvist at gmail.com
Sat Jun 4 22:50:43 CEST 2005


Hello,

I'm trying out shtoom on win32, I've got it up and running after a few
hours of fiddling with fastaudio and stuff. Anyway my problem is that
the first register-message receives just an 403 forbidden instead of
401 unauthorized. I believe I have done something wrong when setting
up shtoom. I have a user on asterisk called 22 (with the same
auth-user) and I have the following options in .shtoomrc:

[identity]
username=hugo
email_address=hugohallqvist at gmail.com

[register]
register_uri=sip:server.hallqvist.rr.nu
register_authuser=22
register_user=22
register_authpasswd=22

Do you have any immediate suggestions?

There is a note in Registration.recvResponse() (line 1049) about *,
however shtoom never gets there since it doesn't get a 401 or 407 but
a 403 on registration.

Attaching sip-conversation as taken from asterisk console:

Sip read:
REGISTER sip:server.hallqvist.rr.nu SIP/2.0
Via: SIP/2.0/UDP 213.114.166.49:5060;rport
CSeq: 4239 REGISTER
To: sip:hugo at server.hallqvist.rr.nu
From: sip:hugo at server.hallqvist.rr.nu
Expires: 900
Call-ID: 400854712 at 213.114.166.49
User-Agent: Shtoom/0.3alpha0
Contact: <sip:hugo at 213.114.166.49:5060>
Content-Length: 0


10 headers, 0 lines
Using latest request as basis request
Sending to 213.114.166.49 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 213.114.166.49:5060
From: sip:hugo at server.hallqvist.rr.nu
To: sip:hugo at server.hallqvist.rr.nu;tag=as0d1d397a
Call-ID: 400854712 at 213.114.166.49
CSeq: 4239 REGISTER
User-Agent: Hallqvist Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:hugo at 213.114.166.62>
Content-Length: 0

Eagerly awaint your reponse. :-)

//Hugo



More information about the Shtoom mailing list