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 < [EMAIL PROTECTED]> wrote:

Hi

 

  I'm very new to Asterisk and this is my first posting to this mailing list.  I got a [EMAIL PROTECTED] 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 '[EMAIL PROTECTED]' of Request 102: Match Found
May 26 08:06:59 DEBUG[2855] chan_sip.c: Auto destroying call '[EMAIL PROTECTED]'
May 26 08:06:59 DEBUG[2855] chan_sip.c: Auto destroying call '[EMAIL PROTECTED]'

 

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
[EMAIL PROTECTED]
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



_______________________________________________
--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

Reply via email to