Werner Terreblanche
2006-May-26 02:22 UTC
[Asterisk-Users] Asterisk.NET authentication problem
Hi
I'm very new to Asterisk and this is my first posting to this mailing
list. I got a Asterisk@home V2.8 working, and now I'm trying to use
Asterisk.NET (http://sourceforge.net/projects/asterisk-dotnet) to get
call events to my C# program.
Asterisk.NET comes with a sample program called Asterisk.NET.Test and it
uses the following default constants for login:
const int ASTERISK_PORT = 5038;
const string ASTERISK_HOST = "10.34.9.206";
const string ASTERISK_LOGINNAME = "admin";
const string ASTERISK_LOGINPWD = "amp111";
However, when the application tries to login using these constants I get
an "Authentication Failed" message.
In /var/log/asterisk/full log:
May 26 08:06:33 DEBUG[28367] manager.c: Manager received command 'Login'
May 26 08:06:33 VERBOSE[28367] logger.c: == Parsing
'/etc/asterisk/manager.conf': May 26 08:06:33 VERBOSE[28367] logger.c:
== Parsing '/etc/asterisk/manager.conf': Found
May 26 08:06:33 VERBOSE[28367] logger.c: == Parsing
'/etc/asterisk/manager_custom.conf': May 26 08:06:33 VERBOSE[28367]
logger.c: == Parsing '/etc/asterisk/manager_custom.conf': Found
May 26 08:06:33 WARNING[28367] config.c: Unknown directive
'permit=192.168.1.0/255.255.255.0' at line 18 of manager_custom.conf
May 26 08:06:33 DEBUG[28367] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to
acl for peer
May 26 08:06:33 DEBUG[28367] acl.c:
127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
May 26 08:06:33 DEBUG[28367] acl.c: ##### Testing 10.34.9.135 with
0.0.0.0
May 26 08:06:33 DEBUG[28367] acl.c: ##### Testing 10.34.9.135 with
127.0.0.0
May 26 08:06:33 NOTICE[28367] manager.c: 10.34.9.135 failed to pass IP
ACL as 'admin'
May 26 08:06:33 DEBUG[27570] manager.c: Manager received command
'Command'
May 26 08:06:33 DEBUG[27570] manager.c: Manager received command
'Command'
May 26 08:06:34 VERBOSE[28367] logger.c: == Connect attempt from
'10.34.9.135' unable to authenticate
May 26 08:06:46 DEBUG[2855] chan_sip.c: Stopping retransmission on
'68e15a667d45ae9a1f07434c2eaa6d53@10.34.9.206' of Request 102: Match
Found
May 26 08:06:59 DEBUG[2855] chan_sip.c: Auto destroying call
'CB895D7B65644EAE9105A5624E823ED8@10.34.9.206'
May 26 08:06:59 DEBUG[2855] chan_sip.c: Auto destroying call
'CB895D7B65644EAE9105A5624E823ED8@10.34.9.206'
Does anybody know if the login name and password used is correct, or
what I can try to fix this problem?
Werner
Werner Terreblanche
CONTROL INSTRUMENTS TELEMATICS
Tel: +27 21 880 5500 / 5686 (direct)
Fax: +27 21 880 1756
Mobile: +27 82 3037669
werner.terreblanche@ci-omnibridge.com
www.ci-omnibridge.com
<http://www.ci-omnibridge.com/>
Read our disclaimer at
http://www.ci-omnibridge.com/contact/disclaimer.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060526/76f9f8f5/attachment.htm
My guess would be to check your manager.conf [admin] secret = amp111 deny=0.0.0.0/0.0.0.0 permit=10.0.0.1/255.255.255.0 read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user The line "permit=10.0.0.1/255.255.255.0" should be adjust to your network configurations. Hope it helps! Best regards, Marco Mouta Ps.Please let me know if it worked. On 5/26/06, Werner Terreblanche <Werner.Terreblanche@ci-omnibridge.com> wrote:> > Hi > > > > I'm very new to Asterisk and this is my first posting to this mailing > list. I got a Asterisk@home V2.8 working, and now I'm trying to use > Asterisk.NET (http://sourceforge.net/projects/asterisk-dotnet) to get call > events to my C# program. > > > > Asterisk.NET comes with a sample program called Asterisk.NET.Test and it > uses the following default constants for login: > > > > const int ASTERISK_PORT = 5038; > > const string ASTERISK_HOST = "10.34.9.206"; > > const string ASTERISK_LOGINNAME = "admin"; > > const string ASTERISK_LOGINPWD = "amp111"; > > > > However, when the application tries to login using these constants I get > an "Authentication Failed" message. > > > > In /var/log/asterisk/full log: > > > > May 26 08:06:33 DEBUG[28367] manager.c: Manager received command 'Login' > May 26 08:06:33 VERBOSE[28367] logger.c: == Parsing > '/etc/asterisk/manager.conf': May 26 08:06:33 VERBOSE[28367] logger.c: => Parsing '/etc/asterisk/manager.conf': Found > May 26 08:06:33 VERBOSE[28367] logger.c: == Parsing > '/etc/asterisk/manager_custom.conf': May 26 08:06:33 VERBOSE[28367] > logger.c: == Parsing '/etc/asterisk/manager_custom.conf': Found > May 26 08:06:33 WARNING[28367] config.c: Unknown directive 'permit> 192.168.1.0/255.255.255.0' at line 18 of manager_custom.conf > May 26 08:06:33 DEBUG[28367] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to > acl for peer > May 26 08:06:33 DEBUG[28367] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0appended to acl for peer > May 26 08:06:33 DEBUG[28367] acl.c: ##### Testing 10.34.9.135 with 0.0.0.0 > May 26 08:06:33 DEBUG[28367] acl.c: ##### Testing 10.34.9.135 with > 127.0.0.0 > May 26 08:06:33 NOTICE[28367] manager.c: 10.34.9.135 failed to pass IP ACL > as 'admin' > May 26 08:06:33 DEBUG[27570] manager.c: Manager received command 'Command' > May 26 08:06:33 DEBUG[27570] manager.c: Manager received command 'Command' > May 26 08:06:34 VERBOSE[28367] logger.c: == Connect attempt from ' > 10.34.9.135' unable to authenticate > May 26 08:06:46 DEBUG[2855] chan_sip.c: Stopping retransmission on ' > 68e15a667d45ae9a1f07434c2eaa6d53@10.34.9.206' of Request 102: Match Found > May 26 08:06:59 DEBUG[2855] chan_sip.c: Auto destroying call ' > CB895D7B65644EAE9105A5624E823ED8@10.34.9.206' > May 26 08:06:59 DEBUG[2855] chan_sip.c: Auto destroying call ' > CB895D7B65644EAE9105A5624E823ED8@10.34.9.206' > > > > Does anybody know if the login name and password used is correct, or what > I can try to fix this problem? > > > > Werner > > > > > > > > > > > > > > > > *Werner Terreblanche* > > *CONTROL INSTRUMENTS TELEMATICS* > > Tel: +27 21 880 5500 / 5686 (direct) > Fax: +27 21 880 1756 > Mobile: +27 82 3037669 > werner.terreblanche@ci-omnibridge.com > www.ci-omnibridge.com > > <http://www.ci-omnibridge.com/> > > > > Read our disclaimer at > http://www.ci-omnibridge.com/contact/disclaimer.aspx > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060526/5e4a93e9/attachment.htm
Werner Terreblanche
2006-May-26 04:52 UTC
[Asterisk-Users] Asterisk.NET authentication problem
Marco... you're advise worked like a charm! I put in the IP of my PC
and now the authentication works and I can see all events. Thank you
very much. :-)
Werner
Message: 8
Date: Fri, 26 May 2006 10:35:00 +0100
From: "Marco Mouta" <marco.mouta@gmail.com>
Subject: Re: [Asterisk-Users] Asterisk.NET authentication problem
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users@lists.digium.com>
Message-ID:
<116fd70d0605260235i363eb29k45b6e26cfc5e7409@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
My guess would be to check your manager.conf
[admin]
secret = amp111
deny=0.0.0.0/0.0.0.0
permit=10.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
The line "permit=10.0.0.1/255.255.255.0" should be adjust to your
network
configurations.
Hope it helps!
Best regards,
Marco Mouta
Ps.Please let me know if it worked.
<http://www.ci-omnibridge.com/>
Read our disclaimer at
http://www.ci-omnibridge.com/contact/disclaimer.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060526/9b08ea18/attachment.htm