Package org.asteriskjava.live

Examples of org.asteriskjava.live.AsteriskChannel


        return copy;
    }

    synchronized void channelDialed(Date date, AsteriskChannel dialedChannel)
    {
        final AsteriskChannel oldDialedChannel = this.dialedChannel;
        final DialedChannelHistoryEntry historyEntry;

        historyEntry = new DialedChannelHistoryEntry(date, dialedChannel);
        synchronized (dialedChannelHistory)
        {
View Full Code Here


        return dialingChannel;
    }

    synchronized void channelDialing(Date date, AsteriskChannel dialingChannel)
    {
        final AsteriskChannel oldDialingChannel = this.dialingChannel;

        this.dialingChannel = dialingChannel;
        firePropertyChange(PROPERTY_DIALING_CHANNEL, oldDialingChannel, dialingChannel);
    }
View Full Code Here

     * @param date          the date this channel was linked.
     * @param linkedChannel the channel this channel is bridged with.
     */
    synchronized void channelLinked(Date date, AsteriskChannel linkedChannel)
    {
        final AsteriskChannel oldLinkedChannel = this.linkedChannel;
        final LinkedChannelHistoryEntry historyEntry;

        historyEntry = new LinkedChannelHistoryEntry(date, linkedChannel);
        synchronized (linkedChannelHistory)
        {
View Full Code Here

        firePropertyChange(PROPERTY_LINKED_CHANNEL, oldLinkedChannel, linkedChannel);
    }

    synchronized void channelUnlinked(Date date)
    {
        final AsteriskChannel oldLinkedChannel = this.linkedChannel;
        final LinkedChannelHistoryEntry historyEntry;

        synchronized (linkedChannelHistory)
        {
            if (linkedChannelHistory.isEmpty())
View Full Code Here

    @Override
    public String toString()
    {
        final StringBuffer sb;
        final AsteriskChannel dialedChannel;
        final AsteriskChannel dialingChannel;
        final AsteriskChannel linkedChannel;

        sb = new StringBuffer("AsteriskChannel[");

        synchronized (this)
        {
            sb.append("id='").append(getId()).append("',");
            sb.append("name='").append(getName()).append("',");
            sb.append("callerId='").append(getCallerId()).append("',");
            sb.append("state='").append(getState()).append("',");
            sb.append("account='").append(getAccount()).append("',");
            sb.append("dateOfCreation=").append(getDateOfCreation()).append(",");
            dialedChannel = this.dialedChannel;
            dialingChannel = this.dialingChannel;
            linkedChannel = this.linkedChannel;
        }
        if (dialedChannel == null)
        {
            sb.append("dialedChannel=null,");
        }
        else
        {
            sb.append("dialedChannel=AsteriskChannel[");
            synchronized (dialedChannel)
            {
                sb.append("id='").append(dialedChannel.getId()).append("',");
                sb.append("name='").append(dialedChannel.getName()).append("'],");
            }
        }
        if (dialingChannel == null)
        {
            sb.append("dialingChannel=null,");
        }
        else
        {
            sb.append("dialingChannel=AsteriskChannel[");
            synchronized (dialingChannel)
            {
                sb.append("id='").append(dialingChannel.getId()).append("',");
                sb.append("name='").append(dialingChannel.getName()).append("'],");
            }
        }
        if (linkedChannel == null)
        {
            sb.append("linkedChannel=null");
        }
        else
        {
            sb.append("linkedChannel=AsteriskChannel[");
            synchronized (linkedChannel)
            {
                sb.append("id='").append(linkedChannel.getId()).append("',");
                sb.append("name='").append(linkedChannel.getName()).append("']");
            }
        }
        sb.append("]");

        return sb.toString();
View Full Code Here

        return copy;
    }

    synchronized void channelDialed(Date date, AsteriskChannel dialedChannel)
    {
        final AsteriskChannel oldDialedChannel = this.dialedChannel;
        final DialedChannelHistoryEntry historyEntry;

        historyEntry = new DialedChannelHistoryEntry(date, dialedChannel);
        synchronized (dialedChannelHistory)
        {
View Full Code Here

        return dialingChannel;
    }

    synchronized void channelDialing(Date date, AsteriskChannel dialingChannel)
    {
        final AsteriskChannel oldDialingChannel = this.dialingChannel;

        this.dialingChannel = dialingChannel;
        firePropertyChange(PROPERTY_DIALING_CHANNEL, oldDialingChannel, dialingChannel);
    }
View Full Code Here

     * @param date          the date this channel was linked.
     * @param linkedChannel the channel this channel is bridged with.
     */
    synchronized void channelLinked(Date date, AsteriskChannel linkedChannel)
    {
        final AsteriskChannel oldLinkedChannel = this.linkedChannel;
        final LinkedChannelHistoryEntry historyEntry;

        historyEntry = new LinkedChannelHistoryEntry(date, linkedChannel);
        synchronized (linkedChannelHistory)
        {
View Full Code Here

        firePropertyChange(PROPERTY_LINKED_CHANNEL, oldLinkedChannel, linkedChannel);
    }

    synchronized void channelUnlinked(Date date)
    {
        final AsteriskChannel oldLinkedChannel = this.linkedChannel;
        final LinkedChannelHistoryEntry historyEntry;

        synchronized (linkedChannelHistory)
        {
            if (linkedChannelHistory.isEmpty())
View Full Code Here

    @Override
    public String toString()
    {
        final StringBuffer sb;
        final AsteriskChannel dialedChannel;
        final AsteriskChannel dialingChannel;
        final AsteriskChannel linkedChannel;

        sb = new StringBuffer("AsteriskChannel[");

        synchronized (this)
        {
            sb.append("id='").append(getId()).append("',");
            sb.append("name='").append(getName()).append("',");
            sb.append("callerId='").append(getCallerId()).append("',");
            sb.append("state='").append(getState()).append("',");
            sb.append("account='").append(getAccount()).append("',");
            sb.append("dateOfCreation=").append(getDateOfCreation()).append(",");
            dialedChannel = this.dialedChannel;
            dialingChannel = this.dialingChannel;
            linkedChannel = this.linkedChannel;
        }
        if (dialedChannel == null)
        {
            sb.append("dialedChannel=null,");
        }
        else
        {
            sb.append("dialedChannel=AsteriskChannel[");
            synchronized (dialedChannel)
            {
                sb.append("id='").append(dialedChannel.getId()).append("',");
                sb.append("name='").append(dialedChannel.getName()).append("'],");
            }
        }
        if (dialingChannel == null)
        {
            sb.append("dialingChannel=null,");
        }
        else
        {
            sb.append("dialingChannel=AsteriskChannel[");
            synchronized (dialingChannel)
            {
                sb.append("id='").append(dialingChannel.getId()).append("',");
                sb.append("name='").append(dialingChannel.getName()).append("'],");
            }
        }
        if (linkedChannel == null)
        {
            sb.append("linkedChannel=null");
        }
        else
        {
            sb.append("linkedChannel=AsteriskChannel[");
            synchronized (linkedChannel)
            {
                sb.append("id='").append(linkedChannel.getId()).append("',");
                sb.append("name='").append(linkedChannel.getName()).append("']");
            }
        }
        sb.append("]");

        return sb.toString();
View Full Code Here

TOP

Related Classes of org.asteriskjava.live.AsteriskChannel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.