View Javadoc

1   /*
2    * Copyright  2004-2005 Stefan Reuter
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *
16   */
17  package net.sf.asterisk.manager.event;
18  
19  /***
20   * A UnparkedCallEvent is triggered when a channel that has been parked is
21   * resumed.<br>
22   * It is implemented in <code>res/res_features.c</code><br>
23   * Available since Asterisk 1.2
24   * 
25   * @author srt
26   * @version $Id: UnparkedCallEvent.java,v 1.1 2005/08/27 12:08:59 srt Exp $
27   * @since 0.2
28   */
29  public class UnparkedCallEvent extends AbstractParkedCallEvent
30  {
31      /***
32       * Serializable version identifier
33       */
34      private static final long serialVersionUID = -7437833328723536814L;
35  
36      private String from;
37  
38      /***
39       * @param source
40       */
41      public UnparkedCallEvent(Object source)
42      {
43          super(source);
44      }
45  
46      /***
47       * Returns the name of the channel that parked the call.
48       */
49      public String getFrom()
50      {
51          return from;
52      }
53  
54      /***
55       * Sets the name of the channel that parked the call.
56       */
57      public void setFrom(String from)
58      {
59          this.from = from;
60      }
61  }