/*
 *  Copyright 2004-2006 Stefan Reuter
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 */
package org.asteriskjava.manager.event;

/**
 * A NewExtenEvent is triggered when a channel is connected to a new extension.<p>
 * It is implemented in <code>pbx.c</code>
 * 
 * @author srt
 * @version $Id$
 */
public class NewExtenEvent extends ManagerEvent
{
    /**
     * Serializable version identifier
     */
    static final long serialVersionUID = -467486409866099387L;

    private String uniqueId;
    private String context;
    private String extension;
    private String application;
    private String appData;
    private Integer priority;
    private String channel;
    private String calleridnum;
    private String calleridname;
    private String language;
    private String connectedlinenum;
    private String connectedlinename;
    private String exten;
    private String channelstatedesc;
    
    private Integer channelstate;
    
    

    /**
     * @param source
     */
    public NewExtenEvent(Object source)
    {
        super(source);
    }

    /**
     * Returns the unique id of the channel.
     */
    public String getUniqueId()
    {
        return uniqueId;
    }

    /**
     * Sets the unique id of the channel.
     */
    public void setUniqueId(String uniqueId)
    {
        this.uniqueId = uniqueId;
    }

    /**
     * Returns the name of the application that is executed.
     */
    public String getApplication()
    {
        return application;
    }

    /**
     * Sets the name of the application that is executed.
     */
    public void setApplication(String application)
    {
        this.application = application;
    }

    /**
     * Returns the parameters passed to the application that is executed. The parameters are
     * separated by a '|' character.
     */
    public String getAppData()
    {
        return appData;
    }

    /**
     * Sets the parameters passed to the application that is executed.
     */
    public void setAppData(String appData)
    {
        this.appData = appData;
    }

    /**
     * Returns the name of the channel.
     */
    public String getChannel()
    {
        return channel;
    }

    /**
     * Sets the name of the channel.
     */
    public void setChannel(String channel)
    {
        this.channel = channel;
    }

    /**
     * Returns the name of the context of the connected extension.
     */
    public String getContext()
    {
        return context;
    }

    /**
     * Sets the name of the context of the connected extension.
     */
    public void setContext(String context)
    {
        this.context = context;
    }

    /**
     * Returns the extension.
     */
    public String getExtension()
    {
        return extension;
    }

    /**
     * Sets the extension.
     */
    public void setExtension(String extension)
    {
        this.extension = extension;
    }

    /**
     * Returns the priority.
     */
    public Integer getPriority()
    {
        return priority;
    }

    /**
     * Sets the priority.
     */
    public void setPriority(Integer priority)
    {
        this.priority = priority;
    }

    public String getCalleridnum() {
        return calleridnum;
    }

    public void setCalleridnum(String calleridnum) {
        this.calleridnum = calleridnum;
    }
}

@@ -3851,11 +3851,1271 @@
 m;%0A    %7D
+%0A%0A    public String getCalleridname() %7B%0A        return calleridname;%0A    %7D%0A%0A    public void setCalleridname(String calleridname) %7B%0A        this.calleridname = calleridname;%0A    %7D%0A%0A    public String getLanguage() %7B%0A        return language;%0A    %7D%0A%0A    public void setLanguage(String language) %7B%0A        this.language = language;%0A    %7D%0A%0A    public String getConnectedlinenum() %7B%0A        return connectedlinenum;%0A    %7D%0A%0A    public void setConnectedlinenum(String connectedlinenum) %7B%0A        this.connectedlinenum = connectedlinenum;%0A    %7D%0A%0A    public String getConnectedlinename() %7B%0A        return connectedlinename;%0A    %7D%0A%0A    public void setConnectedlinename(String connectedlinename) %7B%0A        this.connectedlinename = connectedlinename;%0A    %7D%0A%0A    public String getExten() %7B%0A        return exten;%0A    %7D%0A%0A    public void setExten(String exten) %7B%0A        this.exten = exten;%0A    %7D%0A%0A    public String getChannelstatedesc() %7B%0A        return channelstatedesc;%0A    %7D%0A%0A    public void setChannelstatedesc(String channelstatedesc) %7B%0A        this.channelstatedesc = channelstatedesc;%0A    %7D%0A%0A    public Integer getChannelstate() %7B%0A        return channelstate;%0A    %7D%0A%0A    public void setChannelstate(Integer channelstate) %7B%0A        this.channelstate = channelstate;%0A    %7D
 %0A%7D%0A

changes for asterisk 13