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,HangupBut 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:[EMAIL PROTECTED] SIP/2.0 Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK2689178379 From: <sip:[EMAIL PROTECTED]>;tag=1847383016 To: <sip:[EMAIL PROTECTED]>;tag=1847383016 Call-ID: [EMAIL PROTECTED] CSeq: 0 REGISTER Contact: <sip:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>;tag=1847383016 To: <sip:[EMAIL PROTECTED]>;tag=1847383016 Call-ID: [EMAIL PROTECTED] CSeq: 0 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>;tag=1847383016 To: <sip:[EMAIL PROTECTED]>;tag=1847383016 Call-ID: [EMAIL PROTECTED] CSeq: 0 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> WWW-Authenticate: Digest realm="asterisk", nonce="65c9a28e" Content-Length: 0
to 10.8.5.110:5060 Scheduling destruction of call '[EMAIL PROTECTED]' in 15000 ms astsk*CLI> sip show peers
Sip read:
REGISTER SIP:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK4004561277
From: <sip:[EMAIL PROTECTED]>;tag=3684319874
To: <sip:[EMAIL PROTECTED]>;tag=3684319874
Call-ID: [EMAIL PROTECTED]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]>
Authorization: Digest username="8003", realm="asterisk", nonce="65c9a28e", uri="SIP:[EMAIL PROTECTED]", 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:[EMAIL PROTECTED]>;tag=3684319874 To: <sip:[EMAIL PROTECTED]>;tag=3684319874 Call-ID: [EMAIL PROTECTED] CSeq: 1 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>;tag=3684319874 To: <sip:[EMAIL PROTECTED]>;tag=3684319874 Call-ID: [EMAIL PROTECTED] CSeq: 1 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>;tag=3684319874' failed for '10.8.5.110'
Scheduling destruction of call '[EMAIL PROTECTED]' in 15000 ms
Destroying call '[EMAIL PROTECTED]'
---
Sip read: REGISTER SIP:[EMAIL PROTECTED] SIP/2.0 Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK3871759398 From: <sip:[EMAIL PROTECTED]>;tag=3733863423 To: <sip:[EMAIL PROTECTED]>;tag=3733863423 Call-ID: [EMAIL PROTECTED] CSeq: 0 REGISTER Contact: <sip:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>;tag=3733863423 To: <sip:[EMAIL PROTECTED]>;tag=3733863423 Call-ID: [EMAIL PROTECTED] CSeq: 0 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>;tag=3733863423 To: <sip:[EMAIL PROTECTED]>;tag=3733863423 Call-ID: [EMAIL PROTECTED] CSeq: 0 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> WWW-Authenticate: Digest realm="asterisk", nonce="788be877" Content-Length: 0
to 10.8.5.110:5060 Scheduling destruction of call '[EMAIL PROTECTED]' in 15000 ms astsk*CLI> sip show peers
Sip read:
REGISTER SIP:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK3367696432
From: <sip:[EMAIL PROTECTED]>;tag=1341050641
To: <sip:[EMAIL PROTECTED]>;tag=1341050641
Call-ID: [EMAIL PROTECTED]
CSeq: 1 REGISTER
Contact: <sip:[EMAIL PROTECTED]>
Authorization: Digest username="8003", realm="asterisk", nonce="788be877", uri="SIP:[EMAIL PROTECTED]", 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:[EMAIL PROTECTED]>;tag=1341050641 To: <sip:[EMAIL PROTECTED]>;tag=1341050641 Call-ID: [EMAIL PROTECTED] CSeq: 1 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>;tag=1341050641 To: <sip:[EMAIL PROTECTED]>;tag=1341050641 Call-ID: [EMAIL PROTECTED] CSeq: 1 REGISTER User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER Contact: <sip:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>;tag=1341050641' failed for '10.8.5.110'
Scheduling destruction of call '[EMAIL PROTECTED]' in 15000 ms
Destroying call '[EMAIL PROTECTED]'
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED]>' failed for '10.8.5.110'
Feb 17 16:22:12 NOTICE[7689]: chan_sip.c:7654 handle_request: Registration from '"Ariel Molina" <sip:[EMAIL PROTECTED]>' failed for '10.8.5.110'
astsk*CLI>
_______________________________________________ Asterisk-Users mailing list [email protected] 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
[email protected]
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 [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
