|
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. Did 'reload' every time i made a change, as it says in 'help' reload = reload configuration was thinking that reload will reload all configuration including extensions and sip. I found it doesn't, because now i did: /etc/rc.d/asterisk restart 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'. 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'. Or maybe reload isnt for that, you tell me. If not, that 'reload' thing is a bit confusing. Race Vanderdecken wrote: Hmmm, I am stumped. I am not sure about this line though.REGISTER SIP:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 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:[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 |
_______________________________________________ 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
