<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yes, you are right, before using 8xxx numbers i was using 7xxxx (i did
a copy/paste of my fedora box using 7xxx), then i got into this
trouble, i was using 2 xterms to compare fedora's asterisk and
Debian's. Eventually i decided to use 8xxx in debian's asterisk because
i was getting confused of which xterm was the Fedora's and which was
debian's. In fact, 8003 was 7004 before.<br>
<br>
Did 'reload' every time i made a change, as it says in 'help'<br>
reload = reload configuration <br>
<br>
was thinking that reload will reload all configuration including
extensions and sip. I found it doesn't, because now i did:<br>
<br>
/etc/rc.d/asterisk restart<br>
<br>
and bingo! it began working. Now i can register, can make calls and
everything is working fine. So I recommend if you get into this kind of
truoble to restart asterisk, not only 'reload'.<br>
<br>
This remembers me last week when i first configured Fedora, it was not
working, it was a nightmare, i modified something and powered it off,
went to sleep. Next morning i powered it on again and edit one line or
two, tryed to register and magically it was working. Now i suspect (in
fedora) it was not a problem in the conf files, it was asterisk not
reloading its configuration when issuing the command 'reload'.<br>
<br>
Or maybe reload isnt for that, you tell me. If not, that 'reload' thing
is a bit confusing.<br>
<br>
Race Vanderdecken wrote:
<blockquote cite="mid000d01c515e2$bf1ae450$6401a8c0@PressonMobile1"
type="cite">
<pre wrap="">Hmmm, I am stumped.
I am not sure about this line though.
REGISTER <a class="moz-txt-link-abbreviated" href="mailto:SIP:7004@10.8.5.138">SIP:7004@10.8.5.138</a> 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: <a class="moz-txt-link-abbreviated" href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
[<a class="moz-txt-link-freetext" href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>] 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 <a class="moz-txt-link-abbreviated" href="mailto:SIP:7004@10.8.5.138">SIP:7004@10.8.5.138</a> SIP/2.0
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK2689178379
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1847383016
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1847383016
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3008505897@10.8.5.110">3008505897@10.8.5.110</a>
CSeq: 0 REGISTER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.110"><sip:8003@10.8.5.110></a>
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: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1847383016
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1847383016
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3008505897@10.8.5.110">3008505897@10.8.5.110</a>
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>
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: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1847383016
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1847383016
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3008505897@10.8.5.110">3008505897@10.8.5.110</a>
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>
WWW-Authenticate: Digest realm="asterisk", nonce="65c9a28e"
Content-Length: 0
to 10.8.5.110:5060
Scheduling destruction of call '<a class="moz-txt-link-abbreviated" href="mailto:3008505897@10.8.5.110">3008505897@10.8.5.110</a>' in 15000 ms
astsk*CLI> sip show peers
Sip read:
REGISTER <a class="moz-txt-link-abbreviated" href="mailto:SIP:7004@10.8.5.138">SIP:7004@10.8.5.138</a> SIP/2.0
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK4004561277
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3684319874
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3684319874
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3008505897@10.8.5.110">3008505897@10.8.5.110</a>
CSeq: 1 REGISTER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.110"><sip:8003@10.8.5.110></a>
Authorization: Digest username="8003", realm="asterisk",
nonce="65c9a28e", uri=<a class="moz-txt-link-rfc2396E" href="mailto:SIP:7004@10.8.5.138">"SIP:7004@10.8.5.138"</a>,
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: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3684319874
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3684319874
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3008505897@10.8.5.110">3008505897@10.8.5.110</a>
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>
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: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3684319874
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3684319874
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3008505897@10.8.5.110">3008505897@10.8.5.110</a>
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>
Content-Length: 0
to 10.8.5.110:5060
Feb 18 11:29:20 NOTICE[1814]: chan_sip.c:7654 handle_request:
Registration from '<a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3684319874' failed for
'10.8.5.110'
Scheduling destruction of call '<a class="moz-txt-link-abbreviated" href="mailto:3008505897@10.8.5.110">3008505897@10.8.5.110</a>' in 15000 ms
Destroying call '<a class="moz-txt-link-abbreviated" href="mailto:3008505897@10.8.5.110">3008505897@10.8.5.110</a>'
---
Sip read:
REGISTER <a class="moz-txt-link-abbreviated" href="mailto:SIP:7004@10.8.5.138">SIP:7004@10.8.5.138</a> SIP/2.0
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK3871759398
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3733863423
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3733863423
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3431669868@10.8.5.110">3431669868@10.8.5.110</a>
CSeq: 0 REGISTER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.110"><sip:8003@10.8.5.110></a>
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: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3733863423
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3733863423
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3431669868@10.8.5.110">3431669868@10.8.5.110</a>
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>
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: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3733863423
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=3733863423
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3431669868@10.8.5.110">3431669868@10.8.5.110</a>
CSeq: 0 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>
WWW-Authenticate: Digest realm="asterisk", nonce="788be877"
Content-Length: 0
to 10.8.5.110:5060
Scheduling destruction of call '<a class="moz-txt-link-abbreviated" href="mailto:3431669868@10.8.5.110">3431669868@10.8.5.110</a>' in 15000 ms
astsk*CLI> sip show peers
Sip read:
REGISTER <a class="moz-txt-link-abbreviated" href="mailto:SIP:7004@10.8.5.138">SIP:7004@10.8.5.138</a> SIP/2.0
Via: SIP/2.0/UDP 10.8.5.110:5060;branch=z9hG4bK3367696432
From: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1341050641
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1341050641
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3431669868@10.8.5.110">3431669868@10.8.5.110</a>
CSeq: 1 REGISTER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.110"><sip:8003@10.8.5.110></a>
Authorization: Digest username="8003", realm="asterisk",
nonce="788be877", uri=<a class="moz-txt-link-rfc2396E" href="mailto:SIP:7004@10.8.5.138">"SIP:7004@10.8.5.138"</a>,
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: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1341050641
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1341050641
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3431669868@10.8.5.110">3431669868@10.8.5.110</a>
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>
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: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1341050641
To: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1341050641
Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:3431669868@10.8.5.110">3431669868@10.8.5.110</a>
CSeq: 1 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>
Content-Length: 0
to 10.8.5.110:5060
Feb 18 11:29:47 NOTICE[1814]: chan_sip.c:7654 handle_request:
Registration from '<a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>;tag=1341050641' failed for
'10.8.5.110'
Scheduling destruction of call '<a class="moz-txt-link-abbreviated" href="mailto:3431669868@10.8.5.110">3431669868@10.8.5.110</a>' in 15000 ms
Destroying call '<a class="moz-txt-link-abbreviated" href="mailto:3431669868@10.8.5.110">3431669868@10.8.5.110</a>'
Race Vanderdecken wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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: <a class="moz-txt-link-abbreviated" href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
[<a class="moz-txt-link-freetext" href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>] 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
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap=""><!---->handle_request:
</pre>
<blockquote type="cite">
<pre wrap="">Registration from '"Ariel Molina" <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>' failed for
'10.8.5.110'
Feb 17 16:22:12 NOTICE[7689]: chan_sip.c:7654 handle_request:
Registration from '"Ariel Molina" <a class="moz-txt-link-rfc2396E" href="mailto:sip:8003@10.8.5.138"><sip:8003@10.8.5.138></a>' failed for
'10.8.5.110'
astsk*CLI>
_______________________________________________
Asterisk-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
_______________________________________________
Asterisk-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
Asterisk-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
_______________________________________________
Asterisk-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
</body>
</html>