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 at 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 at 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 --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140416/7726accc/attachment.html>
asterisk-users-bounces at lists.digium.com wrote on 04/16/2014 05:56:32 AM:> From: "Peter Reid" <peter.reid at morodo.co.uk> > To: <asterisk-users at lists.digium.com>, > Date: 04/16/2014 05:56 AM > Subject: [asterisk-users] FW: clients unable to auth > Sent by: asterisk-users-bounces at 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140416/3fc25dec/attachment.html>
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 wrote on 04/16/2014 05:56:32 AM:> 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. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- _____________________________________________________________________ -- 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