Authentication failed C#

Apr 5, 2013 at 8:47 PM
hi, help please

My version asterisk 1.8
port 5038 is open

error:
Asterisk.NET.Manager.AuthenticationFailedException was unhandled by user code
Message=Authentication failed
Source=Asterisk.NET
StackTrace:
   at Asterisk.NET.Manager.ManagerConnection.login(Int32 timeout) in

keepAlive=true;
reconnectEnable = keepAlive; -----> Authentication failed

thanks
Coordinator
Apr 6, 2013 at 2:41 PM
What's the output from the Asterisk console, does it say you were authenticated?

Turn up the verbose level from the console to be sure you're getting enough information output ("core set verbose 30").
Apr 9, 2013 at 11:51 PM
thanks, it works, only I have the problem that does not record the conversation


I found this class, works well but does not record the call

public void originateAction(int channelToUse, Int64 outgoingNumber, int timeout, string Context,string Data)
{
    var originateAction = new OriginateAction();
    var originateResponse = new ManagerResponse();

    originateAction.Channel = "SIP/" + channelToUse;
    originateAction.Context = Context;
    originateAction.Application = "Dial";
    originateAction.Data = Data + outgoingNumber;
    originateAction.CallerId = channelToUse.ToString();

    originateAction.Account = channelToUse.ToString();
    originateAction.Priority = 1;
    originateAction.Timeout = timeout;

    originateResponse = asteriskManager.SendAction(originateAction, timeout);
    Debug.WriteLine(originateResponse.Response);
    // and finally log off and disconnect
    asteriskManager.Logoff();


}
help me, please
Coordinator
Apr 10, 2013 at 10:05 AM
Asterisk will only record a call if you tell it to. Asterisk has a few ways to record calls, please see: http://www.voip-info.org/wiki/view/Asterisk+record+calls

MixMonitor is often used to record calls, this could be part of your dialplan in "Context", or you can use the MonitorAction from AsterNET.
Apr 10, 2013 at 3:01 PM
Greetings friend, the context is defined to record the call, the problem does not register the destination number

example:

Call Detail Record

Call Date Recording System Src Chan. Source DID App. Dest. Dst.Chan. Disposition Duration Userfield Account
2013-04-09 16:52:08 1365547928.22747 SIP 1148 Dial SIP ANSWERED 00:30 1148


Dest.= Destination is null, this my problem

Thanks for your help
Coordinator
Apr 11, 2013 at 10:13 AM
Ah, I see, sorry you mean that CDR is not being generated correctly? This will mostly be down to a bug in the version of asterisk you're using. What version is it, and I suggest you ask on the asterisk users mailing list if there is a know issue (or search the archives).
Apr 11, 2013 at 4:22 PM
Greetings, I am a programmer in c #, asterisk am new, I am using Asterisk version 1.8, AsterNET is wonderful, what is needed are complete examples for each action that can be done, I want to participate, as have better knowledge ire fueling documentation examples.
Apr 11, 2013 at 11:22 PM
I think my problem is the trace, I am sending, I must send you explain that in the following variables


         originateAction.Channel =
         originateAction.Exten =
         originateAction.CallerId =
         originateAction.Data =

Thank you for your valuable help