[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/manager/action OriginateAction.java,
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-07-16 23:28:25
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/action In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29252/src/java/net/sf/asterisk/manager/action Modified Files: OriginateAction.java Log Message: Changed type of timeout attribute to Long Index: OriginateAction.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/action/OriginateAction.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -p -r1.4 -r1.5 --- OriginateAction.java 16 Jul 2005 14:25:48 -0000 1.4 +++ OriginateAction.java 16 Jul 2005 23:27:46 -0000 1.5 @@ -19,40 +19,40 @@ package net.sf.asterisk.manager.action; import net.sf.asterisk.manager.event.OriginateEvent; /** - * The OriginateAction generates an outgoing call to the extension in the given context with the - * given priority or to a given application with optional parameters.<br> - * - * If you want to connect to an extension use the properties context, exten and priority. If you - * want to connect to an application use the properties application and data if needed. Note that no - * call detail record will be written when directly connecting to an application, so it may be - * better to connect to an extension that starts the application you wish to connect to.<br> - * - * The response to this action is sent when the channel has been answered and asterisk starts - * connecting it to the given extension. So be careful not to choose a too short timeout when - * waiting for the response.<br> - * - * If the origination succeeds an OriginateSuccessEvent is generated, if it fails an - * OriginateFailureEvent is generated. The action id of these events equals the action id of this - * OriginateAction. + * The OriginateAction generates an outgoing call to the extension in the given + * context with the given priority or to a given application with optional + * parameters.<br> + * If you want to connect to an extension use the properties context, exten and + * priority. If you want to connect to an application use the properties + * application and data if needed. Note that no call detail record will be + * written when directly connecting to an application, so it may be better to + * connect to an extension that starts the application you wish to connect to.<br> + * The response to this action is sent when the channel has been answered and + * asterisk starts connecting it to the given extension. So be careful not to + * choose a too short timeout when waiting for the response.<br> + * If the origination succeeds an OriginateSuccessEvent is generated, if it + * fails an OriginateFailureEvent is generated. The action id of these events + * equals the action id of this OriginateAction. * * @see net.sf.asterisk.manager.event.OriginateSuccessEvent * @see net.sf.asterisk.manager.event.OriginateFailureEvent - * * @author srt * @version $Id$ */ -public class OriginateAction extends AbstractManagerAction implements EventGeneratingAction +public class OriginateAction extends AbstractManagerAction + implements + EventGeneratingAction { /** * Serializable version identifier */ - static final long serialVersionUID = 8194597741743334704L; + static final long serialVersionUID = 8194597741743334704L; private String channel; private String exten; private String context; private Integer priority; - private Integer timeout; + private Long timeout; private String callerId; private Boolean callingPres; private String variable; @@ -79,8 +79,8 @@ public class OriginateAction extends Abs /** * Sets the account code to use for the originated call.<br> - * The account code is included in the call detail record generated for this call and will be - * used for billing. + * The account code is included in the call detail record generated for this + * call and will be used for billing. */ public void setAccount(String account) { @@ -104,7 +104,8 @@ public class OriginateAction extends Abs } /** - * Returns <code>true</code> if Caller ID presentation is set on the outgoing channel. + * Returns <code>true</code> if Caller ID presentation is set on the + * outgoing channel. */ public Boolean getCallingPres() { @@ -112,8 +113,8 @@ public class OriginateAction extends Abs } /** - * Set to <code>true</code> if you want Caller ID presentation to be set on the outgoing - * channel. + * Set to <code>true</code> if you want Caller ID presentation to be set + * on the outgoing channel. */ public void setCallingPres(Boolean callingPres) { @@ -147,7 +148,8 @@ public class OriginateAction extends Abs /** * Sets the name of the context of the extension to connect to.<br> - * If you set the context you also have to set the exten and priority properties. + * If you set the context you also have to set the exten and priority + * properties. */ public void setContext(String context) { @@ -164,7 +166,8 @@ public class OriginateAction extends Abs /** * Sets the extension to connect to.<br> - * If you set the extension you also have to set the context and priority properties. + * If you set the extension you also have to set the context and priority + * properties. */ public void setExten(String exten) { @@ -180,8 +183,8 @@ public class OriginateAction extends Abs } /** - * Sets the priority of the extension to connect to. If you set the priority you also have to - * set the context and exten properties. + * Sets the priority of the extension to connect to. If you set the priority + * you also have to set the context and exten properties. */ public void setPriority(Integer priority) { @@ -223,18 +226,18 @@ public class OriginateAction extends Abs /** * Returns the timeout for the origination. */ - public Integer getTimeout() + public Long getTimeout() { return timeout; } /** * Sets the timeout (in milliseconds) for the origination.<br> - * The channel must be answered within this time, otherwise the origination is considered to - * have failed and an OriginateFailureEvent is generated.<br> - * If not set, asterisk assumes a default value of 30000 meaning 30 seconds. + * The channel must be answered within this time, otherwise the origination + * is considered to have failed and an OriginateFailureEvent is generated.<br> + * If not set, Asterisk assumes a default value of 30000 meaning 30 seconds. */ - public void setTimeout(Integer timeout) + public void setTimeout(Long timeout) { this.timeout = timeout; } @@ -249,9 +252,10 @@ public class OriginateAction extends Abs /** * Sets the variables to set on the originated call.<br> - * Variable assignments are of the form "VARNAME=VALUE". You can specify multiple variable - * assignments separated by the '|' character.<br> - * Example: "VAR1=abc|VAR2=def" sets the channel variables VAR1 to "abc" and VAR2 to "def". + * Variable assignments are of the form "VARNAME=VALUE". You can specify + * multiple variable assignments separated by the '|' character.<br> + * Example: "VAR1=abc|VAR2=def" sets the channel variables VAR1 to "abc" and + * VAR2 to "def". */ public void setVariable(String variable) { |