Authentication Failed while login AsteriskManager

in manager.conf
i have
[general]
enabled=yes
port=5038
bindaddr=0.0.0.0

[manager]
secret=amp111
permit=0.0.0.0/0.0.0.0
read=system,call,log,verbose,agent,command,user
write=system,call,log,verbose,agent,command,user

my server is installed in my system whoose network ip is 192.168.1.13

i used
AsteriskManager dam = new AsteriskManager(“192.168.1.13”,5038,“manager”,“amp111”);
to create mnager object
and when i say
dam.login()
i get an excepection which has a message
Authentication failed…

i would be glad if anyone can help me , cause if i cant get this connection i cannot proceed further. iam really having a tough time with asterisk…

one morething iam using asp .NET 1.1 and Visual Studio 2003

i think iam having problem with the login action. i,e iam expectina cleat text login but its using MD5.

how to specify the manager to login using clear text login username and secret instead of username authenType and key

thank you in advance

try “permit=all” in manager.conf

sorry i forgot to tell u iam using asteriskwin32 a windows version of asterisk.

at last i could make this work

when we use AsteriskWin32 as server we need to pass the username and password to login manager instead of using username MD5 key.

i.e

when we use dam.login()

it takes us to Action.LoginAction(username, “MD5”, key);

but we need the login action to call Action.LoginAction(username,password);
(i have not tried the linux version of asterisk, iam working with asteriskwin32 , asterisk for windows)

for this to happen we need to add some code in Asterisk.NET.Manager.ManagerConnection class.

This code is to be added to – private void login(long timeout) function

we add the code just above these lines of code

ChallengeAction challengeAction = new ChallengeAction(“MD5”);
ChallengeResponse challengeResponse = (ChallengeResponse)SendAction(challengeAction);


code to be added

Action.LoginAction myloginAction = new Action.LoginAction(username,password);
Response.ManagerResponse myloginResponse = SendAction(myloginAction);
if (myloginResponse is Response.ManagerError)
{
//do nothing because we need to check if the user has used challengeAction as MD5
}

else
{
// successfully logged in so assure that we keep trying to reconnect
//when disconnected
this.keepAlive = true;
logger.info(“Successfully logged in”);
this.targetVersion = determineVersion();
this.writer.TargetVersion = targetVersion;
logger.info("Determined Asterisk version: " + targetVersion);
enableEvents = true;
return;

}

hi,
i like to get some help from u.

Hi,
I had downloaded the source code of Asterisk from Digium Server.
ftp://ftp.digium.com

And i had also downloaded cygwin environment from cygwin.com.

I had followed the instruction available in readme.txt in the patch file.

Everything is properly patched and the "make " command is working fine but “make install” command is not working.

±— Asterisk Installation Complete -------+
+ +
+ YOU MUST READ THE SECURITY DOCUMENT +
+ +
+ Asterisk has successfully been installed. +
+ If you would like to install the sample +
+ configuration files (overwriting any +
+ existing config files), run: +
+ +
+ make samples +
+ +
±---------------- or ---------------------+
+ +
+ You can go ahead and install the asterisk +
+ program documentation now or later run: +
+ +
+ make progdocs +
+ +
+ Note This requires that you have +
+ doxygen installed on your local system +
±------------------------------------------+

             WARNING WARNING WARNING 

             Your Asterisk modules directory, located at 
             /asterisk/modules 
             contains modules that were not installed by this 
             version of Asterisk. Please ensure that these 
             modules are compatible with this version before 
             attempting to run Asterisk. 

                chan_capi.so 
                chan_celliax.so 
                chan_tapi.so 

             WARNING WARNING WARNING

And Asterisk.exe, AsteriskWin32.exe and Asterisk.dll file is also created in /usr/src/asterisk directory.

When i tried to open AsteriskWin32.exe it is showing some failed message.
And when i try to asterisk.exe file. it is showing the following NOTICE and WARNINGS…
And the Asterisk gets stopped.

    dmarysuba@DEV19 /usr/src/asterisk-1.2.14 
    $ ./asterisk 

    Asterisk module loaded successfully 
    Asterisk entry point foundApr 24 11:49:44 NOTICE[3756]: cdr.c:1195 do_reload: CDR simple logging enabled. 
    Apr 24 11:49:44 WARNING[3756]: loader.c:326 __load_resource: No such file or directory 
    Apr 24 11:49:44 WARNING[3756]: loader.c:555 load_modules: Loading module res_features.so failed! 

    Apr 24 11:49:44 WARNING[3756]: res_musichold.c:525 monmp3thread: UNable to spawn mp3player 

    Asterisk stopped. 

i also run the commands “make samples” and “make progdocs”.

when i open asterisk.exe it says
Asterisk module loaded successfully
Asterisk entry point foundApr 24 11:49:44 NOTICE[3756]: cdr.c:1195 do_reload: CDR simple logging enabled.
Apr 24 11:49:44 WARNING[3756]: loader.c:326 __load_resource: No such file or directory
Apr 24 11:49:44 WARNING[3756]: loader.c:555 load_modules: Loading module res_features.so failed!

    Apr 24 11:49:44 WARNING[3756]: res_musichold.c:525 monmp3thread: UNable to spawn mp3player 

    Asterisk stopped. 

At last asterisk is stopped.

i also tried registering X-lite phone with the extension 3000 in /etc/asterisk/sip.conf but it is not register with AsteriskWin32 PBX.
it shows a error Registration error :305 Method Not Allowed and some time Registration error :408 Request Timeout .

i dont know how to proceed further.

Will you please guide me how to proceed further.

Thanks & Regards,
Mary.