Skip to content

Commit d299623

Browse files
authored
Merge pull request #158 from twilio-jyoung/conversation-relay-support
support for conversation relay params - https://www.twilio.com/docs/v…
2 parents f492c76 + 047863c commit d299623

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

src/Twilio.AspNet.Common/VoiceRequest.cs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,45 @@ public class VoiceRequest : TwilioRequest
166166
public string? SipSourceIp { get; set; }
167167

168168
#endregion
169+
170+
#region Conversation Relay Parameters
171+
172+
/// <summary>
173+
/// A unique identifier for the application
174+
/// </summary>
175+
public string? ApplicationSid { get; set; }
176+
177+
/// <summary>
178+
/// A unique identifier for the Conversation Relay Session
179+
/// </summary>
180+
public string? SessionId { get; set; }
181+
182+
/// <summary>
183+
/// The status of the session: ended, failed, completed, in-progress
184+
/// </summary>
185+
public string? SessionStatus { get; set; }
186+
187+
/// <summary>
188+
/// Duration of the Conversation Relay Session
189+
/// </summary>
190+
public string? SessionDuration { get; set; }
191+
192+
/// <summary>
193+
/// Error Code from the Conversation Relay Session
194+
/// </summary>
195+
public string? ErrorCode { get; set; }
196+
197+
/// <summary>
198+
/// Error Message from the Conversation Relay Session
199+
/// </summary>
200+
public string? ErrorMessage { get; set; }
201+
202+
/// <summary>
203+
/// The string of escaped JSON returned from an End session message in Conversation Relay
204+
/// https://www.twilio.com/docs/voice/twiml/connect/conversationrelay#end-session-message
205+
/// https://www.twilio.com/docs/voice/twiml/connect/conversationrelay#connect-action-url-callback
206+
/// </summary>
207+
public string? HandoffData { get; set; }
208+
209+
#endregion
169210
}

0 commit comments

Comments
 (0)