1. Nick Sivo
  2. TwilioFluent

Commits

Nick Sivo  committed 19f9c12

Fix call direction parsing.

  • Participants
  • Parent commits 1a657ab
  • Branches default

Comments (0)

Files changed (2)

File TwilioFluent.Mvc3/TwilioController.cs

View file
  • Ignore whitespace
 		{
 			get
 			{
-				if (_callDirection == default(CallDirection))
+				if (_callDirection == CallDirection.None)
 				{
 					_callDirection = EnumUtil.ParseTwilioEnum<CallDirection>(Request.Params["Direction"]);
 				}

File TwilioFluent.TwiML/Enums/CallDirection.cs

View file
  • Ignore whitespace
 
 namespace TwilioFluent.TwiML
 {
-	/// <summary>
-	/// Indicates the direction of a call from the application's perspective.
-	/// </summary>
-	public enum CallDirection
-	{
-		/// <summary>
-		/// Not used by Twilio
-		/// </summary>
-		None = 0,
+    /// <summary>
+    /// Indicates the direction of a call from the application's perspective.
+    /// </summary>
+    public enum CallDirection
+    {
+        /// <summary>
+        /// Not used by Twilio
+        /// </summary>
+        None = 0,
 
-		/// <summary>
-		/// The call was received by the application.
-		/// </summary>
-		Inbound,
+        /// <summary>
+        /// The call was received by the application.
+        /// </summary>
+        Inbound = 1,
 
-		/// <summary>
-		/// The application initiated the call.
-		/// </summary>
-		OutboundDial,
-	}
+        /// <summary>
+        /// The application initiated the call.
+        /// </summary>
+        OutboundDial = 2,
+
+        /// <summary>
+        /// The application initiated the call. (undocumented but used value)
+        /// </summary>
+        OutboundApi = 2,
+    }
 }