Authentication failed C#

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

My version asterisk 1.8
port 5038 is open

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

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

Apr 6, 2013 at 3: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 10, 2013 at 12:51 AM
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);
    // and finally log off and disconnect

help me, please
Apr 10, 2013 at 11:05 AM
Asterisk will only record a call if you tell it to. Asterisk has a few ways to record calls, please see:

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 4:01 PM
Greetings friend, the context is defined to record the call, the problem does not register the destination number


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
Apr 11, 2013 at 11: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 5: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 12, 2013 at 12:22 AM
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