Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] FW: clients unable to auth


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
peter.reid at morodo.c...
Guest





PostPosted: Wed Apr 16, 2014 5:56 am    Post subject: [asterisk-users] FW: clients unable to auth Reply with quote

Hi Guys,

Just new to Asterisk and am completely stumped. I have created two accounts as instructed. Please see below for the config of the user accounts.

[Peter]
type=friend
host=IP address
disallow=all
allow=ulaw
allow=alaw
callerid=Peter <6004>
secret=XXXXXXX
context=default
port=9060
nat=force_rport,comedia
deny=0.0.0.0
permit=IP/255.255.0.0,IP/255.255.0.0,PrvIP/255.255.0.0, PrvIP/255.255.0.0

When attempting to register there appears to be something not allowing the authentication of the client against Asterisk. I am getting a 401 Unauthorized on first attempt and then 403 (Bad auth) on second. Is there any ACL config that I have missed which is not allow a good authentication. I have enabled nat and allowed all public and private IP’s of the two clients with masks.

The CLI console returns the following:

ignore - Apr 16 11:09:57] NOTICE[24359]: chan_sip.c:27724 handle_request_register: Registration from '"6004"<[url=sip:6004@xx.xx.xx.xx:9060]sip:6004@xx.xx.xx.xx:9060[/url]>' failed for 'IP:57836' - No matching peer found
[Apr 16 11:09:57] NOTICE[24359]: chan_sip.c:27724 handle_request_register: Registration from '"6004"<[url=sip:6004@IP:9060]sip:6004@IP:9060[/url]>' failed for 'IP:57836' - No matching peer found
serverIP*CLI>

Have searched under No matching peer found and although there is some info on this it does not appear to satisfy my situation.

Please help.

Best Regards,

Peter



[/url]
This email is free from viruses and malware because [url=http://www.avast.com/]avast! Antivirus
protection is active.
Back to top
asghar144 at gmail.com
Guest





PostPosted: Wed Apr 16, 2014 6:02 am    Post subject: [asterisk-users] FW: clients unable to auth Reply with quote

Hello,Try this



[6004]
type=friend
host=dynamic
disallow=all
allow=ulaw
allow=alaw
callerid=6004 <Peter>

secret=XXXXXXX
context=default
port=9060
nat=force_rport,comedia
deny=0.0.0.0
permit=IP/255.255.0.0,IP/255.255.0.0,PrvIP/255.255.0.0, PrvIP/255.255.0.0







On Wed, Apr 16, 2014 at 12:56 PM, Peter Reid <peter.reid@morodo.co.uk (peter.reid@morodo.co.uk)> wrote:
Quote:

Hi Guys,
 
Just new to Asterisk and am completely stumped.  I have created two accounts as instructed.  Please see below for the config of the user accounts. 
 
[Peter]
type=friend
host=IP address
disallow=all
allow=ulaw
allow=alaw
callerid=Peter <6004>
secret=XXXXXXX
context=default
port=9060
nat=force_rport,comedia
deny=0.0.0.0
permit=IP/255.255.0.0,IP/255.255.0.0,PrvIP/255.255.0.0, PrvIP/255.255.0.0
 
When attempting to register there appears to be something not allowing the authentication of the client against Asterisk.  I am getting a 401 Unauthorized on first attempt and then 403 (Bad auth) on second.   Is there any ACL config that I have missed which is not allow a good authentication.  I have enabled nat and allowed all public and private IP’s of the two clients with masks. 
 
The CLI console returns the following:
 
ignore - Apr 16 11:09:57] NOTICE[24359]: chan_sip.c:27724 handle_request_register: Registration from '"6004"<sip:6004@xx.xx.xx.xx:9060>' failed for 'IP:57836' - No matching peer found
[Apr 16 11:09:57] NOTICE[24359]: chan_sip.c:27724 handle_request_register: Registration from '"6004"<sip:6004@IP:9060>' failed for 'IP:57836' - No matching peer found
serverIP*CLI>
 
Have searched under No matching peer found and although there is some info on this it does not appear to satisfy my situation. 
 
Please help.
 
Best Regards,
 
Peter
 
 
 


[/url]
This email is free from viruses and malware because [url=http://www.avast.com/]avast! Antivirus
protection is active.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcolp at digium.com
Guest





PostPosted: Wed Apr 16, 2014 6:06 am    Post subject: [asterisk-users] FW: clients unable to auth Reply with quote

Peter Reid wrote:
Quote:
Hi Guys,

Kia ora,

Quote:
Just new to Asterisk and am completely stumped. I have created two
accounts as instructed. Please see below for the config of the user
accounts.

[Peter]

type=friend

host=IP address

disallow=all

allow=ulaw

allow=alaw

callerid=Peter <6004>

secret=XXXXXXX

context=default

port=9060

nat=force_rport,comedia

deny=0.0.0.0

permit=IP/255.255.0.0,IP/255.255.0.0,PrvIP/255.255.0.0, PrvIP/255.255.0.0

When attempting to register there appears to be something not allowing
the authentication of the client against Asterisk. I am getting a 401
Unauthorized on first attempt and then 403 (Bad auth) on second. Is
there any ACL config that I have missed which is not allow a good
authentication. I have enabled nat and allowed all public and private
IP’s of the two clients with masks.

The CLI console returns the following:

ignore - Apr 16 11:09:57] NOTICE[24359]: chan_sip.c:27724
handle_request_register: Registration from
'"6004"<sip:6004@xx.xx.xx.xx:9060>' failed for 'IP:57836' - No matching
peer found

[Apr 16 11:09:57] NOTICE[24359]: chan_sip.c:27724
handle_request_register: Registration from '"6004"<sip:6004@IP:9060>'
failed for 'IP:57836' - No matching peer found

Your client is configured to use "6004" as the username while your above
configuration uses "Peter". Since the usernames differ, it fails.

Cheers,

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
kevin.larsen at pionee...
Guest





PostPosted: Wed Apr 16, 2014 6:08 am    Post subject: [asterisk-users] FW: clients unable to auth Reply with quote

asterisk-users-bounces@lists.digium.com wrote on 04/16/2014 05:56:32 AM:

Quote:
From: "Peter Reid" <peter.reid@morodo.co.uk>
To: <asterisk-users@lists.digium.com>,
Date: 04/16/2014 05:56 AM
Subject: [asterisk-users] FW: clients unable to auth
Sent by: asterisk-users-bounces@lists.digium.com

Hi Guys,

Just new to Asterisk and am completely stumped. I have created two
accounts as instructed. Please see below for the config of the user
accounts.

[Peter]
type=friend
host=IP address
disallow=all
allow=ulaw
allow=alaw
callerid=Peter <6004>
secret=XXXXXXX
context=default
port=9060
nat=force_rport,comedia
deny=0.0.0.0
permit=IP/255.255.0.0,IP/255.255.0.0,PrvIP/255.255.0.0, PrvIP/255.255.0.0


Your phone is registering with the name 6004 and not Peter. You either need to change [Peter] to [6004] in Asterisk or update your phone config to make it use Peter for your authorization name.
Back to top
peter.reid at morodo.c...
Guest





PostPosted: Wed Apr 16, 2014 6:21 am    Post subject: [asterisk-users] FW: clients unable to auth Reply with quote

Hi All,

Thank you guys – your advice was spot on. I will now reach out earlier and not struggle with issues like this for 2 weeks J

Best Regards,

From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Kevin Larsen
Sent: Wednesday, April 16, 2014 1:08 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] FW: clients unable to auth


asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com) wrote on 04/16/2014 05:56:32 AM:

Quote:
From: "Peter Reid" <peter.reid@morodo.co.uk (peter.reid@morodo.co.uk)>
To: <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>,
Date: 04/16/2014 05:56 AM
Subject: [asterisk-users] FW: clients unable to auth
Sent by: asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com)

Hi Guys,

Just new to Asterisk and am completely stumped. I have created two
accounts as instructed. Please see below for the config of the user
accounts.

[Peter]
type=friend
host=IP address
disallow=all
allow=ulaw
allow=alaw
callerid=Peter <6004>
secret=XXXXXXX
context=default
port=9060
nat=force_rport,comedia
deny=0.0.0.0
permit=IP/255.255.0.0,IP/255.255.0.0,PrvIP/255.255.0.0, PrvIP/255.255.0.0


Your phone is registering with the name 6004 and not Peter. You either need to change [Peter] to [6004] in Asterisk or update your phone config to make it use Peter for your authorization name.
[/url]
This email is free from viruses and malware because [url=http://www.avast.com/]avast! Antivirus
protection is active.
Back to top
kevin.larsen at pionee...
Guest





PostPosted: Wed Apr 16, 2014 8:22 am    Post subject: [asterisk-users] FW: clients unable to auth Reply with quote

Quote:
Thank you guys – your advice was spot on. I will now reach out
earlier and not struggle with issues like this for 2 weeks J

You sound like you are just getting started with Asterisk. A couple pieces of advice that helped me when I was starting out:

1. Get a copy of Asterisk: The Definitive Guide. Work through the examples and understand the concepts it teaches. I still use it all the time.
2. When you run into problems, http://voip-info.org is a great Asterisk resource. It isn't always perfectly up to date, but is very useful.
3. Search on the error messages you are given by Asterisk. It is common enough that many (but not all) of the error messages will have hits that explain your problem in greater detail.
Back to top
joshdmetzger at gmail.com
Guest





PostPosted: Wed Apr 16, 2014 9:01 am    Post subject: [asterisk-users] FW: clients unable to auth Reply with quote

I would modify the suggestions slightly and either add to it, or replace the reference to voip-info with a link to https://wiki.asterisk.org 


I was just thinking yesterday that voip-info seems out of date for many things I search for, but at this point I'm usually looking up things that are probably not used as frequently, so maybe the more "regular" stuff is more up-to-date on voip-info.  In any case, the Asterisk Wiki seems quite up-to-date and useful.  Also, you can quickly get some good info by doing "core show application <app>" or "core show function <func>" from the Asterisk console, like "core show application dial" gives you all the possible arguments for "Dial", including some useful notes.  Quite handy.


Josh






On Wed, Apr 16, 2014 at 9:22 AM, Kevin Larsen <kevin.larsen@pioneerballoon.com (kevin.larsen@pioneerballoon.com)> wrote:
Quote:
> Thank you guys – your advice was spot on.  I will now reach out
Quote:
earlier and not struggle with issues like this for 2 weeks J

You sound like you are just getting started with Asterisk. A couple pieces of advice that helped me when I was starting out:

1. Get a copy of Asterisk: The Definitive Guide. Work through the examples and understand the concepts it teaches. I still use it all the time.
2. When you run into problems, http://voip-info.org is a great Asterisk resource. It isn't always perfectly up to date, but is very useful.
3. Search on the error messages you are given by Asterisk. It is common enough that many (but not all) of the error messages will have hits that explain your problem in greater detail.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
jcolp at digium.com
Guest





PostPosted: Fri Apr 18, 2014 8:53 am    Post subject: [asterisk-users] FW: clients unable to auth Reply with quote

Josh Metzger wrote:
Quote:
I would modify the suggestions slightly and either add to it, or replace
the reference to voip-info with a link to https://wiki.asterisk.org

I was just thinking yesterday that voip-info seems out of date for many
things I search for, but at this point I'm usually looking up things
that are probably not used as frequently, so maybe the more "regular"
stuff is more up-to-date on voip-info. In any case, the Asterisk Wiki
seems quite up-to-date and useful. Also, you can quickly get some good
info by doing "core show application <app>" or "core show function
<func>" from the Asterisk console, like "core show application dial"
gives you all the possible arguments for "Dial", including some useful
notes. Quite handy.

To provide some clarification of why it is up to date:

The documentation for many things (applications, dialplan functions,
some configuration files, manager events, etc) exists as XML within the
Asterisk source code itself near the implementation. There are scripts
which take this XML and produce some of the wiki pages you see. We've
also made it so that documentation for some things has to be specified
when adding stuff or else Asterisk will not allow it to work. This makes
documentation as close to a first class citizen as it can be (albeit
that doesn't mean one can't write bad documentation).

Cheers,

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services