Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving Dev into Main ready for a release (#171)
* Correction to docs for automatic archiving * Fixes NullReferenceException in CreateSession (#114) * Better handle WebExceptions that don't have a Response and send a customized exception on WebExceptionStatus.SendFailure errors (usually from TLS errors). Fixes #108. * Adding extra instructions regarding TLS to readme, adding new exception handling if TLS is incorrect * removing erroneously added whitespace * list archive by session id, better exception handling for validateSessionid * removing extra whitespace from tests * cleaning up other whitespace issues * passing inner exception to OpenTokException * Fixing comments, removing redundant fields * adding custom layout for archiving * fixing spacing issue, adding javadocs to StartArchive for layout * revving to 3.4 * adding extra Archive Test * Adding non-custom with stylesheet case * adding contract annotations to ArchiveLayout to prevent invalid serialization of the stylesheet for non-custom layouts * bringing balance to the force * Dropping core 3.0 tests * moving back to newer container * removing .net core 2.x runs * Silenced warnings in the test project. * empty Statement Redundancy Fix * Spell Fix * Spell Fix * Spell Fix | GetPartnerIdFromSessionId Spell Fix | GetPartnerIdFromSessionId method's Property * moving dotnet version * specifying test framework * Changed Javadoc comments to XML comments. * Replace <see href with <a href. * Added additional comments. * Revving to 3.5.0 * automatic release on new GitHub release * adding OUTPUT_PATH * fixing Windows CI issue * updating nexmo/github-actions branch to main * screenshare layout * more tests * Adding SetArchiveLayout, updating unit tests * moving null ignore to data structure * fixing error message * fixing screenshareType * revving to 3.6.0 * Removing travis config * Removing travis, fixing GitHub Actions definitions and adding package settings in project file (#164) * Docs corrections (#161) Co-authored-by: Stephen Lorello <42971704+slorello89@users.noreply.github.com> Co-authored-by: slorello89 <slorello89@gmail.com> Co-authored-by: Dirk Lemstra <dirk@lemstra.org> Co-authored-by: onpoc <gupta.pradeep506@gmail.com> Co-authored-by: Matt Hunt <mattlethargic@gmail.com> Co-authored-by: Jeff Swartz <jeff.swartz@vonage.com> * Implementing Dial method for initiating a SIP call (#166) * Adding Dial method, test fails * Adding dial async and tests * Adding session validation * Removing key from appsettings * Adding valid session id to tests * Docs edits for Dial API ... and other minor docs corrections Co-authored-by: Jeff Swartz <jeff.swartz@vonage.com> * Rev the version to 3.7.0 * Adding Force and Disable Mute (#167) * Adding Force and Disable Mute * Docs edits for the Force Mute API enhancements * Fixing PlayDTMF methods that had wrong URL Co-authored-by: Jeff Swartz <jeff.swartz@vonage.com> Co-authored-by: matt-lethargic <matt-lethargic@gmail.com> * Docs edits for v3.7.0 (#169) * Changing version number (#170) * Docs corrections Co-authored-by: Jeff Swartz <jeff.swartz@vonage.com> Co-authored-by: Paul Ardeleanu <paul.ardeleanu@vonage.com> Co-authored-by: Patrick Childers <patrick@aliihealthcare.com> Co-authored-by: Stephen Lorello <42971704+slorello89@users.noreply.github.com> Co-authored-by: slorello89 <slorello89@gmail.com> Co-authored-by: Dirk Lemstra <dirk@lemstra.org> Co-authored-by: onpoc <gupta.pradeep506@gmail.com> Co-authored-by: matt-lethargic <matt-lethargic@gmail.com>
- Loading branch information
1 parent
0158965
commit 76dcda5
Showing
19 changed files
with
1,312 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace OpenTokSDK | ||
{ | ||
/// <summary> | ||
/// Used to set the username and password to be used in the <see cref="OpenTok.Dial"/> method. | ||
/// These are used in the SIP INVITE request for HTTP digest authentication, if it is required | ||
/// by your SIP platform. See the <see cref="DialOptions"/> class. | ||
/// </summary> | ||
public class DialAuth | ||
{ | ||
/// <summary> | ||
/// The username. | ||
/// </summary> | ||
public string Username { get; set; } | ||
|
||
/// <summary> | ||
/// The password. | ||
/// </summary> | ||
public string Password { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace OpenTokSDK | ||
{ | ||
/// <summary> | ||
/// Used to define options for the the <see cref="OpenTok.Dial"/> method. These are | ||
/// custom headers to be added to the SIP INVITE request initiated from OpenTok to | ||
/// your SIP platform. | ||
/// </summary> | ||
public class DialOptions | ||
{ | ||
/// <summary> | ||
/// A dictionary of custom headers to be added to the SIP INVITE request initiated | ||
/// from OpenTok to your SIP platform. | ||
/// </summary> | ||
public Dictionary<string, object> Headers { get; set; } | ||
|
||
/// <summary> | ||
/// Contains the username and password to be used in the the SIP INVITE request. | ||
/// </summary> | ||
public DialAuth Auth { get; set; } | ||
|
||
/// <summary> | ||
/// Indicates whether the media must be transmitted encrypted (true) or not (false, the default). | ||
/// </summary> | ||
public bool? Secure { get; set; } | ||
|
||
/// <summary> | ||
/// The number or string that will be sent to the final SIP number as the caller. | ||
/// </summary> | ||
/// <remarks> | ||
/// This must be a string in the form of "from@example.com", where <c>from</c> can be a string or a number. If it is set | ||
/// to a number (for example, "14155550101@example.com"), it will show up as the incoming number on PSTN phones. | ||
/// If it is undefined or set to a string (for example, "joe@example.com"), +00000000 will show up as the incoming | ||
/// number on PSTN phones. | ||
/// </remarks> | ||
public string From { get; set; } | ||
|
||
/// <summary> | ||
/// Whether the SIP call will include video (true) or not (false, the default). | ||
/// </summary> | ||
/// <remarks>With video included, the SIP client's video is included in the OpenTok stream | ||
/// that is sent to the OpenTok session. The SIP client will receive a single composed video of the published streams | ||
/// in the OpenTok session.</remarks> | ||
public bool? Video { get; set; } | ||
|
||
/// <summary> | ||
/// Whether the SIP endpoint observes | ||
/// <a href="https://tokbox.com/developer/guides/moderation/#force_mute">force mute moderation</a> | ||
/// (true) or not (false, the default). | ||
/// </summary> | ||
public bool? ObserveForceMute { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
|
||
namespace OpenTokSDK.Exception | ||
{ | ||
/// <summary> | ||
/// Defines an exception object thrown when an invalid argument is passed into a method. | ||
/// </summary> | ||
public class OpenTokArgumentException : ArgumentException | ||
{ | ||
/// <inheritdoc cref="ArgumentException"/> | ||
public OpenTokArgumentException(string message) | ||
:base(message) | ||
{ | ||
|
||
} | ||
|
||
/// <inheritdoc cref="ArgumentException"/> | ||
public OpenTokArgumentException(string message, string paramName) | ||
: base(message, paramName) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace OpenTokSDK.Exception | ||
{ | ||
/// <summary> | ||
/// Defines an exception object thrown when a REST API call results in an error response. | ||
/// </summary> | ||
public class OpenTokWebException : OpenTokException | ||
{ | ||
/// <summary> | ||
/// Constructor. Do not use. | ||
/// </summary> | ||
/// <param name="message"></param> | ||
/// <param name="exception"></param> | ||
public OpenTokWebException(string message, System.Exception exception) | ||
: base(message, exception) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Constructor. Do not use. | ||
/// </summary> | ||
/// <param name="message"></param> | ||
public OpenTokWebException(string message) | ||
: base(message) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.