Пример #1
0
        static int DoHold()
        {
            // Example cmd line: hold [email protected]
            OpalMessageRef command = new OpalMessageRef();
            OpalMessageRef response;

            Console.WriteLine("Hold");

            command.SetMessageType(Opal_API.OpalMessageType.OpalCmdHoldCall);
            command.SetCallToken(currentCallToken);

            if ((response = MySendCommand(command, "Could not hold call")) == null)
            {
                return(0);
            }

            heldCallToken    = currentCallToken;
            currentCallToken = null;

            return(1);
        }