Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountConfigMedia" /> class.
 /// </summary>
 /// <param name="callRecording">callRecording.</param>
 public AccountConfigMedia(AccountConfigMediaCallRecording callRecording = default(AccountConfigMediaCallRecording))
 {
     this.CallRecording = callRecording;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SystemConfigMedia" /> class.
 /// </summary>
 /// <param name="authenticatedPlayback">media authenticated playback (default to false).</param>
 /// <param name="authenticatedStore">media authenticated store (default to true).</param>
 /// <param name="callRecording">callRecording.</param>
 /// <param name="defaultLanguage">media default language.</param>
 /// <param name="distributedProxy">media distributed_proxy.</param>
 /// <param name="fixMediaNames">media fix media names (default to true).</param>
 /// <param name="maxRecordingTimeLimit">media maximum recording time limit.</param>
 /// <param name="normalizeDestinationArgs">media normalize destination args (default to &quot;-r 8000&quot;).</param>
 /// <param name="normalizeExecutable">media normalize executable (default to &quot;sox&quot;).</param>
 /// <param name="normalizeSourceArgs">media normalize source args (default to &quot;&quot;).</param>
 /// <param name="proxyHostname">media proxy hostname to be used with HAProxy.</param>
 /// <param name="proxyIp">media proxy ip.</param>
 /// <param name="proxyListeners">media proxy listeners.</param>
 /// <param name="proxyPassword">media proxy password (default to &quot;&quot;).</param>
 /// <param name="proxyPort">media proxy port.</param>
 /// <param name="proxyStoreAcls">media proxy store acls.</param>
 /// <param name="proxyStoreAuthenticate">media proxy store authenticate (default to true).</param>
 /// <param name="proxyUsername">media proxy username (default to &quot;&quot;).</param>
 /// <param name="recordMinSec">media record minimum sec.</param>
 /// <param name="sslCert">media ssl cert.</param>
 /// <param name="sslKey">media ssl key.</param>
 /// <param name="sslPassword">media ssl password (default to &quot;&quot;).</param>
 /// <param name="sslPort">media ssl port.</param>
 /// <param name="storeRecordings">media store recordings (default to false).</param>
 /// <param name="supportAccountOverrides">media support account overrides (default to true).</param>
 /// <param name="useHttps">media use https (default to false).</param>
 /// <param name="usePlaintext">media use plaintext (default to true).</param>
 /// <param name="useSslProxy">media use ssl proxy (default to false).</param>
 public SystemConfigMedia(bool?authenticatedPlayback = false, bool?authenticatedStore = true, AccountConfigMediaCallRecording callRecording = default(AccountConfigMediaCallRecording), string defaultLanguage = default(string), Object distributedProxy = default(Object), bool?fixMediaNames = true, int?maxRecordingTimeLimit = default(int?), string normalizeDestinationArgs = "-r 8000", string normalizeExecutable = "sox", string normalizeSourceArgs = "", string proxyHostname = default(string), string proxyIp = default(string), int?proxyListeners = default(int?), string proxyPassword = "", int?proxyPort = default(int?), List <string> proxyStoreAcls = default(List <string>), bool?proxyStoreAuthenticate = true, string proxyUsername = "", int?recordMinSec = default(int?), string sslCert = default(string), string sslKey = default(string), string sslPassword = "", int?sslPort = default(int?), bool?storeRecordings = false, bool?supportAccountOverrides = true, bool?useHttps = false, bool?usePlaintext = true, bool?useSslProxy = false)
 {
     // use default value if no "authenticatedPlayback" provided
     if (authenticatedPlayback == null)
     {
         this.AuthenticatedPlayback = false;
     }
     else
     {
         this.AuthenticatedPlayback = authenticatedPlayback;
     }
     // use default value if no "authenticatedStore" provided
     if (authenticatedStore == null)
     {
         this.AuthenticatedStore = true;
     }
     else
     {
         this.AuthenticatedStore = authenticatedStore;
     }
     this.CallRecording    = callRecording;
     this.DefaultLanguage  = defaultLanguage;
     this.DistributedProxy = distributedProxy;
     // use default value if no "fixMediaNames" provided
     if (fixMediaNames == null)
     {
         this.FixMediaNames = true;
     }
     else
     {
         this.FixMediaNames = fixMediaNames;
     }
     this.MaxRecordingTimeLimit = maxRecordingTimeLimit;
     // use default value if no "normalizeDestinationArgs" provided
     if (normalizeDestinationArgs == null)
     {
         this.NormalizeDestinationArgs = "-r 8000";
     }
     else
     {
         this.NormalizeDestinationArgs = normalizeDestinationArgs;
     }
     // use default value if no "normalizeExecutable" provided
     if (normalizeExecutable == null)
     {
         this.NormalizeExecutable = "sox";
     }
     else
     {
         this.NormalizeExecutable = normalizeExecutable;
     }
     // use default value if no "normalizeSourceArgs" provided
     if (normalizeSourceArgs == null)
     {
         this.NormalizeSourceArgs = "";
     }
     else
     {
         this.NormalizeSourceArgs = normalizeSourceArgs;
     }
     this.ProxyHostname  = proxyHostname;
     this.ProxyIp        = proxyIp;
     this.ProxyListeners = proxyListeners;
     // use default value if no "proxyPassword" provided
     if (proxyPassword == null)
     {
         this.ProxyPassword = "";
     }
     else
     {
         this.ProxyPassword = proxyPassword;
     }
     this.ProxyPort      = proxyPort;
     this.ProxyStoreAcls = proxyStoreAcls;
     // use default value if no "proxyStoreAuthenticate" provided
     if (proxyStoreAuthenticate == null)
     {
         this.ProxyStoreAuthenticate = true;
     }
     else
     {
         this.ProxyStoreAuthenticate = proxyStoreAuthenticate;
     }
     // use default value if no "proxyUsername" provided
     if (proxyUsername == null)
     {
         this.ProxyUsername = "";
     }
     else
     {
         this.ProxyUsername = proxyUsername;
     }
     this.RecordMinSec = recordMinSec;
     this.SslCert      = sslCert;
     this.SslKey       = sslKey;
     // use default value if no "sslPassword" provided
     if (sslPassword == null)
     {
         this.SslPassword = "";
     }
     else
     {
         this.SslPassword = sslPassword;
     }
     this.SslPort = sslPort;
     // use default value if no "storeRecordings" provided
     if (storeRecordings == null)
     {
         this.StoreRecordings = false;
     }
     else
     {
         this.StoreRecordings = storeRecordings;
     }
     // use default value if no "supportAccountOverrides" provided
     if (supportAccountOverrides == null)
     {
         this.SupportAccountOverrides = true;
     }
     else
     {
         this.SupportAccountOverrides = supportAccountOverrides;
     }
     // use default value if no "useHttps" provided
     if (useHttps == null)
     {
         this.UseHttps = false;
     }
     else
     {
         this.UseHttps = useHttps;
     }
     // use default value if no "usePlaintext" provided
     if (usePlaintext == null)
     {
         this.UsePlaintext = true;
     }
     else
     {
         this.UsePlaintext = usePlaintext;
     }
     // use default value if no "useSslProxy" provided
     if (useSslProxy == null)
     {
         this.UseSslProxy = false;
     }
     else
     {
         this.UseSslProxy = useSslProxy;
     }
 }