Failed to authenticate on INVITE (Sipgate)

Hello

I’m all set up with Asterisk 1.2 on my Mac and everything is working fine. I’ve been using Gradwell as my provider and I’m very happy with them. The time has come however to add another account to Asterisk. This time the provider is Sipgate. Unfortunately, although I can receive calls, when I try to place one I get:

Nov 24 20:34:02 NOTICE[285] chan_sip.c: Failed to authenticate on INVITE to ‘“01111111111” sip:1111111@sipgate.co.uk;tag=as607f34a8’

So I wonder if anyone would be happy to review my settings? The SIP DEBUG shows that the response from the Sipgate server is ‘603 Declined’. I’ve made sure the password and username are correct. I even set up another account - but the same thing happened.

Many thanks.

Chris

[general]
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
rtptimeout=180
rtpholdtimeout=300
externip=212.xxx.xxx.xxx
localnet=192.168.2.0/255.255.255.0
nat=yes
qualify=4000
alwaysauthreject=yes
deny=0.0.0.0/0.0.0.0
permit=192.168.2.0/255.255.255.0
allowguest=no

register => 1111111:XXXXXXXX@sipgate.co.uk/1111111

[1111111]
type=friend
uesrname=1111111
secret=XXXXXXXX
fromuser=1111111
fromdomain=sipgate.co.uk
host=sipgate.co.uk
insecure=invite
dtmfmode=rfc2833
context=fromsipgatetest

Most people will have forgotten Asterisk 1.2. It has been end of lifed for some time, and I’m not sure if it even gets security fixes. Is there any reason why you cannot use a supported version?

I’m not keen on upgrading the server to try and resolve this problem. I’d rather have the scientific approach of finding out what is causing the problem. But if it means I cannot get the support of the forum until I do, then so be it! :astonished:) It’s just going to take time as the hardware is no longer supported by Apple either!

Thanks anyway. I’ll return to this topic once the upgrade has been done.

:astonished:(

So I persevered for 8 months and one day I found the answer. In the config I have:

uesrname=1111111

Nobody saw it! Well, just in case anyone is having a similar problem, check your spelling! You can’t authenticate without a username and you won’t necessarily be prompted with an error message while Asterisk processes your sip.conf!

Have a nice day!
:smiley: