public class SendImageCommand extends AbstractAgiCommand
Sends the given image on a channel.
Most channels do not support the transmission of images.
Returns 0 if image is sent, or if the channel does not support image transmission. Returns -1 only on error/hangup.
Image names should not include extensions.
| Constructor and Description |
|---|
SendImageCommand(String image)
Creates a new SendImageCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getImage()
Returns the image to send.
|
void |
setImage(String image)
Sets the image to send.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic SendImageCommand(String image)
image - the image to send, should not include extension.public String getImage()
public void setImage(String image)
image - the image to send, should not include extension.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2024. All rights reserved.