<?php
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.2
//
// <auto-generated>
//
// Generated from file `Session.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//


namespace
{
    require_once 'Config.php';
    require_once 'Peer/User.php';
    require_once 'Peer/Originator.php';
    require_once 'Peer/Terminator.php';
    require_once 'Peer/Gateway.php';
    require_once 'Telephony/CdrFilter.php';
    require_once 'DbQueryTooLongException.php';
    require_once 'Peer/DescendantLimitReachedException.php';
    require_once 'Peer/UserGeneration/UserInfo.php';
    require_once 'Peer/UserGeneration/IntegerOverflowException.php';
    require_once 'Peer/UserGeneration/DuplicateNameException.php';
    require_once 'Peer/UserGeneration/WeakPasswordException.php';
    require_once 'Billing/RefillVoucher.php';
    require_once 'Billing/Currency.php';
    require_once 'Telephony/ChannelInfo.php';
    require_once 'HlrDipping/DippingResult.php';
    require_once 'HlrDipping/BatchDippingResult.php';
    require_once 'LnpMnpDipping/DippingResult.php';
    require_once 'LnpMnpDipping/BatchDippingResult.php';
    require_once 'Telephony/CallbackMode.php';
    require_once 'Telephony/Queue.php';
    require_once 'Messaging/Message.php';
    require_once 'Messaging/SendingResult.php';
    require_once 'Messaging/BatchSendingResult.php';
    require_once 'Telephony/CallGeneration/Task.php';
}

namespace Smartswitch
{
    global $Smartswitch__t_SpyMode;
    class SpyMode
    {
        const Eavesdrop = 0;
        const Whisper = 1;
        const Conference = 2;
    }

    $Smartswitch__t_SpyMode = IcePHP_defineEnum('::Smartswitch::SpyMode', array('Eavesdrop', 0, 'Whisper', 1, 'Conference', 2));
}

namespace Smartswitch
{
    global $Smartswitch__t_PeerDesc;

    if(!isset($Smartswitch__t_PeerDesc))
    {
        global $Smartswitch_Peer__t_PeerType;
        global $Smartswitch__t_LongOpt;
        $Smartswitch__t_PeerDesc = IcePHP_defineDictionary('::Smartswitch::PeerDesc', $Smartswitch_Peer__t_PeerType, $Smartswitch__t_LongOpt);
    }
}

namespace Smartswitch
{
    global $Smartswitch__t_Session;
    global $Smartswitch__t_SessionPrx;

    class SessionPrxHelper
    {
        public static function checkedCast($proxy, $facetOrContext=null, $context=null)
        {
            return $proxy->ice_checkedCast('::Smartswitch::Session', $facetOrContext, $context);
        }

        public static function uncheckedCast($proxy, $facet=null)
        {
            return $proxy->ice_uncheckedCast('::Smartswitch::Session', $facet);
        }

        public static function ice_staticId()
        {
            return '::Smartswitch::Session';
        }
    }
    $Smartswitch__t_Session = IcePHP_defineClass('::Smartswitch::Session', '\\Smartswitch\\Session', -1, false, true, null, null);

    global $Ice__t_ObjectPrx;
    $Smartswitch__t_SessionPrx = IcePHP_defineProxy('::Smartswitch::Session', $Ice__t_ObjectPrx, array($Glacier2__t_SessionPrx));

    global $Smartswitch_Peer__t_UserPrx;
    global $IcePHP__t_int;
    global $IcePHP__t_string;
    global $Smartswitch__t_StringSequence;
    global $Smartswitch_Peer_UserGeneration__t_UserInfoSequence;
    global $Smartswitch_Peer__t_OriginatorPrx;
    global $Smartswitch_Peer__t_TerminatorPrx;
    global $Smartswitch_Peer__t_GatewayPrx;
    global $Smartswitch_Peer__t_UserGroupPrx;
    global $Smartswitch_Peer__t_PeerType;
    global $Smartswitch_Peer__t_GenericPeerPrx;
    global $IcePHP__t_long;
    global $Smartswitch_Peer__t_CompanyPrx;
    global $Smartswitch_Telephony__t_ChannelInfoSequence;
    global $Smartswitch__t_PeerDesc;
    global $Smartswitch_Telephony__t_CdrFilter;
    global $Smartswitch_Telephony__t_CdrSequence;
    global $Smartswitch_Telephony__t_QueuePrx;
    global $Smartswitch_Billing__t_RefillVoucherPrx;
    global $Smartswitch_Billing__t_CurrencyPrx;
    global $Smartswitch_Billing__t_ServicePrx;
    global $Smartswitch_Billing__t_ServiceSequence;
    global $Smartswitch_Telephony__t_CallbackMode;
    global $Smartswitch_Messaging__t_Message;
    global $Smartswitch_Messaging__t_SendingResult;
    global $Smartswitch_Messaging__t_MessageSequence;
    global $Smartswitch_Messaging__t_BatchSendingResultSequence;
    global $Smartswitch_HlrDipping__t_DippingResult;
    global $Smartswitch_HlrDipping__t_BatchDippingResultSequence;
    global $Smartswitch_LnpMnpDipping__t_DippingResult;
    global $Smartswitch_LnpMnpDipping__t_BatchDippingResultSequence;
    global $Smartswitch__t_SpyMode;
    global $Smartswitch_Telephony_CallGeneration__t_TaskPrx;
    global $Smartswitch_Telephony_CallGeneration__t_TaskSequence;
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'getUser', 0, 0, 0, null, null, array($Smartswitch_Peer__t_UserPrx), null);
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findUserById', 0, 0, 0, array(array($IcePHP__t_int)), null, array($Smartswitch_Peer__t_UserPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findUserByName', 0, 0, 0, array(array($IcePHP__t_string)), null, array($Smartswitch_Peer__t_UserPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findUserByLogin', 0, 0, 0, array(array($IcePHP__t_string)), null, array($Smartswitch_Peer__t_UserPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'generateUsers', 0, 0, 0, array(array($IcePHP__t_string), array($IcePHP__t_int), array($IcePHP__t_int), array($IcePHP__t_int)), null, array($Smartswitch__t_StringSequence), array($Smartswitch__t_AccessException, $Smartswitch__t_ArgumentException, $Smartswitch_Peer_UserGeneration__t_IntegerOverflowException, $Smartswitch_Peer__t_DescendantLimitReachedException, $Smartswitch_Peer_UserGeneration__t_DuplicateNameException, $Smartswitch_Peer_UserGeneration__t_WeakPasswordException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'generateUsersWithInfo', 0, 0, 0, array(array($IcePHP__t_string), array($IcePHP__t_int), array($IcePHP__t_int)), null, array($Smartswitch_Peer_UserGeneration__t_UserInfoSequence), array($Smartswitch__t_AccessException, $Smartswitch__t_ArgumentException, $Smartswitch_Peer_UserGeneration__t_IntegerOverflowException, $Smartswitch_Peer__t_DescendantLimitReachedException, $Smartswitch_Peer_UserGeneration__t_DuplicateNameException, $Smartswitch_Peer_UserGeneration__t_WeakPasswordException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findOriginatorById', 0, 0, 0, array(array($IcePHP__t_int)), null, array($Smartswitch_Peer__t_OriginatorPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findTerminatorById', 0, 0, 0, array(array($IcePHP__t_int)), null, array($Smartswitch_Peer__t_TerminatorPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findGatewayById', 0, 0, 0, array(array($IcePHP__t_int)), null, array($Smartswitch_Peer__t_GatewayPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findUserGroupById', 0, 0, 0, array(array($IcePHP__t_int)), null, array($Smartswitch_Peer__t_UserGroupPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findPeerById', 0, 0, 0, array(array($Smartswitch_Peer__t_PeerType), array($IcePHP__t_int)), null, array($Smartswitch_Peer__t_GenericPeerPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findCompanyById', 0, 0, 0, array(array($IcePHP__t_long)), null, array($Smartswitch_Peer__t_CompanyPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findCompanyByName', 0, 0, 0, array(array($IcePHP__t_string)), null, array($Smartswitch_Peer__t_CompanyPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'getChannels', 0, 0, 0, null, null, array($Smartswitch_Telephony__t_ChannelInfoSequence), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'hangupChannel', 0, 0, 0, array(array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'hangupChannels', 0, 0, 0, array(array($Smartswitch__t_StringSequence)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'getCdr', 0, 0, 0, array(array($Smartswitch__t_PeerDesc), array($Smartswitch_Telephony__t_CdrFilter), array($IcePHP__t_long)), null, array($Smartswitch_Telephony__t_CdrSequence), array($Smartswitch__t_AccessException, $Smartswitch__t_DbQueryTooLongException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findQueueById', 0, 0, 0, array(array($IcePHP__t_long)), null, array($Smartswitch_Telephony__t_QueuePrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findQueueByName', 0, 0, 0, array(array($IcePHP__t_string)), null, array($Smartswitch_Telephony__t_QueuePrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'addQueue', 0, 0, 0, array(array($IcePHP__t_string)), null, array($Smartswitch_Telephony__t_QueuePrx), array($Smartswitch__t_AccessException, $Smartswitch__t_DuplicateException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findRefillVoucher', 0, 0, 0, array(array($IcePHP__t_string)), null, array($Smartswitch_Billing__t_RefillVoucherPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findCurrencyByName', 0, 0, 0, array(array($IcePHP__t_string)), null, array($Smartswitch_Billing__t_CurrencyPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findServiceByName', 0, 0, 0, array(array($IcePHP__t_string)), null, array($Smartswitch_Billing__t_ServicePrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'findServiceById', 0, 0, 0, array(array($IcePHP__t_long)), null, array($Smartswitch_Billing__t_ServicePrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'getServices', 0, 0, 0, null, null, array($Smartswitch_Billing__t_ServiceSequence), null);
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'callback', 0, 0, 0, array(array($IcePHP__t_string), array($IcePHP__t_string), array($IcePHP__t_string), array($Smartswitch_Telephony__t_CallbackMode)), null, null, null);
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'sendMessage', 0, 0, 0, array(array($Smartswitch_Messaging__t_Message)), null, array($Smartswitch_Messaging__t_SendingResult), array($Smartswitch__t_ArgumentException, $Smartswitch__t_GenericException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'sendMessageBatch', 0, 0, 0, array(array($Smartswitch_Messaging__t_MessageSequence)), null, array($Smartswitch_Messaging__t_BatchSendingResultSequence), array($Smartswitch__t_GenericException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'dipHlr', 0, 0, 0, array(array($IcePHP__t_string)), null, array($Smartswitch_HlrDipping__t_DippingResult), array($Smartswitch__t_EmptyArgumentException, $Smartswitch__t_GenericException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'dipHlrBatch', 0, 0, 0, array(array($Smartswitch__t_StringSequence)), null, array($Smartswitch_HlrDipping__t_BatchDippingResultSequence), array($Smartswitch__t_GenericException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'dipLnpMnp', 0, 0, 0, array(array($IcePHP__t_string)), null, array($Smartswitch_LnpMnpDipping__t_DippingResult), array($Smartswitch__t_EmptyArgumentException, $Smartswitch__t_GenericException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'dipLnpMnpBatch', 0, 0, 0, array(array($Smartswitch__t_StringSequence)), null, array($Smartswitch_LnpMnpDipping__t_BatchDippingResultSequence), array($Smartswitch__t_GenericException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'spyChannel', 0, 0, 0, array(array($IcePHP__t_string), array($IcePHP__t_string), array($Smartswitch__t_SpyMode)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'pickupChannel', 0, 0, 0, array(array($IcePHP__t_string), array($IcePHP__t_string)), null, null, array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'addCallGenerationTask', 0, 0, 0, null, null, array($Smartswitch_Telephony_CallGeneration__t_TaskPrx), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch__t_SessionPrx, 'getCallGenerationTasks', 0, 0, 0, array(array($IcePHP__t_long)), null, array($Smartswitch_Telephony_CallGeneration__t_TaskSequence), array($Smartswitch__t_AccessException));
}
?>
