Example #1
0
        /// <summary>
        /// VoIP call.
        /// </summary>
        /// <param name="endpoint">The endpoint instance.</param>
        /// <param name="accountConnection">Account connection configuration.</param>
        public VoIPCall(VoIPEndpoint endpoint, AccountConnection accountConnection)
        {
            if (accountConnection == null)
            {
                throw new ArgumentNullException(nameof(accountConnection));
            }

            // Create the voip manager.
            _voipManager = new VoIPManager(endpoint, accountConnection);
        }
Example #2
0
        /// <summary>
        /// VoIP manager.
        /// </summary>
        /// <param name="endpoint">The endpoint instance.</param>
        /// <param name="accountName">The account name or service phone number.</param>
        /// <param name="spHost">The service provider host name or IP address.</param>
        /// <param name="username">The sip username.</param>
        /// <param name="password">The sip password.</param>
        public VoIPManager(VoIPEndpoint endpoint, string accountName, string spHost, string username, string password)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException(nameof(endpoint));
            }

            _endpoint = endpoint;
            _account  = new Account(new AccountConnection(accountName, spHost, username, password));

            // Get the media manager.
            _mediaManager = _endpoint.Endpoint.GetMediaManager(_account);
        }
Example #3
0
        /// <summary>
        /// VoIP manager.
        /// </summary>
        /// <param name="endpoint">The endpoint instance.</param>
        public VoIPManager(VoIPEndpoint endpoint)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException(nameof(endpoint));
            }

            _endpoint = endpoint;
            _account  = new Account(new AccountConnection());

            // Get the media manager.
            _mediaManager = _endpoint.Endpoint.GetMediaManager(_account);
        }
Example #4
0
 /// <summary>
 /// VoIP call.
 /// </summary>
 /// <param name="endpoint">The endpoint instance.</param>
 /// <param name="accountName">The account name or service phone number.</param>
 /// <param name="spHost">The service provider host name or IP address.</param>
 /// <param name="username">The sip username.</param>
 /// <param name="password">The sip password.</param>
 public VoIPCall(VoIPEndpoint endpoint, string accountName, string spHost, string username, string password)
 {
     _voipManager = new VoIPManager(endpoint, accountName, spHost, username, password);
 }
Example #5
0
 /// <summary>
 /// VoIP call.
 /// </summary>
 /// <param name="endpoint">The endpoint instance.</param>
 public VoIPCall(VoIPEndpoint endpoint)
 {
     // Create the voip manager.
     _voipManager = new VoIPManager(endpoint);
 }