All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.asteriskjava.fastagi.command.MeetmeCommand Maven / Gradle / Ivy

There is a newer version: 3.40.1
Show newest version
package org.asteriskjava.fastagi.command;

public class MeetmeCommand extends AbstractAgiCommand
{
    /**
     * Serial version identifier.
     */
    private static final long serialVersionUID = 3762248656229053753L;
    private String room;
    private String options;

    /**
     * Creates a new AnswerCommand.
     */
    public MeetmeCommand(String room, String options)
    {
        super();
        this.room = room;
        this.options = options;
    }

    @Override
    public String buildCommand()
    {
        String command = "EXEC " + escapeAndQuote("meetme") + " " + escapeAndQuote(room);
        if (options != null && options.length() > 0)
        {
            command += "|" + escapeAndQuote(options);
        }

        return command;

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy