/* * JBoss, Home of Professional Open Source * Copyright 2011, Red Hat, Inc. and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.restcomm.media.client.mgcp.jain.pkg; import jain.protocol.ip.mgcp.pkg.MgcpEvent; /** * * @author amit bhayani * */ public class AUMgcpEvent { /* _______________________________________________________________________ * | Symbol | Definition | R | S Duration | * |______________|________________________|______|______________________| * | pa(parms) | PlayAnnouncement | | TO variable | * | pc(parms) | PlayCollect | | TO variable | * | pr(parms) | PlayRecord | | TO variable | * | es(parm) | EndSignal | | BR | * | oc(parms) | OperationComplete | x | | * | of(parms) | OperationFailed | x | | * |______________|________________________|______|______________________| */ public static final MgcpEvent aupa = MgcpEvent.pa; public static final int PLAY_COLLECT = 201; public static final MgcpEvent aupc = MgcpEvent.factory("pc", PLAY_COLLECT); public static final int PLAY_RECORD = 202; public static final MgcpEvent aupr = MgcpEvent.factory("pr",PLAY_RECORD); public static final int END_SIGNAL = 203; public static final MgcpEvent aues = MgcpEvent.factory("es",END_SIGNAL); public static final MgcpEvent auoc = MgcpEvent.oc; public static final MgcpEvent auof = MgcpEvent.of; public static void main(String args[]){ System.out.println("rfc2897pa = "+ aupa.toString()); System.out.println("PLAY_ANNOUNCEMENT = "+ MgcpEvent.PLAY_AN_ANNOUNCEMENT); System.out.println("rfc2897pc = "+ aupc.toString()); System.out.println("PLAY_COLLECT = "+ PLAY_COLLECT); System.out.println("rfc2897of = "+ auof.toString()); System.out.println("OPERATION_FAIL = "+ MgcpEvent.REPORT_FAILURE); } }