[Asterisk-Users] (Kphone) Registration Failed: Forbidden
Race Vanderdecken
asteriskusers at codetyrant.com
Fri Feb 18 10:53:19 MST 2005
Hmmm, I am stumped.
I am not sure about this line though.
REGISTER SIP:7004 at 10.8.5.138 SIP/2.0
7004, is the funny thing, was there a user 7004 in the soft-phone at one
time?
I was getting similar stuff yesterday with my Snom 200. I had misspelled
the user name "snom103" as "Snom103", the "s" was capitalized.
Even after I changed it on the phone to "snom103" and changed it via the
http screens to the phone, the "Snom103" kept showing up, even after an
Asterisk reboot and a thorough grep of all the files involved.
Eventually after cursing and gnashing teeth (or is that GnuNashing, to
swear at open source,...) it registered, but the "Snom103" kept showing
up.
Even now it is showing up, a day later, what gives with that?
chan_sip.c:7673 -- I have turned to logging with ethereal to find the
little bastard and kill it.
Race "The Tyrant" Vanderdecken
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ariel
Molina Rueda
Sent: Friday, February 18, 2005 11:43 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] (Kphone) Registration Failed: Forbidden
This is a very simple setup, dont know why it isnt working. I have my
sip.conf with only one number configured as Race Vanderdecken suggested:
[8003]
type=friend
host=dynamic ;<- This is supposed to allow registration, isnt it?
username=ariel
disallow=all
allow=ulaw
And only one extension in extensions.conf
exten => 8003,1,Dial(Sip/8003,${RINGTIME},rt)
exten => 8003,2,SetLanguage(en)
exten => 8003,3,Voicemail(u8003)
exten => 8003,103,Voicemail(b8003)
exten => 8003,104,Hangup
But i still cant register with kphone, i tryed using linphone to discard
kphone specific problems, but linphone show the same error.
My sip debug output:
Sip read:
REGISTER SIP:7004 at 10.8.5.138 SIP/2.0
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK2689178379
From: <sip:8003 at 10.8.5.138>;tag=1847383016
To: <sip:8003 at 10.8.5.138>;tag=1847383016
Call-ID: 3008505897 at 10.8.5.110
CSeq: 0 REGISTER
Contact: <sip:8003 at 10.8.5.110>
max-forwards: 10
expires: 900
user-agent: oSIP/Linphone-0.12.1
Content-Length: 0
11 headers, 0 lines
Using latest request as basis request
Sending to 10.8.5.110 : 5060 (NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK2689178379
From: <sip:8003 at 10.8.5.138>;tag=1847383016
To: <sip:8003 at 10.8.5.138>;tag=1847383016
Call-ID: 3008505897 at 10.8.5.110
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:8003 at 10.8.5.138>
Content-Length: 0
to 10.8.5.110:5060
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK2689178379
From: <sip:8003 at 10.8.5.138>;tag=1847383016
To: <sip:8003 at 10.8.5.138>;tag=1847383016
Call-ID: 3008505897 at 10.8.5.110
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:8003 at 10.8.5.138>
WWW-Authenticate: Digest realm="asterisk", nonce="65c9a28e"
Content-Length: 0
to 10.8.5.110:5060
Scheduling destruction of call '3008505897 at 10.8.5.110' in 15000 ms
astsk*CLI> sip show peers
Sip read:
REGISTER SIP:7004 at 10.8.5.138 SIP/2.0
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK4004561277
From: <sip:8003 at 10.8.5.138>;tag=3684319874
To: <sip:8003 at 10.8.5.138>;tag=3684319874
Call-ID: 3008505897 at 10.8.5.110
CSeq: 1 REGISTER
Contact: <sip:8003 at 10.8.5.110>
Authorization: Digest username="8003", realm="asterisk",
nonce="65c9a28e", uri="SIP:7004 at 10.8.5.138",
response="14ebbd9e01a99022f3015536e129e1b3", algorithm=MD5
max-forwards: 10
expires: 900
user-agent: oSIP/Linphone-0.12.1
Content-Length: 0
12 headers, 0 lines
Using latest request as basis request
Sending to 10.8.5.110 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK4004561277
From: <sip:8003 at 10.8.5.138>;tag=3684319874
To: <sip:8003 at 10.8.5.138>;tag=3684319874
Call-ID: 3008505897 at 10.8.5.110
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:8003 at 10.8.5.138>
Content-Length: 0
to 10.8.5.110:5060
Transmitting (no NAT):
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK4004561277
From: <sip:8003 at 10.8.5.138>;tag=3684319874
To: <sip:8003 at 10.8.5.138>;tag=3684319874
Call-ID: 3008505897 at 10.8.5.110
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:8003 at 10.8.5.138>
Content-Length: 0
to 10.8.5.110:5060
Feb 18 11:29:20 NOTICE[1814]: chan_sip.c:7654 handle_request:
Registration from '<sip:8003 at 10.8.5.138>;tag=3684319874' failed for
'10.8.5.110'
Scheduling destruction of call '3008505897 at 10.8.5.110' in 15000 ms
Destroying call '3008505897 at 10.8.5.110'
---
Sip read:
REGISTER SIP:7004 at 10.8.5.138 SIP/2.0
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK3871759398
From: <sip:8003 at 10.8.5.138>;tag=3733863423
To: <sip:8003 at 10.8.5.138>;tag=3733863423
Call-ID: 3431669868 at 10.8.5.110
CSeq: 0 REGISTER
Contact: <sip:8003 at 10.8.5.110>
max-forwards: 10
expires: 900
user-agent: oSIP/Linphone-0.12.1
Content-Length: 0
11 headers, 0 lines
Using latest request as basis request
Sending to 10.8.5.110 : 5060 (NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK3871759398
From: <sip:8003 at 10.8.5.138>;tag=3733863423
To: <sip:8003 at 10.8.5.138>;tag=3733863423
Call-ID: 3431669868 at 10.8.5.110
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:8003 at 10.8.5.138>
Content-Length: 0
to 10.8.5.110:5060
Transmitting (no NAT):
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK3871759398
From: <sip:8003 at 10.8.5.138>;tag=3733863423
To: <sip:8003 at 10.8.5.138>;tag=3733863423
Call-ID: 3431669868 at 10.8.5.110
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:8003 at 10.8.5.138>
WWW-Authenticate: Digest realm="asterisk", nonce="788be877"
Content-Length: 0
to 10.8.5.110:5060
Scheduling destruction of call '3431669868 at 10.8.5.110' in 15000 ms
astsk*CLI> sip show peers
Sip read:
REGISTER SIP:7004 at 10.8.5.138 SIP/2.0
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK3367696432
From: <sip:8003 at 10.8.5.138>;tag=1341050641
To: <sip:8003 at 10.8.5.138>;tag=1341050641
Call-ID: 3431669868 at 10.8.5.110
CSeq: 1 REGISTER
Contact: <sip:8003 at 10.8.5.110>
Authorization: Digest username="8003", realm="asterisk",
nonce="788be877", uri="SIP:7004 at 10.8.5.138",
response="90a57d2358f428ee52d0e4f04d5bf759", algorithm=MD5
max-forwards: 10
expires: 900
user-agent: oSIP/Linphone-0.12.1
Content-Length: 0
12 headers, 0 lines
Using latest request as basis request
Sending to 10.8.5.110 : 5060 (non-NAT)
Transmitting (no NAT):
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK3367696432
From: <sip:8003 at 10.8.5.138>;tag=1341050641
To: <sip:8003 at 10.8.5.138>;tag=1341050641
Call-ID: 3431669868 at 10.8.5.110
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:8003 at 10.8.5.138>
Content-Length: 0
to 10.8.5.110:5060
Transmitting (no NAT):
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK3367696432
From: <sip:8003 at 10.8.5.138>;tag=1341050641
To: <sip:8003 at 10.8.5.138>;tag=1341050641
Call-ID: 3431669868 at 10.8.5.110
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:8003 at 10.8.5.138>
Content-Length: 0
to 10.8.5.110:5060
Feb 18 11:29:47 NOTICE[1814]: chan_sip.c:7654 handle_request:
Registration from '<sip:8003 at 10.8.5.138>;tag=1341050641' failed for
'10.8.5.110'
Scheduling destruction of call '3431669868 at 10.8.5.110' in 15000 ms
Destroying call '3431669868 at 10.8.5.110'
Race Vanderdecken wrote:
>Okay,
>
>Rule number one, Only One Variable allowed per setup.
>
>Take out the secret= on the sip.conf
>
> [8003]
> type=friend
> host=dynamic ;<- This is supposed to allow registration, isnt it?
> username=ariel
> disallow=all
> allow=ulaw
>
>In fact, shorten the entire thing to a couple of lines like above.
>
>If that works, then add back lines, one line at a time, till something
>stops working, then you will know what the problem is.
>
>Also you can do
>
>astsk*CLI> sip debug
>
>And Asterisk will toss all kinds of SIP protocol information at you.
>
>If you get stuck write to me again with the sip debug stuff and I will
>help you look at it.
>
>
>Race "The Tyrant" Vanderdecken
>
>-----Original Message-----
>From: asterisk-users-bounces at lists.digium.com
>[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ariel
>Molina Rueda
>Sent: Thursday, February 17, 2005 4:41 PM
>To: Asterisk Users Mailing List - Non-Commercial Discussion
>Subject: [Asterisk-Users] (Kphone) Registration Failed: Forbidden
>
>I just can't get kphone to register with asterisk, i can make calls to
>the demos and even get into the mailbox but kphone cannot register.
>Here's my story. Can you help me?? Please
>
>I have installed asterisk on debian using apt-get install asterisk.
>I have configured an extension in extensions.conf as follows
>
> exten => 8003,1,Dial(Sip/8003,${RINGTIME},rt)
> exten => 8003,2,SetLanguage(en)
> exten => 8003,3,Voicemail(u8003)
> exten => 8003,103,Voicemail(b8003)
> exten => 8003,104,Hangup
>
>And in sip.conf i have
>
> [8003]
> type=friend
> host=dynamic ;<- This is supposed to allow registration, isnt it?
> callerid=Ariel Molina <8003>
> mailbox=8003
> dtfmmode=info
> username=ariel
> secret=wow
> disallow=all
> allow=ilbc
> allow=gsm
> allow=ulaw
> allow=alaw
> allow=g723.1
> allow=g729
>
>However when i try to register with kphone i get a dialog asking for my
>passwd. I give it and then i get
>
>(Kphone) Registration Failed: Forbidden
>
>I know i've used the correct passwd, i've even tryed to configure it
>using no password. I dont get the dialog box but i get the same error.
>
>My CLI output:
>
>astsk*CLI> Feb 17 16:22:12 NOTICE[7689]: chan_sip.c:7654
handle_request:
>
>Registration from '"Ariel Molina" <sip:8003 at 10.8.5.138>' failed for
>'10.8.5.110'
>
>Feb 17 16:22:12 NOTICE[7689]: chan_sip.c:7654 handle_request:
>Registration from '"Ariel Molina" <sip:8003 at 10.8.5.138>' failed for
>'10.8.5.110'
>astsk*CLI>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list