[Asterisk-Users] Asterisk.NET authentication problem

Marco Mouta marco.mouta at gmail.com
Fri May 26 02:35:00 MST 2006


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 at 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 at 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 at 10.34.9.206' of Request 102: Match Found
> May 26 08:06:59 DEBUG[2855] chan_sip.c: Auto destroying call '
> CB895D7B65644EAE9105A5624E823ED8 at 10.34.9.206'
> May 26 08:06:59 DEBUG[2855] chan_sip.c: Auto destroying call '
> CB895D7B65644EAE9105A5624E823ED8 at 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 at 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


More information about the asterisk-users mailing list