astray help

Feb 29, 2016 at 6:40 AM
I configured my freePBX server .I getting Authentication Failed error when connecting in astray.

private void DialNumber(string numberToCall)
    {
        try
        {
            var resp = AstCon.SendAction(new OriginateAction
            {
                Channel =
                    ConfigurationManager.AppSettings["astPeerType"] + "/" +
                    ConfigurationManager.AppSettings["astPeerID"],
                Exten = numberToCall,
                Context = ConfigurationManager.AppSettings["astExtenContext"],
                Priority = "1",
                CallerId = ConfigurationManager.AppSettings["astExten"],
                Timeout = 30000,
                Async = true
            });

            LogCall(numberToCall, "Outbound");
        }