See change log (Breaking changes!)

This commit is contained in:
skrusty 2014-01-08 14:16:39 +00:00
parent 173d321c38
commit 3197e6a328
279 changed files with 923 additions and 494 deletions

View file

@ -1,33 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{80ADC18F-2BFC-4B79-B264-5244E4F2FEED}"
ProjectSection(SolutionItems) = preProject
ChangeLog.txt = ChangeLog.txt
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Asterisk.NET", "Asterisk.NET\Asterisk.NET.csproj", "{BC6E7DBA-C05A-45FE-A2A3-B1637CE16274}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsterNET", "Asterisk.NET\AsterNET.csproj", "{BC6E7DBA-C05A-45FE-A2A3-B1637CE16274}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Asterisk.NET.WinForm", "Asterisk.NET.WinForm\Asterisk.NET.WinForm.csproj", "{03687626-613A-4E41-8F60-7C7839D6DD5D}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsterNET.WinForm", "Asterisk.NET.WinForm\AsterNET.WinForm.csproj", "{03687626-613A-4E41-8F60-7C7839D6DD5D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Asterisk.NET.Test", "..\..\dfd\Asterisk.NET.1.6.3.1\Asterisk.NET.Test\Asterisk.NET.Test.csproj", "{B82B8EBF-8180-401D-8D3A-4BF7CFDB7A08}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsterNET.Test", "Asterisk.NET.Test\Asterisk.NET.Test\AsterNET.Test.csproj", "{B82B8EBF-8180-401D-8D3A-4BF7CFDB7A08}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 4
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs.codeplex.com/tfs/tfs33
SccLocalPath0 = .
SccProjectUniqueName1 = Asterisk.NET.WinForm\\Asterisk.NET.WinForm.csproj
SccProjectName1 = Asterisk.NET.WinForm
SccLocalPath1 = Asterisk.NET.WinForm
SccProjectUniqueName2 = Asterisk.NET\\Asterisk.NET.csproj
SccProjectName2 = Asterisk.NET
SccLocalPath2 = Asterisk.NET
SccProjectUniqueName3 = ..\\..\\dfd\\Asterisk.NET.1.6.3.1\\Asterisk.NET.Test\\Asterisk.NET.Test.csproj
SccProjectName3 = Asterisk.NET.Test/Asterisk.NET.Test
SccLocalPath3 = ..\\..\\dfd\\Asterisk.NET.1.6.3.1\\Asterisk.NET.Test
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU

View file

@ -90,9 +90,9 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Asterisk.NET\Asterisk.NET.csproj">
<ProjectReference Include="..\..\Asterisk.NET\AsterNET.csproj">
<Project>{bc6e7dba-c05a-45fe-a2a3-b1637ce16274}</Project>
<Name>Asterisk.NET</Name>
<Name>AsterNET</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>

View file

@ -1,7 +1,7 @@
using System;
using Asterisk.NET.FastAGI;
using AsterNET.FastAGI;
namespace Asterisk.NET.Test
namespace AsterNET.Test
{
public class CustomIVR : AGIScript
{

View file

@ -1,14 +1,14 @@
using System;
using Asterisk.NET.Manager;
using Asterisk.NET.Manager.Action;
using Asterisk.NET.Manager.Response;
using Asterisk.NET.FastAGI;
using Asterisk.NET.Manager.Event;
using Asterisk.NET.FastAGI.MappingStrategies;
using AsterNET.Manager;
using AsterNET.Manager.Action;
using AsterNET.Manager.Response;
using AsterNET.FastAGI;
using AsterNET.Manager.Event;
using AsterNET.FastAGI.MappingStrategies;
using System.Collections.Generic;
namespace Asterisk.NET.Test
namespace AsterNET.Test
{
class Program
{
@ -58,7 +58,7 @@ Ctrl-C to exit");
agi.MappingStrategy = new GeneralMappingStrategy(new List<ScriptMapping>()
{
new ScriptMapping() {
ScriptClass = "Asterisk.NET.Test.CustomIVR",
ScriptClass = "AsterNET.Test.CustomIVR",
ScriptName = "customivr"
}
});

View file

@ -2,11 +2,11 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Asterisk.NET.Test")]
[assembly: AssemblyTitle("AsterNET.Test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("x893")]
[assembly: AssemblyProduct("Asterisk.NET.Test")]
[assembly: AssemblyProduct("AsterNET.Test")]
[assembly: AssemblyCopyright("Copyright © 2008")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View file

@ -118,9 +118,9 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="customivr" xml:space="preserve">
<value>Asterisk.NET.Test.CustomIVR, Asterisk.NET.Test</value>
<value>AsterNET.Test.CustomIVR, AsterNET.Test</value>
</data>
<data name="noaction" xml:space="preserve">
<value>Asterisk.NET.FastAGI.Scripts.AGINoAction, Asterisk.NET</value>
<value>AsterNET.FastAGI.Scripts.AGINoAction, Asterisk.NET</value>
</data>
</root>

View file

@ -99,9 +99,9 @@
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Asterisk.NET\Asterisk.NET.csproj">
<ProjectReference Include="..\Asterisk.NET\AsterNET.csproj">
<Project>{BC6E7DBA-C05A-45FE-A2A3-B1637CE16274}</Project>
<Name>Asterisk.NET</Name>
<Name>AsterNET</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>

View file

@ -1,4 +1,4 @@
namespace Asterisk.NET.WinForm
namespace AsterNET.WinForm
{
partial class FormMain
{

View file

@ -5,11 +5,11 @@ using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Asterisk.NET.Manager;
using Asterisk.NET.Manager.Event;
using AsterNET.Manager;
using AsterNET.Manager.Event;
using System.Diagnostics;
namespace Asterisk.NET.WinForm
namespace AsterNET.WinForm
{
public partial class FormMain : Form
{

View file

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace Asterisk.NET.WinForm
namespace AsterNET.WinForm
{
static class Program
{

View file

@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Asterisk.NET.WinForm")]
[assembly: AssemblyTitle("AsterNET.WinForm")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("...")]
[assembly: AssemblyProduct("Asterisk.NET.WinForm")]
[assembly: AssemblyProduct("AsterNET.WinForm")]
[assembly: AssemblyCopyright("Copyright © ... 2008")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View file

@ -8,7 +8,7 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace Asterisk.NET.WinForm.Properties {
namespace AsterNET.WinForm.Properties {
using System;
@ -39,7 +39,7 @@ namespace Asterisk.NET.WinForm.Properties {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Asterisk.NET.WinForm.Properties.Resources", typeof(Resources).Assembly);
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AsterNET.WinForm.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;

View file

@ -8,7 +8,7 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace Asterisk.NET.WinForm.Properties {
namespace AsterNET.WinForm.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]

View file

@ -8,9 +8,9 @@
<ProjectGuid>{BC6E7DBA-C05A-45FE-A2A3-B1637CE16274}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Asterisk.NET</RootNamespace>
<AssemblyName>Asterisk.NET</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<RootNamespace>AsterNET</RootNamespace>
<AssemblyName>AsterNET</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
@ -128,6 +128,8 @@
<Compile Include="Manager\Action\AgentLogoffAction.cs" />
<Compile Include="Manager\Action\AgentsAction.cs" />
<Compile Include="Manager\Action\AGIAction.cs" />
<Compile Include="Manager\Action\AtxferAction.cs" />
<Compile Include="Manager\Action\BridgeAction.cs" />
<Compile Include="Manager\Action\ChallengeAction.cs" />
<Compile Include="Manager\Action\ChangeMonitorAction.cs" />
<Compile Include="Manager\Action\CommandAction.cs" />
@ -166,8 +168,13 @@
<Compile Include="Manager\Action\PingAction.cs" />
<Compile Include="Manager\Action\ProxyAction.cs" />
<Compile Include="Manager\Action\QueueAddAction.cs" />
<Compile Include="Manager\Action\QueueLogAction.cs" />
<Compile Include="Manager\Action\QueuePauseAction.cs" />
<Compile Include="Manager\Action\QueuePenaltyAction.cs" />
<Compile Include="Manager\Action\QueueReloadAction.cs" />
<Compile Include="Manager\Action\QueueRemoveAction.cs" />
<Compile Include="Manager\Action\QueueResetAction.cs" />
<Compile Include="Manager\Action\QueueRuleAction.cs" />
<Compile Include="Manager\Action\QueueStatusAction.cs" />
<Compile Include="Manager\Action\RedirectAction.cs" />
<Compile Include="Manager\Action\SetCDRUserFieldAction.cs" />
@ -342,6 +349,8 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Manager\Documentation\Asterisk-1.8.x\" />
<Folder Include="Manager\Documentation\Asterisk-10\" />
<Folder Include="Manager\Documentation\Asterisk-11\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View file

@ -2,7 +2,7 @@ using System;
using System.Text.RegularExpressions;
using System.Globalization;
namespace Asterisk.NET
namespace AsterNET
{
public static class Common
{

View file

@ -1,4 +1,4 @@
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// Default implementation of the AGIChannel interface.

View file

@ -2,7 +2,7 @@ using System;
using System.IO;
using System.Threading;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// An AGIConnectionHandler is created and run by the AGIServer whenever a new

View file

@ -3,7 +3,7 @@ using System.IO;
using System.Collections;
using System.Collections.Generic;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
public class AGIReader
{

View file

@ -4,7 +4,7 @@ using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
#region Enum - AGIReplyStatuses
public enum AGIReplyStatuses

View file

@ -7,7 +7,7 @@ using System.Collections;
using System.Net;
using System.Collections.Generic;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// Default implementation of the AGIRequest interface.

View file

@ -1,6 +1,6 @@
using System;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// The BaseAGIScript provides some convinience methods to make it easier to

View file

@ -1,6 +1,6 @@
using System;
using System.IO;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// Default implementation of the AGIWriter interface.

View file

@ -1,9 +1,9 @@
using Asterisk.NET.FastAGI.MappingStrategies;
using AsterNET.FastAGI.MappingStrategies;
using System.IO;
using System.Net;
using System.Text;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
public class AsteriskFastAGI
{

View file

@ -1,6 +1,6 @@
using System.Text;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
public abstract class AGICommand
{

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
public class AnswerCommand : AGICommand
{

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Returns the status of the specified channel.

View file

@ -1,7 +1,7 @@
using System;
using System.Text;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Plays the given file, allowing playback to be interrupted by the given

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Deletes a family or specific keytree within a family in the Asterisk database.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Deletes an entry in the Asterisk database for a given family and key.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Retrieves an entry in the Asterisk database for a given family and key.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Adds or updates an entry in the Asterisk database for a given family, key, and value.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Executes an application with the given options.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Stream the given file, and recieve DTMF data. The user may interrupt the streaming by starting to enter digits.<br/>

View file

@ -1,7 +1,7 @@
using System;
using System.Text;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Returns the value of the given channel varible and understands complex

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Plays the given file, and waits for the user to press one of the given

View file

@ -1,4 +1,4 @@
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Returns the value of the given channel varible.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Hangs up the specified channel. If no channel name is given, hangs up the current channel.

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Does nothing.

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Receives a character of text on a channel.<br/>

View file

@ -1,4 +1,4 @@
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Receives a string of text on a channel.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Record to a file until a given dtmf digit in the sequence is received.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary> Say a given character string, returning early if any of the given DTMF digits are received on the channel.<br/>
/// Returns 0 if playback completes without a digit being pressed, or the ASCII

View file

@ -1,5 +1,5 @@
using System.Text;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Say a given time, returning early if any of the given DTMF digits are pressed.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Say a given digit string, returning early if any of the given DTMF digits are received on the channel.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Say a given number, returning early if any of the given DTMF number are received on the channel.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Say a given time, returning early if any of the given DTMF digits are received on the channel.<br/>

View file

@ -1,6 +1,6 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Sends the given image on a channel.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Sends the given text on a channel.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Cause the channel to automatically hangup at the given number of seconds in the future.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Changes the CallerID of the current channel.

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Sets the context for continuation upon exiting the application.

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Sets the extension for continuation upon exiting the application.

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Turns off music on hold on the current channel.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Turns on music on hold on the current channel.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Sets the priority for continuation upon exiting the application.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Sets the given channel variable to the given value.

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Enable/Disable TDD transmission/reception on a channel.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
#region Class - VerboseCommand
/// <summary>

View file

@ -1,4 +1,4 @@
namespace Asterisk.NET.FastAGI.Command
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Waits up to 'timeout' milliseconds for channel to receive a DTMF digit.<br/>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// Abstract base class for all AGI specific exceptions.

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// The AGIHangupException is thrown if the channel has been hang up while processing the AGIRequest.

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// The AGINetworkException usally wraps an IOException denoting a network problem when talking to the Asterisk server.

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// An InvalidCommandSyntaxException is thrown when the reader receives a reply with status code 520.

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// An InvalidOrUnknownCommandException is thrown when the reader receives a reply with status code 510.

View file

@ -1,4 +1,4 @@
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
public interface IMappingStrategy
{

View file

@ -6,7 +6,7 @@ using System.Collections.Generic;
using System.IO;
using System.Xml.Serialization;
namespace Asterisk.NET.FastAGI.MappingStrategies
namespace AsterNET.FastAGI.MappingStrategies
{
internal class MappingAssembly

View file

@ -3,7 +3,7 @@ using System.Collections;
using System.Resources;
using System.Reflection;
namespace Asterisk.NET.FastAGI.MappingStrategies
namespace AsterNET.FastAGI.MappingStrategies
{
/// <summary>
/// A MappingStrategy that is configured via a resource bundle.<br/>
@ -11,7 +11,7 @@ namespace Asterisk.NET.FastAGI.MappingStrategies
/// qualified class name of the corresponding AGIScript as value.<br/>
/// Example:
/// <pre>
/// noopcommand = Asterisk.NET.FastAGI.Command.NoopCommand
/// noopcommand = AsterNET.FastAGI.Command.NoopCommand
/// </pre>
/// NoopCommand must implement the AGIScript interface and have a default constructor with no parameters.<br/>
/// </summary>

View file

@ -3,7 +3,7 @@ using System.Collections;
using System.Resources;
using System.Reflection;
namespace Asterisk.NET.FastAGI
namespace AsterNET.FastAGI
{
/// <summary>
/// A MappingStrategy that is configured via a resource bundle.<br/>
@ -11,7 +11,7 @@ namespace Asterisk.NET.FastAGI
/// qualified class name of the corresponding AGIScript as value.<br/>
/// Example:
/// <pre>
/// noopcommand = Asterisk.NET.FastAGI.Command.NoopCommand
/// noopcommand = AsterNET.FastAGI.Command.NoopCommand
/// </pre>
/// NoopCommand must implement the AGIScript interface and have a default constructor with no parameters.<br/>
/// </summary>

View file

@ -1,4 +1,4 @@
namespace Asterisk.NET.FastAGI.Scripts
namespace AsterNET.FastAGI.Scripts
{
class AGINoAction : AGIScript
{

View file

@ -7,11 +7,11 @@ using System.Threading;
using System.Reflection;
using System.Security.Cryptography;
using System.Collections.Generic;
using Asterisk.NET.Manager.Event;
using Asterisk.NET.Manager.Response;
using Asterisk.NET.Manager;
using AsterNET.Manager.Event;
using AsterNET.Manager.Response;
using AsterNET.Manager;
namespace Asterisk.NET
namespace AsterNET
{
internal class Helper
{

View file

@ -2,7 +2,7 @@ using System.Net;
using System.Net.Sockets;
using System.Text;
namespace Asterisk.NET.IO
namespace AsterNET.IO
{
/// <summary>
/// ServerSocket using standard socket classes.

View file

@ -4,7 +4,7 @@ using System.Net.Sockets;
using System.Net;
using System;
namespace Asterisk.NET.IO
namespace AsterNET.IO
{
public class SocketConnection
{

View file

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using System.Text;
namespace Asterisk.NET
namespace AsterNET
{
internal interface IParseSupport
{

View file

@ -4,7 +4,7 @@ using System.Threading;
using System.Text;
using System.Collections;
namespace Asterisk.NET
namespace AsterNET
{
#if LOGGER

View file

@ -4,11 +4,11 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>
/// This action lets you execute any AGI command through the Manager interface
/// For example, check the Asterisk.Net.Test project
/// For example, check the AsterNET.Test project
/// </summary>
public class AgiAction : ManagerAction
{

View file

@ -1,6 +1,6 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>
/// The AbsoluteTimeoutAction sets the absolute maximum amount of time permitted for a call on a given channel.<br/>

View file

@ -1,6 +1,6 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>
/// The AgentCallbackLoginAction sets an agent as logged in with callback.<br/>

View file

@ -1,6 +1,6 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>
/// The AgentLogoffAction sets an agent as no longer logged in.

View file

@ -1,6 +1,6 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>
/// The AgentsAction requests the state of all agents.<br/>
@ -8,8 +8,8 @@ namespace Asterisk.NET.Manager.Action
/// After the state of all agents has been reported an AgentsCompleteEvent is generated.<br/>
/// Available since Asterisk 1.2
/// </summary>
/// <seealso cref="Asterisk.NET.Manager.Event.AgentsEvent" />
/// <seealso cref="Asterisk.NET.Manager.Event.AgentsCompleteEvent" />
/// <seealso cref="AsterNET.Manager.Event.AgentsEvent" />
/// <seealso cref="AsterNET.Manager.Event.AgentsCompleteEvent" />
public class AgentsAction : ManagerActionEvent
{
#region Action

View file

@ -0,0 +1,79 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AsterNET.Manager.Action
{
public class AtxferAction : ManagerAction
{
private string _channel;
private string _exten;
private string _context;
private string _priority;
/// <summary>
/// Attended transfer.
/// </summary>
public AtxferAction()
{
}
/// <summary>
/// Attended transfer.
/// </summary>
/// <param name="channel">Transferer's channel.</param>
/// <param name="exten">Extension to transfer to.</param>
/// <param name="context">Context to transfer to.</param>
/// <param name="priority">Priority to transfer to.</param>
public AtxferAction(string channel, string exten, string context, string priority)
{
_channel = channel;
_exten = exten;
_context = context;
_priority = priority;
}
public override string Action
{
get { return "Atxfer"; }
}
/// <summary>
/// Transferer's channel.
/// </summary>
public string Channel
{
get { return _channel; }
set { _channel = value; }
}
/// <summary>
/// Extension to transfer to.
/// </summary>
public string Exten
{
get { return _exten; }
set { _exten = value; }
}
/// <summary>
/// Context to transfer to.
/// </summary>
public string Context
{
get { return _context; }
set { _context = value; }
}
/// <summary>
/// Priority to transfer to.
/// </summary>
public string Priority
{
get { return _priority; }
set { _priority = value; }
}
}
}

View file

@ -0,0 +1,58 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AsterNET.Manager.Action
{
public class BridgeAction : ManagerAction
{
private string _channel1;
private string _channel2;
private string _tone;
/// <summary>
/// Bridge two channels already in the PBX.
/// </summary>
public BridgeAction()
{
}
/// <summary>
/// Bridge two channels already in the PBX.
/// </summary>
/// <param name="channel1">Channel to Bridge to Channel2</param>
/// <param name="channel2">Channel to Bridge to Channel1</param>
/// <param name="tone">Play courtesy tone to Channel 2 [yes|no]</param>
public BridgeAction(string channel1, string channel2, string tone)
{
_channel1 = channel1;
_channel2 = channel2;
_tone = tone;
}
public override string Action
{
get { return "Bridge"; }
}
public string Channel1
{
get { return _channel1; }
set { _channel1 = value; }
}
public string Channel2
{
get { return _channel2; }
set { _channel2 = value; }
}
public string Tone
{
get { return _tone; }
set { _tone = value; }
}
}
}

View file

@ -1,6 +1,6 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>
/// The ChallengeAction requests a challenge from the server to use when logging

View file

@ -1,6 +1,6 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>
/// The ChangeMonitorAction changes the monitoring filename of a channel.

View file

@ -1,6 +1,6 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>
/// The CommandAction sends a command line interface (CLI) command to the asterisk server.<br/>

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
public class ConfbridgeKickAction : ManagerAction
{

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/*

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
public class ConfbridgeLockAction : ManagerAction
{

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
public class ConfbridgeMuteAction : ManagerAction
{

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
public class ConfbridgeSetSingleVideoSrcAction : ManagerAction
{

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
public class ConfbridgeStartRecordAction : ManagerAction
{

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
public class ConfbridgeStopRecordAction : ManagerAction
{

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
public class ConfbridgeUnlockAction : ManagerAction
{

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
public class ConfbridgeUnmuteAction : ManagerAction
{

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>

View file

@ -1,5 +1,5 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>
@ -7,7 +7,7 @@ namespace Asterisk.NET.Manager.Action
/// If an entry is found a DBGetResponseEvent is sent by Asterisk containing the
/// value, otherwise a ManagerError indicates that no entry matches.
/// </summary>
/// <seealso cref="Asterisk.NET.Manager.Event.DBGetResponseEvent" />
/// <seealso cref="AsterNET.Manager.Event.DBGetResponseEvent" />
public class DBGetAction : ManagerActionEvent
{
private string family;

View file

@ -1,6 +1,6 @@
using System;
namespace Asterisk.NET.Manager.Action
namespace AsterNET.Manager.Action
{
/// <summary>
/// Adds or updates an entry in the Asterisk database for a given family, key, and value.<br/>

Some files were not shown because too many files have changed in this diff Show more